Skip to content

Commit 35cc9bc

Browse files
author
Krzysztof Parzyszek
committed
[Hexagon] Add ELF flags for Hexagon v71, v71t, and v73
1 parent eb2a57e commit 35cc9bc

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

llvm/include/llvm/BinaryFormat/ELF.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,9 @@ enum {
620620
EF_HEXAGON_MACH_V67T = 0x00008067, // Hexagon V67T
621621
EF_HEXAGON_MACH_V68 = 0x00000068, // Hexagon V68
622622
EF_HEXAGON_MACH_V69 = 0x00000069, // Hexagon V69
623+
EF_HEXAGON_MACH_V71 = 0x00000071, // Hexagon V71
624+
EF_HEXAGON_MACH_V71T = 0x00008071, // Hexagon V71T
625+
EF_HEXAGON_MACH_V73 = 0x00000073, // Hexagon V73
623626
EF_HEXAGON_MACH = 0x000003ff, // Hexagon V..
624627

625628
// Highest ISA version flags
@@ -637,6 +640,9 @@ enum {
637640
EF_HEXAGON_ISA_V67 = 0x00000067, // Hexagon V67 ISA
638641
EF_HEXAGON_ISA_V68 = 0x00000068, // Hexagon V68 ISA
639642
EF_HEXAGON_ISA_V69 = 0x00000069, // Hexagon V69 ISA
643+
EF_HEXAGON_ISA_V71 = 0x00000071, // Hexagon V71 ISA
644+
EF_HEXAGON_ISA_V73 = 0x00000073, // Hexagon V73 ISA
645+
EF_HEXAGON_ISA_V75 = 0x00000075, // Hexagon V75 ISA
640646
EF_HEXAGON_ISA = 0x000003ff, // Hexagon V.. ISA
641647
};
642648

llvm/lib/ObjectYAML/ELFYAML.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,9 @@ void ScalarBitSetTraits<ELFYAML::ELF_EF>::bitset(IO &IO,
485485
BCaseMask(EF_HEXAGON_MACH_V67T, EF_HEXAGON_MACH);
486486
BCaseMask(EF_HEXAGON_MACH_V68, EF_HEXAGON_MACH);
487487
BCaseMask(EF_HEXAGON_MACH_V69, EF_HEXAGON_MACH);
488+
BCaseMask(EF_HEXAGON_MACH_V71, EF_HEXAGON_MACH);
489+
BCaseMask(EF_HEXAGON_MACH_V71T, EF_HEXAGON_MACH);
490+
BCaseMask(EF_HEXAGON_MACH_V73, EF_HEXAGON_MACH);
488491
BCaseMask(EF_HEXAGON_ISA_V2, EF_HEXAGON_ISA);
489492
BCaseMask(EF_HEXAGON_ISA_V3, EF_HEXAGON_ISA);
490493
BCaseMask(EF_HEXAGON_ISA_V4, EF_HEXAGON_ISA);
@@ -497,6 +500,8 @@ void ScalarBitSetTraits<ELFYAML::ELF_EF>::bitset(IO &IO,
497500
BCaseMask(EF_HEXAGON_ISA_V67, EF_HEXAGON_ISA);
498501
BCaseMask(EF_HEXAGON_ISA_V68, EF_HEXAGON_ISA);
499502
BCaseMask(EF_HEXAGON_ISA_V69, EF_HEXAGON_ISA);
503+
BCaseMask(EF_HEXAGON_ISA_V71, EF_HEXAGON_ISA);
504+
BCaseMask(EF_HEXAGON_ISA_V73, EF_HEXAGON_ISA);
500505
break;
501506
case ELF::EM_AVR:
502507
BCaseMask(EF_AVR_ARCH_AVR1, EF_AVR_ARCH_MASK);

0 commit comments

Comments
 (0)