Lines Matching refs:ELF

50   assert(pSection.type() == llvm::ELF::SHT_MIPS_ABIFLAGS &&  in fillBySection()
86 switch (flags & llvm::ELF::EF_MIPS_ARCH) { in getIsaLevel()
87 case llvm::ELF::EF_MIPS_ARCH_1: in getIsaLevel()
89 case llvm::ELF::EF_MIPS_ARCH_2: in getIsaLevel()
91 case llvm::ELF::EF_MIPS_ARCH_3: in getIsaLevel()
93 case llvm::ELF::EF_MIPS_ARCH_4: in getIsaLevel()
95 case llvm::ELF::EF_MIPS_ARCH_5: in getIsaLevel()
97 case llvm::ELF::EF_MIPS_ARCH_32: in getIsaLevel()
98 case llvm::ELF::EF_MIPS_ARCH_32R2: in getIsaLevel()
99 case llvm::ELF::EF_MIPS_ARCH_32R6: in getIsaLevel()
101 case llvm::ELF::EF_MIPS_ARCH_64: in getIsaLevel()
102 case llvm::ELF::EF_MIPS_ARCH_64R2: in getIsaLevel()
103 case llvm::ELF::EF_MIPS_ARCH_64R6: in getIsaLevel()
113 switch (flags & llvm::ELF::EF_MIPS_ARCH) { in getIsaRev()
114 case llvm::ELF::EF_MIPS_ARCH_1: in getIsaRev()
115 case llvm::ELF::EF_MIPS_ARCH_2: in getIsaRev()
116 case llvm::ELF::EF_MIPS_ARCH_3: in getIsaRev()
117 case llvm::ELF::EF_MIPS_ARCH_4: in getIsaRev()
118 case llvm::ELF::EF_MIPS_ARCH_5: in getIsaRev()
120 case llvm::ELF::EF_MIPS_ARCH_32: in getIsaRev()
121 case llvm::ELF::EF_MIPS_ARCH_64: in getIsaRev()
123 case llvm::ELF::EF_MIPS_ARCH_32R2: in getIsaRev()
124 case llvm::ELF::EF_MIPS_ARCH_64R2: in getIsaRev()
126 case llvm::ELF::EF_MIPS_ARCH_32R6: in getIsaRev()
127 case llvm::ELF::EF_MIPS_ARCH_64R6: in getIsaRev()
137 switch (flags & llvm::ELF::EF_MIPS_MACH) { in getIsaExt()
140 case llvm::ELF::EF_MIPS_MACH_3900: return llvm::Mips::AFL_EXT_3900; in getIsaExt()
141 case llvm::ELF::EF_MIPS_MACH_4010: return llvm::Mips::AFL_EXT_4010; in getIsaExt()
142 case llvm::ELF::EF_MIPS_MACH_4100: return llvm::Mips::AFL_EXT_4010; in getIsaExt()
143 case llvm::ELF::EF_MIPS_MACH_4111: return llvm::Mips::AFL_EXT_4111; in getIsaExt()
144 case llvm::ELF::EF_MIPS_MACH_4120: return llvm::Mips::AFL_EXT_4120; in getIsaExt()
145 case llvm::ELF::EF_MIPS_MACH_4650: return llvm::Mips::AFL_EXT_4650; in getIsaExt()
146 case llvm::ELF::EF_MIPS_MACH_5400: return llvm::Mips::AFL_EXT_5400; in getIsaExt()
147 case llvm::ELF::EF_MIPS_MACH_5500: return llvm::Mips::AFL_EXT_5500; in getIsaExt()
148 case llvm::ELF::EF_MIPS_MACH_5900: return llvm::Mips::AFL_EXT_5900; in getIsaExt()
149 case llvm::ELF::EF_MIPS_MACH_SB1: return llvm::Mips::AFL_EXT_SB1; in getIsaExt()
150 case llvm::ELF::EF_MIPS_MACH_LS2E: return llvm::Mips::AFL_EXT_LOONGSON_2E; in getIsaExt()
151 case llvm::ELF::EF_MIPS_MACH_LS2F: return llvm::Mips::AFL_EXT_LOONGSON_2F; in getIsaExt()
152 case llvm::ELF::EF_MIPS_MACH_LS3A: return llvm::Mips::AFL_EXT_LOONGSON_3A; in getIsaExt()
153 case llvm::ELF::EF_MIPS_MACH_OCTEON3: return llvm::Mips::AFL_EXT_OCTEON3; in getIsaExt()
154 case llvm::ELF::EF_MIPS_MACH_OCTEON2: return llvm::Mips::AFL_EXT_OCTEON2; in getIsaExt()
155 case llvm::ELF::EF_MIPS_MACH_OCTEON: return llvm::Mips::AFL_EXT_OCTEON; in getIsaExt()
156 case llvm::ELF::EF_MIPS_MACH_XLR: return llvm::Mips::AFL_EXT_XLR; in getIsaExt()
165 if (flags & llvm::ELF::EF_MIPS_32BITMODE) in is32BitElfFlags()
168 uint64_t arch = flags & llvm::ELF::EF_MIPS_ARCH; in is32BitElfFlags()
169 if (arch == llvm::ELF::EF_MIPS_ARCH_1 || in is32BitElfFlags()
170 arch == llvm::ELF::EF_MIPS_ARCH_2 || in is32BitElfFlags()
171 arch == llvm::ELF::EF_MIPS_ARCH_32 || in is32BitElfFlags()
172 arch == llvm::ELF::EF_MIPS_ARCH_32R2 || in is32BitElfFlags()
173 arch == llvm::ELF::EF_MIPS_ARCH_32R6) in is32BitElfFlags()
176 uint64_t abi = flags & llvm::ELF::EF_MIPS_ABI; in is32BitElfFlags()
177 if (abi == llvm::ELF::EF_MIPS_ABI_O32 || abi == llvm::ELF::EF_MIPS_ABI_EABI32) in is32BitElfFlags()
197 if (elfFlags & llvm::ELF::EF_MIPS_MICROMIPS) in fillByElfFlags()
199 if (elfFlags & llvm::ELF::EF_MIPS_ARCH_ASE_M16) in fillByElfFlags()
201 if (elfFlags & llvm::ELF::EF_MIPS_ARCH_ASE_MDMX) in fillByElfFlags()