Lines Matching refs:ArchSpec
23 static bool cores_match(const ArchSpec::Core core1, const ArchSpec::Core core2,
34 ArchSpec::Core core;
42 {eByteOrderLittle, 4, 2, 4, llvm::Triple::arm, ArchSpec::eCore_arm_generic,
44 {eByteOrderLittle, 4, 2, 4, llvm::Triple::arm, ArchSpec::eCore_arm_armv4,
46 {eByteOrderLittle, 4, 2, 4, llvm::Triple::arm, ArchSpec::eCore_arm_armv4t,
48 {eByteOrderLittle, 4, 2, 4, llvm::Triple::arm, ArchSpec::eCore_arm_armv5,
50 {eByteOrderLittle, 4, 2, 4, llvm::Triple::arm, ArchSpec::eCore_arm_armv5e,
52 {eByteOrderLittle, 4, 2, 4, llvm::Triple::arm, ArchSpec::eCore_arm_armv5t,
54 {eByteOrderLittle, 4, 2, 4, llvm::Triple::arm, ArchSpec::eCore_arm_armv6,
56 {eByteOrderLittle, 4, 2, 4, llvm::Triple::arm, ArchSpec::eCore_arm_armv6m,
58 {eByteOrderLittle, 4, 2, 4, llvm::Triple::arm, ArchSpec::eCore_arm_armv7,
60 {eByteOrderLittle, 4, 2, 4, llvm::Triple::arm, ArchSpec::eCore_arm_armv7l,
62 {eByteOrderLittle, 4, 2, 4, llvm::Triple::arm, ArchSpec::eCore_arm_armv7f,
64 {eByteOrderLittle, 4, 2, 4, llvm::Triple::arm, ArchSpec::eCore_arm_armv7s,
66 {eByteOrderLittle, 4, 2, 4, llvm::Triple::arm, ArchSpec::eCore_arm_armv7k,
68 {eByteOrderLittle, 4, 2, 4, llvm::Triple::arm, ArchSpec::eCore_arm_armv7m,
70 {eByteOrderLittle, 4, 2, 4, llvm::Triple::arm, ArchSpec::eCore_arm_armv7em,
72 {eByteOrderLittle, 4, 2, 4, llvm::Triple::arm, ArchSpec::eCore_arm_xscale,
74 {eByteOrderLittle, 4, 2, 4, llvm::Triple::thumb, ArchSpec::eCore_thumb,
76 {eByteOrderLittle, 4, 2, 4, llvm::Triple::thumb, ArchSpec::eCore_thumbv4t,
78 {eByteOrderLittle, 4, 2, 4, llvm::Triple::thumb, ArchSpec::eCore_thumbv5,
80 {eByteOrderLittle, 4, 2, 4, llvm::Triple::thumb, ArchSpec::eCore_thumbv5e,
82 {eByteOrderLittle, 4, 2, 4, llvm::Triple::thumb, ArchSpec::eCore_thumbv6,
84 {eByteOrderLittle, 4, 2, 4, llvm::Triple::thumb, ArchSpec::eCore_thumbv6m,
86 {eByteOrderLittle, 4, 2, 4, llvm::Triple::thumb, ArchSpec::eCore_thumbv7,
88 {eByteOrderLittle, 4, 2, 4, llvm::Triple::thumb, ArchSpec::eCore_thumbv7f,
90 {eByteOrderLittle, 4, 2, 4, llvm::Triple::thumb, ArchSpec::eCore_thumbv7s,
92 {eByteOrderLittle, 4, 2, 4, llvm::Triple::thumb, ArchSpec::eCore_thumbv7k,
94 {eByteOrderLittle, 4, 2, 4, llvm::Triple::thumb, ArchSpec::eCore_thumbv7m,
96 {eByteOrderLittle, 4, 2, 4, llvm::Triple::thumb, ArchSpec::eCore_thumbv7em,
99 ArchSpec::eCore_arm_arm64, "arm64"},
101 ArchSpec::eCore_arm_armv8, "armv8"},
103 ArchSpec::eCore_arm_armv8l, "armv8l"},
105 ArchSpec::eCore_arm_arm64_32, "arm64_32"},
107 ArchSpec::eCore_arm_aarch64, "aarch64"},
110 {eByteOrderBig, 4, 2, 4, llvm::Triple::mips, ArchSpec::eCore_mips32,
112 {eByteOrderBig, 4, 2, 4, llvm::Triple::mips, ArchSpec::eCore_mips32r2,
114 {eByteOrderBig, 4, 2, 4, llvm::Triple::mips, ArchSpec::eCore_mips32r3,
116 {eByteOrderBig, 4, 2, 4, llvm::Triple::mips, ArchSpec::eCore_mips32r5,
118 {eByteOrderBig, 4, 2, 4, llvm::Triple::mips, ArchSpec::eCore_mips32r6,
120 {eByteOrderLittle, 4, 2, 4, llvm::Triple::mipsel, ArchSpec::eCore_mips32el,
123 ArchSpec::eCore_mips32r2el, "mipsr2el"},
125 ArchSpec::eCore_mips32r3el, "mipsr3el"},
127 ArchSpec::eCore_mips32r5el, "mipsr5el"},
129 ArchSpec::eCore_mips32r6el, "mipsr6el"},
132 {eByteOrderBig, 8, 2, 4, llvm::Triple::mips64, ArchSpec::eCore_mips64,
134 {eByteOrderBig, 8, 2, 4, llvm::Triple::mips64, ArchSpec::eCore_mips64r2,
136 {eByteOrderBig, 8, 2, 4, llvm::Triple::mips64, ArchSpec::eCore_mips64r3,
138 {eByteOrderBig, 8, 2, 4, llvm::Triple::mips64, ArchSpec::eCore_mips64r5,
140 {eByteOrderBig, 8, 2, 4, llvm::Triple::mips64, ArchSpec::eCore_mips64r6,
143 ArchSpec::eCore_mips64el, "mips64el"},
145 ArchSpec::eCore_mips64r2el, "mips64r2el"},
147 ArchSpec::eCore_mips64r3el, "mips64r3el"},
149 ArchSpec::eCore_mips64r5el, "mips64r5el"},
151 ArchSpec::eCore_mips64r6el, "mips64r6el"},
153 {eByteOrderBig, 4, 4, 4, llvm::Triple::ppc, ArchSpec::eCore_ppc_generic,
155 {eByteOrderBig, 4, 4, 4, llvm::Triple::ppc, ArchSpec::eCore_ppc_ppc601,
157 {eByteOrderBig, 4, 4, 4, llvm::Triple::ppc, ArchSpec::eCore_ppc_ppc602,
159 {eByteOrderBig, 4, 4, 4, llvm::Triple::ppc, ArchSpec::eCore_ppc_ppc603,
161 {eByteOrderBig, 4, 4, 4, llvm::Triple::ppc, ArchSpec::eCore_ppc_ppc603e,
163 {eByteOrderBig, 4, 4, 4, llvm::Triple::ppc, ArchSpec::eCore_ppc_ppc603ev,
165 {eByteOrderBig, 4, 4, 4, llvm::Triple::ppc, ArchSpec::eCore_ppc_ppc604,
167 {eByteOrderBig, 4, 4, 4, llvm::Triple::ppc, ArchSpec::eCore_ppc_ppc604e,
169 {eByteOrderBig, 4, 4, 4, llvm::Triple::ppc, ArchSpec::eCore_ppc_ppc620,
171 {eByteOrderBig, 4, 4, 4, llvm::Triple::ppc, ArchSpec::eCore_ppc_ppc750,
173 {eByteOrderBig, 4, 4, 4, llvm::Triple::ppc, ArchSpec::eCore_ppc_ppc7400,
175 {eByteOrderBig, 4, 4, 4, llvm::Triple::ppc, ArchSpec::eCore_ppc_ppc7450,
177 {eByteOrderBig, 4, 4, 4, llvm::Triple::ppc, ArchSpec::eCore_ppc_ppc970,
181 ArchSpec::eCore_ppc64le_generic, "powerpc64le"},
182 {eByteOrderBig, 8, 4, 4, llvm::Triple::ppc64, ArchSpec::eCore_ppc64_generic,
185 ArchSpec::eCore_ppc64_ppc970_64, "ppc970-64"},
188 ArchSpec::eCore_s390x_generic, "s390x"},
191 ArchSpec::eCore_sparc_generic, "sparc"},
193 ArchSpec::eCore_sparc9_generic, "sparcv9"},
195 {eByteOrderLittle, 4, 1, 15, llvm::Triple::x86, ArchSpec::eCore_x86_32_i386,
197 {eByteOrderLittle, 4, 1, 15, llvm::Triple::x86, ArchSpec::eCore_x86_32_i486,
200 ArchSpec::eCore_x86_32_i486sx, "i486sx"},
201 {eByteOrderLittle, 4, 1, 15, llvm::Triple::x86, ArchSpec::eCore_x86_32_i686,
205 ArchSpec::eCore_x86_64_x86_64, "x86_64"},
207 ArchSpec::eCore_x86_64_x86_64h, "x86_64h"},
209 ArchSpec::eCore_hexagon_generic, "hexagon"},
211 ArchSpec::eCore_hexagon_hexagonv4, "hexagonv4"},
213 ArchSpec::eCore_hexagon_hexagonv5, "hexagonv5"},
216 ArchSpec::eCore_uknownMach32, "unknown-mach-32"},
218 ArchSpec::eCore_uknownMach64, "unknown-mach-64"},
219 {eByteOrderLittle, 4, 2, 4, llvm::Triple::arc, ArchSpec::eCore_arc, "arc"},
221 {eByteOrderLittle, 2, 2, 4, llvm::Triple::avr, ArchSpec::eCore_avr, "avr"},
223 {eByteOrderLittle, 4, 1, 4, llvm::Triple::wasm32, ArchSpec::eCore_wasm32,
231 ArchSpec::kNumCores,
235 ArchSpec::Core core;
249 void ArchSpec::ListSupportedArchNames(StringList &list) { in ListSupportedArchNames()
254 void ArchSpec::AutoComplete(CompletionRequest &request) { in AutoComplete()
270 …{ArchSpec::eCore_arm_generic, llvm::MachO::CPU_TYPE_ARM, CPU_ANY, …
271 …{ArchSpec::eCore_arm_generic, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_A…
272 …{ArchSpec::eCore_arm_armv4, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_V…
273 …{ArchSpec::eCore_arm_armv4t, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_V…
274 …{ArchSpec::eCore_arm_armv6, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_V…
275 …{ArchSpec::eCore_arm_armv6m, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_V…
276 …{ArchSpec::eCore_arm_armv5, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_V…
277 …{ArchSpec::eCore_arm_armv5e, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_V…
278 …{ArchSpec::eCore_arm_armv5t, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_V…
279 …{ArchSpec::eCore_arm_xscale, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_X…
280 …{ArchSpec::eCore_arm_armv7, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_V…
281 …{ArchSpec::eCore_arm_armv7f, llvm::MachO::CPU_TYPE_ARM, 10, …
282 …{ArchSpec::eCore_arm_armv7s, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_V…
283 …{ArchSpec::eCore_arm_armv7k, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_V…
284 …{ArchSpec::eCore_arm_armv7m, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_V…
285 …{ArchSpec::eCore_arm_armv7em, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_V…
287 …{ArchSpec::eCore_arm_arm64, llvm::MachO::CPU_TYPE_ARM64, llvm::MachO::CPU_SUBTYPE_ARM64…
288 …{ArchSpec::eCore_arm_arm64, llvm::MachO::CPU_TYPE_ARM64, llvm::MachO::CPU_SUBTYPE_ARM64…
289 …{ArchSpec::eCore_arm_arm64, llvm::MachO::CPU_TYPE_ARM64, llvm::MachO::CPU_SUBTYPE_ARM64…
290 …{ArchSpec::eCore_arm_arm64, llvm::MachO::CPU_TYPE_ARM64, 13, …
291 …{ArchSpec::eCore_arm_arm64_32, llvm::MachO::CPU_TYPE_ARM64_32, 0, …
292 …{ArchSpec::eCore_arm_arm64_32, llvm::MachO::CPU_TYPE_ARM64_32, 1, …
293 …{ArchSpec::eCore_arm_arm64, llvm::MachO::CPU_TYPE_ARM64, CPU_ANY, …
294 …{ArchSpec::eCore_thumb, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_A…
295 …{ArchSpec::eCore_thumbv4t, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_V…
296 …{ArchSpec::eCore_thumbv5, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_V…
297 …{ArchSpec::eCore_thumbv5e, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_V…
298 …{ArchSpec::eCore_thumbv6, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_V…
299 …{ArchSpec::eCore_thumbv6m, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_V…
300 …{ArchSpec::eCore_thumbv7, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_V…
301 …{ArchSpec::eCore_thumbv7f, llvm::MachO::CPU_TYPE_ARM, 10, …
302 …{ArchSpec::eCore_thumbv7s, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_V…
303 …{ArchSpec::eCore_thumbv7k, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_V…
304 …{ArchSpec::eCore_thumbv7m, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_V…
305 …{ArchSpec::eCore_thumbv7em, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_SUBTYPE_ARM_V…
306 …{ArchSpec::eCore_ppc_generic, llvm::MachO::CPU_TYPE_POWERPC, CPU_ANY, …
307 …{ArchSpec::eCore_ppc_generic, llvm::MachO::CPU_TYPE_POWERPC, llvm::MachO::CPU_SUBTYPE_POWER…
308 …{ArchSpec::eCore_ppc_ppc601, llvm::MachO::CPU_TYPE_POWERPC, llvm::MachO::CPU_SUBTYPE_POWER…
309 …{ArchSpec::eCore_ppc_ppc602, llvm::MachO::CPU_TYPE_POWERPC, llvm::MachO::CPU_SUBTYPE_POWER…
310 …{ArchSpec::eCore_ppc_ppc603, llvm::MachO::CPU_TYPE_POWERPC, llvm::MachO::CPU_SUBTYPE_POWER…
311 …{ArchSpec::eCore_ppc_ppc603e, llvm::MachO::CPU_TYPE_POWERPC, llvm::MachO::CPU_SUBTYPE_POWER…
312 …{ArchSpec::eCore_ppc_ppc603ev, llvm::MachO::CPU_TYPE_POWERPC, llvm::MachO::CPU_SUBTYPE_POWER…
313 …{ArchSpec::eCore_ppc_ppc604, llvm::MachO::CPU_TYPE_POWERPC, llvm::MachO::CPU_SUBTYPE_POWER…
314 …{ArchSpec::eCore_ppc_ppc604e, llvm::MachO::CPU_TYPE_POWERPC, llvm::MachO::CPU_SUBTYPE_POWER…
315 …{ArchSpec::eCore_ppc_ppc620, llvm::MachO::CPU_TYPE_POWERPC, llvm::MachO::CPU_SUBTYPE_POWER…
316 …{ArchSpec::eCore_ppc_ppc750, llvm::MachO::CPU_TYPE_POWERPC, llvm::MachO::CPU_SUBTYPE_POWER…
317 …{ArchSpec::eCore_ppc_ppc7400, llvm::MachO::CPU_TYPE_POWERPC, llvm::MachO::CPU_SUBTYPE_POWER…
318 …{ArchSpec::eCore_ppc_ppc7450, llvm::MachO::CPU_TYPE_POWERPC, llvm::MachO::CPU_SUBTYPE_POWER…
319 …{ArchSpec::eCore_ppc_ppc970, llvm::MachO::CPU_TYPE_POWERPC, llvm::MachO::CPU_SUBTYPE_POWER…
320 …{ArchSpec::eCore_ppc64_generic, llvm::MachO::CPU_TYPE_POWERPC64, llvm::MachO::CPU_SUBTYPE_POWER…
321 …{ArchSpec::eCore_ppc64le_generic, llvm::MachO::CPU_TYPE_POWERPC64, CPU_ANY, …
322 …{ArchSpec::eCore_ppc64_ppc970_64, llvm::MachO::CPU_TYPE_POWERPC64, 100, …
323 …{ArchSpec::eCore_x86_32_i386, llvm::MachO::CPU_TYPE_I386, llvm::MachO::CPU_SUBTYPE_I386_…
324 …{ArchSpec::eCore_x86_32_i486, llvm::MachO::CPU_TYPE_I386, llvm::MachO::CPU_SUBTYPE_486, …
325 …{ArchSpec::eCore_x86_32_i486sx, llvm::MachO::CPU_TYPE_I386, llvm::MachO::CPU_SUBTYPE_486SX…
326 …{ArchSpec::eCore_x86_32_i386, llvm::MachO::CPU_TYPE_I386, CPU_ANY, …
327 …{ArchSpec::eCore_x86_64_x86_64, llvm::MachO::CPU_TYPE_X86_64, llvm::MachO::CPU_SUBTYPE_X86_6…
328 …{ArchSpec::eCore_x86_64_x86_64, llvm::MachO::CPU_TYPE_X86_64, llvm::MachO::CPU_SUBTYPE_X86_A…
329 …{ArchSpec::eCore_x86_64_x86_64h, llvm::MachO::CPU_TYPE_X86_64, llvm::MachO::CPU_SUBTYPE_X86_6…
330 …{ArchSpec::eCore_x86_64_x86_64, llvm::MachO::CPU_TYPE_X86_64, CPU_ANY, UINT32_MAX, UINT32_MA…
332 …{ArchSpec::eCore_uknownMach32, 0, 0, …
333 …{ArchSpec::eCore_uknownMach64, llvm::MachO::CPU_ARCH_ABI64, 0, …
346 {ArchSpec::eCore_sparc_generic, llvm::ELF::EM_SPARC, LLDB_INVALID_CPUTYPE,
348 {ArchSpec::eCore_x86_32_i386, llvm::ELF::EM_386, LLDB_INVALID_CPUTYPE,
350 {ArchSpec::eCore_x86_32_i486, llvm::ELF::EM_IAMCU, LLDB_INVALID_CPUTYPE,
352 {ArchSpec::eCore_ppc_generic, llvm::ELF::EM_PPC, LLDB_INVALID_CPUTYPE,
354 {ArchSpec::eCore_ppc64le_generic, llvm::ELF::EM_PPC64, LLDB_INVALID_CPUTYPE,
356 {ArchSpec::eCore_ppc64_generic, llvm::ELF::EM_PPC64, LLDB_INVALID_CPUTYPE,
358 {ArchSpec::eCore_arm_generic, llvm::ELF::EM_ARM, LLDB_INVALID_CPUTYPE,
360 {ArchSpec::eCore_arm_aarch64, llvm::ELF::EM_AARCH64, LLDB_INVALID_CPUTYPE,
362 {ArchSpec::eCore_s390x_generic, llvm::ELF::EM_S390, LLDB_INVALID_CPUTYPE,
364 {ArchSpec::eCore_sparc9_generic, llvm::ELF::EM_SPARCV9,
366 {ArchSpec::eCore_x86_64_x86_64, llvm::ELF::EM_X86_64, LLDB_INVALID_CPUTYPE,
368 {ArchSpec::eCore_mips32, llvm::ELF::EM_MIPS, ArchSpec::eMIPSSubType_mips32,
370 {ArchSpec::eCore_mips32r2, llvm::ELF::EM_MIPS,
371 ArchSpec::eMIPSSubType_mips32r2, 0xFFFFFFFFu, 0xFFFFFFFFu}, // mips32r2
372 {ArchSpec::eCore_mips32r6, llvm::ELF::EM_MIPS,
373 ArchSpec::eMIPSSubType_mips32r6, 0xFFFFFFFFu, 0xFFFFFFFFu}, // mips32r6
374 {ArchSpec::eCore_mips32el, llvm::ELF::EM_MIPS,
375 ArchSpec::eMIPSSubType_mips32el, 0xFFFFFFFFu, 0xFFFFFFFFu}, // mips32el
376 {ArchSpec::eCore_mips32r2el, llvm::ELF::EM_MIPS,
377 ArchSpec::eMIPSSubType_mips32r2el, 0xFFFFFFFFu, 0xFFFFFFFFu}, // mips32r2el
378 {ArchSpec::eCore_mips32r6el, llvm::ELF::EM_MIPS,
379 ArchSpec::eMIPSSubType_mips32r6el, 0xFFFFFFFFu, 0xFFFFFFFFu}, // mips32r6el
380 {ArchSpec::eCore_mips64, llvm::ELF::EM_MIPS, ArchSpec::eMIPSSubType_mips64,
382 {ArchSpec::eCore_mips64r2, llvm::ELF::EM_MIPS,
383 ArchSpec::eMIPSSubType_mips64r2, 0xFFFFFFFFu, 0xFFFFFFFFu}, // mips64r2
384 {ArchSpec::eCore_mips64r6, llvm::ELF::EM_MIPS,
385 ArchSpec::eMIPSSubType_mips64r6, 0xFFFFFFFFu, 0xFFFFFFFFu}, // mips64r6
386 {ArchSpec::eCore_mips64el, llvm::ELF::EM_MIPS,
387 ArchSpec::eMIPSSubType_mips64el, 0xFFFFFFFFu, 0xFFFFFFFFu}, // mips64el
388 {ArchSpec::eCore_mips64r2el, llvm::ELF::EM_MIPS,
389 ArchSpec::eMIPSSubType_mips64r2el, 0xFFFFFFFFu, 0xFFFFFFFFu}, // mips64r2el
390 {ArchSpec::eCore_mips64r6el, llvm::ELF::EM_MIPS,
391 ArchSpec::eMIPSSubType_mips64r6el, 0xFFFFFFFFu, 0xFFFFFFFFu}, // mips64r6el
392 {ArchSpec::eCore_hexagon_generic, llvm::ELF::EM_HEXAGON,
394 {ArchSpec::eCore_arc, llvm::ELF::EM_ARC_COMPACT2, LLDB_INVALID_CPUTYPE,
396 {ArchSpec::eCore_avr, llvm::ELF::EM_AVR, LLDB_INVALID_CPUTYPE,
408 {ArchSpec::eCore_x86_32_i386, llvm::COFF::IMAGE_FILE_MACHINE_I386,
410 {ArchSpec::eCore_ppc_generic, llvm::COFF::IMAGE_FILE_MACHINE_POWERPC,
412 {ArchSpec::eCore_ppc_generic, llvm::COFF::IMAGE_FILE_MACHINE_POWERPCFP,
414 {ArchSpec::eCore_arm_generic, llvm::COFF::IMAGE_FILE_MACHINE_ARM,
416 {ArchSpec::eCore_arm_armv7, llvm::COFF::IMAGE_FILE_MACHINE_ARMNT,
418 {ArchSpec::eCore_thumb, llvm::COFF::IMAGE_FILE_MACHINE_THUMB,
420 {ArchSpec::eCore_x86_64_x86_64, llvm::COFF::IMAGE_FILE_MACHINE_AMD64,
422 {ArchSpec::eCore_arm_arm64, llvm::COFF::IMAGE_FILE_MACHINE_ARM64,
463 static inline const CoreDefinition *FindCoreDefinition(ArchSpec::Core core) { in FindCoreDefinition()
485 FindArchDefinitionEntry(const ArchDefinition *def, ArchSpec::Core core) { in FindArchDefinitionEntry()
500 ArchSpec::ArchSpec() {} in ArchSpec() function in ArchSpec
502 ArchSpec::ArchSpec(const char *triple_cstr) { in ArchSpec() function in ArchSpec
507 ArchSpec::ArchSpec(llvm::StringRef triple_str) { SetTriple(triple_str); } in ArchSpec() function in ArchSpec
509 ArchSpec::ArchSpec(const llvm::Triple &triple) { SetTriple(triple); } in ArchSpec() function in ArchSpec
511 ArchSpec::ArchSpec(ArchitectureType arch_type, uint32_t cpu, uint32_t subtype) { in ArchSpec() function in ArchSpec
515 ArchSpec::~ArchSpec() = default;
517 void ArchSpec::Clear() { in Clear()
528 const char *ArchSpec::GetArchitectureName() const { in GetArchitectureName()
535 bool ArchSpec::IsMIPS() const { return GetTriple().isMIPS(); } in IsMIPS()
537 std::string ArchSpec::GetTargetABI() const { in GetTargetABI()
542 switch (GetFlags() & ArchSpec::eMIPSABI_mask) { in GetTargetABI()
543 case ArchSpec::eMIPSABI_N64: in GetTargetABI()
546 case ArchSpec::eMIPSABI_N32: in GetTargetABI()
549 case ArchSpec::eMIPSABI_O32: in GetTargetABI()
559 void ArchSpec::SetFlags(const std::string &elf_abi) { in SetFlags()
564 flag |= ArchSpec::eMIPSABI_N64; in SetFlags()
566 flag |= ArchSpec::eMIPSABI_N32; in SetFlags()
568 flag |= ArchSpec::eMIPSABI_O32; in SetFlags()
573 std::string ArchSpec::GetClangTargetCPU() const { in GetClangTargetCPU()
578 case ArchSpec::eCore_mips32: in GetClangTargetCPU()
579 case ArchSpec::eCore_mips32el: in GetClangTargetCPU()
582 case ArchSpec::eCore_mips32r2: in GetClangTargetCPU()
583 case ArchSpec::eCore_mips32r2el: in GetClangTargetCPU()
586 case ArchSpec::eCore_mips32r3: in GetClangTargetCPU()
587 case ArchSpec::eCore_mips32r3el: in GetClangTargetCPU()
590 case ArchSpec::eCore_mips32r5: in GetClangTargetCPU()
591 case ArchSpec::eCore_mips32r5el: in GetClangTargetCPU()
594 case ArchSpec::eCore_mips32r6: in GetClangTargetCPU()
595 case ArchSpec::eCore_mips32r6el: in GetClangTargetCPU()
598 case ArchSpec::eCore_mips64: in GetClangTargetCPU()
599 case ArchSpec::eCore_mips64el: in GetClangTargetCPU()
602 case ArchSpec::eCore_mips64r2: in GetClangTargetCPU()
603 case ArchSpec::eCore_mips64r2el: in GetClangTargetCPU()
606 case ArchSpec::eCore_mips64r3: in GetClangTargetCPU()
607 case ArchSpec::eCore_mips64r3el: in GetClangTargetCPU()
610 case ArchSpec::eCore_mips64r5: in GetClangTargetCPU()
611 case ArchSpec::eCore_mips64r5el: in GetClangTargetCPU()
614 case ArchSpec::eCore_mips64r6: in GetClangTargetCPU()
615 case ArchSpec::eCore_mips64r6el: in GetClangTargetCPU()
625 uint32_t ArchSpec::GetMachOCPUType() const { in GetMachOCPUType()
637 uint32_t ArchSpec::GetMachOCPUSubType() const { in GetMachOCPUSubType()
649 uint32_t ArchSpec::GetDataByteSize() const { in GetDataByteSize()
653 uint32_t ArchSpec::GetCodeByteSize() const { in GetCodeByteSize()
657 llvm::Triple::ArchType ArchSpec::GetMachine() const { in GetMachine()
665 ConstString ArchSpec::GetDistributionId() const { in GetDistributionId()
669 void ArchSpec::SetDistributionId(const char *distribution_id) { in SetDistributionId()
673 uint32_t ArchSpec::GetAddressByteSize() const { in GetAddressByteSize()
687 ByteOrder ArchSpec::GetDefaultEndian() const { in GetDefaultEndian()
694 bool ArchSpec::CharIsSignedByDefault() const { in CharIsSignedByDefault()
720 lldb::ByteOrder ArchSpec::GetByteOrder() const { in GetByteOrder()
729 bool ArchSpec::SetTriple(const llvm::Triple &triple) { in SetTriple()
736 ArchSpec &arch) { in ParseMachCPUDashSubtypeTriple()
771 bool ArchSpec::SetTriple(llvm::StringRef triple) { in SetTriple()
784 bool ArchSpec::ContainsOnlyArch(const llvm::Triple &normalized_triple) { in ContainsOnlyArch()
791 void ArchSpec::MergeFrom(const ArchSpec &other) { in MergeFrom()
823 IsCompatibleMatch(other) && GetCore() == ArchSpec::eCore_arm_generic && in MergeFrom()
824 other.GetCore() != ArchSpec::eCore_arm_generic) { in MergeFrom()
833 bool ArchSpec::SetArchitecture(ArchitectureType arch_type, uint32_t cpu, in SetArchitecture()
906 uint32_t ArchSpec::GetMinimumOpcodeByteSize() const { in GetMinimumOpcodeByteSize()
913 uint32_t ArchSpec::GetMaximumOpcodeByteSize() const { in GetMaximumOpcodeByteSize()
920 bool ArchSpec::IsExactMatch(const ArchSpec &rhs) const { in IsExactMatch()
924 bool ArchSpec::IsCompatibleMatch(const ArchSpec &rhs) const { in IsCompatibleMatch()
959 bool ArchSpec::IsEqualTo(const ArchSpec &rhs, bool exact_match) const { in IsEqualTo()
1027 void ArchSpec::UpdateCore() { in UpdateCore()
1044 void ArchSpec::CoreUpdated(bool update_triple) { in CoreUpdated()
1060 static bool cores_match(const ArchSpec::Core core1, const ArchSpec::Core core2, in cores_match()
1066 case ArchSpec::kCore_any: in cores_match()
1069 case ArchSpec::eCore_arm_generic: in cores_match()
1073 case ArchSpec::kCore_arm_any: in cores_match()
1074 if (core2 >= ArchSpec::kCore_arm_first && core2 <= ArchSpec::kCore_arm_last) in cores_match()
1076 if (core2 >= ArchSpec::kCore_thumb_first && in cores_match()
1077 core2 <= ArchSpec::kCore_thumb_last) in cores_match()
1079 if (core2 == ArchSpec::kCore_arm_any) in cores_match()
1083 case ArchSpec::kCore_x86_32_any: in cores_match()
1084 if ((core2 >= ArchSpec::kCore_x86_32_first && in cores_match()
1085 core2 <= ArchSpec::kCore_x86_32_last) || in cores_match()
1086 (core2 == ArchSpec::kCore_x86_32_any)) in cores_match()
1090 case ArchSpec::kCore_x86_64_any: in cores_match()
1091 if ((core2 >= ArchSpec::kCore_x86_64_first && in cores_match()
1092 core2 <= ArchSpec::kCore_x86_64_last) || in cores_match()
1093 (core2 == ArchSpec::kCore_x86_64_any)) in cores_match()
1097 case ArchSpec::kCore_ppc_any: in cores_match()
1098 if ((core2 >= ArchSpec::kCore_ppc_first && in cores_match()
1099 core2 <= ArchSpec::kCore_ppc_last) || in cores_match()
1100 (core2 == ArchSpec::kCore_ppc_any)) in cores_match()
1104 case ArchSpec::kCore_ppc64_any: in cores_match()
1105 if ((core2 >= ArchSpec::kCore_ppc64_first && in cores_match()
1106 core2 <= ArchSpec::kCore_ppc64_last) || in cores_match()
1107 (core2 == ArchSpec::kCore_ppc64_any)) in cores_match()
1111 case ArchSpec::eCore_arm_armv6m: in cores_match()
1113 if (core2 == ArchSpec::eCore_arm_generic) in cores_match()
1116 if (core2 == ArchSpec::eCore_arm_armv7) in cores_match()
1118 if (core2 == ArchSpec::eCore_arm_armv6m) in cores_match()
1123 case ArchSpec::kCore_hexagon_any: in cores_match()
1124 if ((core2 >= ArchSpec::kCore_hexagon_first && in cores_match()
1125 core2 <= ArchSpec::kCore_hexagon_last) || in cores_match()
1126 (core2 == ArchSpec::kCore_hexagon_any)) in cores_match()
1133 case ArchSpec::eCore_arm_armv7em: in cores_match()
1135 if (core2 == ArchSpec::eCore_arm_generic) in cores_match()
1137 if (core2 == ArchSpec::eCore_arm_armv7m) in cores_match()
1139 if (core2 == ArchSpec::eCore_arm_armv6m) in cores_match()
1141 if (core2 == ArchSpec::eCore_arm_armv7) in cores_match()
1150 case ArchSpec::eCore_arm_armv7m: in cores_match()
1152 if (core2 == ArchSpec::eCore_arm_generic) in cores_match()
1154 if (core2 == ArchSpec::eCore_arm_armv6m) in cores_match()
1156 if (core2 == ArchSpec::eCore_arm_armv7) in cores_match()
1158 if (core2 == ArchSpec::eCore_arm_armv7em) in cores_match()
1164 case ArchSpec::eCore_arm_armv7f: in cores_match()
1165 case ArchSpec::eCore_arm_armv7k: in cores_match()
1166 case ArchSpec::eCore_arm_armv7s: in cores_match()
1167 case ArchSpec::eCore_arm_armv7l: in cores_match()
1168 case ArchSpec::eCore_arm_armv8l: in cores_match()
1170 if (core2 == ArchSpec::eCore_arm_generic) in cores_match()
1172 if (core2 == ArchSpec::eCore_arm_armv7) in cores_match()
1178 case ArchSpec::eCore_x86_64_x86_64h: in cores_match()
1181 if (core2 == ArchSpec::eCore_x86_64_x86_64) in cores_match()
1186 case ArchSpec::eCore_arm_armv8: in cores_match()
1188 if (core2 == ArchSpec::eCore_arm_arm64) in cores_match()
1190 if (core2 == ArchSpec::eCore_arm_aarch64) in cores_match()
1196 case ArchSpec::eCore_arm_aarch64: in cores_match()
1198 if (core2 == ArchSpec::eCore_arm_arm64) in cores_match()
1200 if (core2 == ArchSpec::eCore_arm_armv8) in cores_match()
1206 case ArchSpec::eCore_arm_arm64: in cores_match()
1208 if (core2 == ArchSpec::eCore_arm_aarch64) in cores_match()
1210 if (core2 == ArchSpec::eCore_arm_armv8) in cores_match()
1216 case ArchSpec::eCore_arm_arm64_32: in cores_match()
1218 if (core2 == ArchSpec::eCore_arm_generic) in cores_match()
1224 case ArchSpec::eCore_mips32: in cores_match()
1226 if (core2 >= ArchSpec::kCore_mips32_first && in cores_match()
1227 core2 <= ArchSpec::kCore_mips32_last) in cores_match()
1233 case ArchSpec::eCore_mips32el: in cores_match()
1235 if (core2 >= ArchSpec::kCore_mips32el_first && in cores_match()
1236 core2 <= ArchSpec::kCore_mips32el_last) in cores_match()
1242 case ArchSpec::eCore_mips64: in cores_match()
1244 if (core2 >= ArchSpec::kCore_mips32_first && in cores_match()
1245 core2 <= ArchSpec::kCore_mips32_last) in cores_match()
1247 if (core2 >= ArchSpec::kCore_mips64_first && in cores_match()
1248 core2 <= ArchSpec::kCore_mips64_last) in cores_match()
1254 case ArchSpec::eCore_mips64el: in cores_match()
1256 if (core2 >= ArchSpec::kCore_mips32el_first && in cores_match()
1257 core2 <= ArchSpec::kCore_mips32el_last) in cores_match()
1259 if (core2 >= ArchSpec::kCore_mips64el_first && in cores_match()
1260 core2 <= ArchSpec::kCore_mips64el_last) in cores_match()
1266 case ArchSpec::eCore_mips64r2: in cores_match()
1267 case ArchSpec::eCore_mips64r3: in cores_match()
1268 case ArchSpec::eCore_mips64r5: in cores_match()
1270 if (core2 >= ArchSpec::kCore_mips32_first && core2 <= (core1 - 10)) in cores_match()
1272 if (core2 >= ArchSpec::kCore_mips64_first && core2 <= (core1 - 1)) in cores_match()
1278 case ArchSpec::eCore_mips64r2el: in cores_match()
1279 case ArchSpec::eCore_mips64r3el: in cores_match()
1280 case ArchSpec::eCore_mips64r5el: in cores_match()
1282 if (core2 >= ArchSpec::kCore_mips32el_first && core2 <= (core1 - 10)) in cores_match()
1284 if (core2 >= ArchSpec::kCore_mips64el_first && core2 <= (core1 - 1)) in cores_match()
1290 case ArchSpec::eCore_mips32r2: in cores_match()
1291 case ArchSpec::eCore_mips32r3: in cores_match()
1292 case ArchSpec::eCore_mips32r5: in cores_match()
1294 if (core2 >= ArchSpec::kCore_mips32_first && core2 <= core1) in cores_match()
1299 case ArchSpec::eCore_mips32r2el: in cores_match()
1300 case ArchSpec::eCore_mips32r3el: in cores_match()
1301 case ArchSpec::eCore_mips32r5el: in cores_match()
1303 if (core2 >= ArchSpec::kCore_mips32el_first && core2 <= core1) in cores_match()
1308 case ArchSpec::eCore_mips32r6: in cores_match()
1310 if (core2 == ArchSpec::eCore_mips32 || core2 == ArchSpec::eCore_mips32r6) in cores_match()
1315 case ArchSpec::eCore_mips32r6el: in cores_match()
1317 if (core2 == ArchSpec::eCore_mips32el || in cores_match()
1318 core2 == ArchSpec::eCore_mips32r6el) in cores_match()
1323 case ArchSpec::eCore_mips64r6: in cores_match()
1325 if (core2 == ArchSpec::eCore_mips32 || core2 == ArchSpec::eCore_mips32r6) in cores_match()
1327 if (core2 == ArchSpec::eCore_mips64 || core2 == ArchSpec::eCore_mips64r6) in cores_match()
1332 case ArchSpec::eCore_mips64r6el: in cores_match()
1334 if (core2 == ArchSpec::eCore_mips32el || in cores_match()
1335 core2 == ArchSpec::eCore_mips32r6el) in cores_match()
1337 if (core2 == ArchSpec::eCore_mips64el || in cores_match()
1338 core2 == ArchSpec::eCore_mips64r6el) in cores_match()
1351 bool lldb_private::operator<(const ArchSpec &lhs, const ArchSpec &rhs) { in operator <()
1352 const ArchSpec::Core lhs_core = lhs.GetCore(); in operator <()
1353 const ArchSpec::Core rhs_core = rhs.GetCore(); in operator <()
1358 bool lldb_private::operator==(const ArchSpec &lhs, const ArchSpec &rhs) { in operator ==()
1362 bool ArchSpec::IsFullySpecifiedTriple() const { in IsFullySpecifiedTriple()
1382 void ArchSpec::PiecewiseTripleCompare( in PiecewiseTripleCompare()
1383 const ArchSpec &other, bool &arch_different, bool &vendor_different, in PiecewiseTripleCompare()
1399 bool ArchSpec::IsAlwaysThumbInstructions() const { in IsAlwaysThumbInstructions()
1411 if (GetCore() == ArchSpec::Core::eCore_arm_armv7m || in IsAlwaysThumbInstructions()
1412 GetCore() == ArchSpec::Core::eCore_arm_armv7em || in IsAlwaysThumbInstructions()
1413 GetCore() == ArchSpec::Core::eCore_arm_armv6m || in IsAlwaysThumbInstructions()
1414 GetCore() == ArchSpec::Core::eCore_thumbv7m || in IsAlwaysThumbInstructions()
1415 GetCore() == ArchSpec::Core::eCore_thumbv7em || in IsAlwaysThumbInstructions()
1416 GetCore() == ArchSpec::Core::eCore_thumbv6m) { in IsAlwaysThumbInstructions()
1426 void ArchSpec::DumpTriple(llvm::raw_ostream &s) const { in DumpTriple()
1441 void llvm::yaml::ScalarTraits<ArchSpec>::output(const ArchSpec &Val, void *, in output()
1447 llvm::yaml::ScalarTraits<ArchSpec>::input(llvm::StringRef Scalar, void *, in input()
1448 ArchSpec &Val) { in input()
1449 Val = ArchSpec(Scalar); in input()