• Home
  • Raw
  • Download

Lines Matching refs:Triple

20 const char *Triple::getArchTypeName(ArchType Kind) {  in getArchTypeName()
74 const char *Triple::getArchTypePrefix(ArchType Kind) { in getArchTypePrefix()
140 const char *Triple::getVendorTypeName(VendorType Kind) { in getVendorTypeName()
163 const char *Triple::getOSTypeName(OSType Kind) { in getOSTypeName()
200 const char *Triple::getEnvironmentTypeName(EnvironmentType Kind) { in getEnvironmentTypeName()
224 static Triple::ArchType parseBPFArch(StringRef ArchName) { in parseBPFArch()
227 return Triple::bpfel; in parseBPFArch()
229 return Triple::bpfeb; in parseBPFArch()
231 return Triple::bpfeb; in parseBPFArch()
233 return Triple::bpfel; in parseBPFArch()
235 return Triple::UnknownArch; in parseBPFArch()
239 Triple::ArchType Triple::getArchTypeForLLVMName(StringRef Name) { in getArchTypeForLLVMName()
240 Triple::ArchType BPFArch(parseBPFArch(Name)); in getArchTypeForLLVMName()
241 return StringSwitch<Triple::ArchType>(Name) in getArchTypeForLLVMName()
291 static Triple::ArchType parseARMArch(StringRef ArchName) { in parseARMArch()
295 Triple::ArchType arch = Triple::UnknownArch; in parseARMArch()
300 arch = Triple::arm; in parseARMArch()
303 arch = Triple::thumb; in parseARMArch()
306 arch = Triple::aarch64; in parseARMArch()
314 arch = Triple::armeb; in parseARMArch()
317 arch = Triple::thumbeb; in parseARMArch()
320 arch = Triple::aarch64_be; in parseARMArch()
329 return Triple::UnknownArch; in parseARMArch()
334 return Triple::UnknownArch; in parseARMArch()
341 return Triple::thumbeb; in parseARMArch()
343 return Triple::thumb; in parseARMArch()
349 static Triple::ArchType parseArch(StringRef ArchName) { in parseArch()
350 auto AT = StringSwitch<Triple::ArchType>(ArchName) in parseArch()
351 .Cases("i386", "i486", "i586", "i686", Triple::x86) in parseArch()
353 .Cases("i786", "i886", "i986", Triple::x86) in parseArch()
354 .Cases("amd64", "x86_64", "x86_64h", Triple::x86_64) in parseArch()
355 .Cases("powerpc", "ppc32", Triple::ppc) in parseArch()
356 .Cases("powerpc64", "ppu", "ppc64", Triple::ppc64) in parseArch()
357 .Cases("powerpc64le", "ppc64le", Triple::ppc64le) in parseArch()
358 .Case("xscale", Triple::arm) in parseArch()
359 .Case("xscaleeb", Triple::armeb) in parseArch()
360 .Case("aarch64", Triple::aarch64) in parseArch()
361 .Case("aarch64_be", Triple::aarch64_be) in parseArch()
362 .Case("arm64", Triple::aarch64) in parseArch()
363 .Case("arm", Triple::arm) in parseArch()
364 .Case("armeb", Triple::armeb) in parseArch()
365 .Case("thumb", Triple::thumb) in parseArch()
366 .Case("thumbeb", Triple::thumbeb) in parseArch()
367 .Case("avr", Triple::avr) in parseArch()
368 .Case("msp430", Triple::msp430) in parseArch()
369 .Cases("mips", "mipseb", "mipsallegrex", Triple::mips) in parseArch()
370 .Cases("mipsel", "mipsallegrexel", Triple::mipsel) in parseArch()
371 .Cases("mips64", "mips64eb", Triple::mips64) in parseArch()
372 .Case("mips64el", Triple::mips64el) in parseArch()
373 .Case("r600", Triple::r600) in parseArch()
374 .Case("amdgcn", Triple::amdgcn) in parseArch()
375 .Case("hexagon", Triple::hexagon) in parseArch()
376 .Cases("s390x", "systemz", Triple::systemz) in parseArch()
377 .Case("sparc", Triple::sparc) in parseArch()
378 .Case("sparcel", Triple::sparcel) in parseArch()
379 .Cases("sparcv9", "sparc64", Triple::sparcv9) in parseArch()
380 .Case("tce", Triple::tce) in parseArch()
381 .Case("xcore", Triple::xcore) in parseArch()
382 .Case("nvptx", Triple::nvptx) in parseArch()
383 .Case("nvptx64", Triple::nvptx64) in parseArch()
384 .Case("le32", Triple::le32) in parseArch()
385 .Case("le64", Triple::le64) in parseArch()
386 .Case("amdil", Triple::amdil) in parseArch()
387 .Case("amdil64", Triple::amdil64) in parseArch()
388 .Case("hsail", Triple::hsail) in parseArch()
389 .Case("hsail64", Triple::hsail64) in parseArch()
390 .Case("spir", Triple::spir) in parseArch()
391 .Case("spir64", Triple::spir64) in parseArch()
392 .StartsWith("kalimba", Triple::kalimba) in parseArch()
393 .Case("lanai", Triple::lanai) in parseArch()
394 .Case("shave", Triple::shave) in parseArch()
395 .Case("wasm32", Triple::wasm32) in parseArch()
396 .Case("wasm64", Triple::wasm64) in parseArch()
397 .Case("renderscript32", Triple::renderscript32) in parseArch()
398 .Case("renderscript64", Triple::renderscript64) in parseArch()
399 .Default(Triple::UnknownArch); in parseArch()
403 if (AT == Triple::UnknownArch) { in parseArch()
414 static Triple::VendorType parseVendor(StringRef VendorName) { in parseVendor()
415 return StringSwitch<Triple::VendorType>(VendorName) in parseVendor()
416 .Case("apple", Triple::Apple) in parseVendor()
417 .Case("pc", Triple::PC) in parseVendor()
418 .Case("scei", Triple::SCEI) in parseVendor()
419 .Case("bgp", Triple::BGP) in parseVendor()
420 .Case("bgq", Triple::BGQ) in parseVendor()
421 .Case("fsl", Triple::Freescale) in parseVendor()
422 .Case("ibm", Triple::IBM) in parseVendor()
423 .Case("img", Triple::ImaginationTechnologies) in parseVendor()
424 .Case("mti", Triple::MipsTechnologies) in parseVendor()
425 .Case("nvidia", Triple::NVIDIA) in parseVendor()
426 .Case("csr", Triple::CSR) in parseVendor()
427 .Case("myriad", Triple::Myriad) in parseVendor()
428 .Case("amd", Triple::AMD) in parseVendor()
429 .Case("mesa", Triple::Mesa) in parseVendor()
430 .Default(Triple::UnknownVendor); in parseVendor()
433 static Triple::OSType parseOS(StringRef OSName) { in parseOS()
434 return StringSwitch<Triple::OSType>(OSName) in parseOS()
435 .StartsWith("cloudabi", Triple::CloudABI) in parseOS()
436 .StartsWith("darwin", Triple::Darwin) in parseOS()
437 .StartsWith("dragonfly", Triple::DragonFly) in parseOS()
438 .StartsWith("freebsd", Triple::FreeBSD) in parseOS()
439 .StartsWith("ios", Triple::IOS) in parseOS()
440 .StartsWith("kfreebsd", Triple::KFreeBSD) in parseOS()
441 .StartsWith("linux", Triple::Linux) in parseOS()
442 .StartsWith("lv2", Triple::Lv2) in parseOS()
443 .StartsWith("macosx", Triple::MacOSX) in parseOS()
444 .StartsWith("netbsd", Triple::NetBSD) in parseOS()
445 .StartsWith("openbsd", Triple::OpenBSD) in parseOS()
446 .StartsWith("solaris", Triple::Solaris) in parseOS()
447 .StartsWith("win32", Triple::Win32) in parseOS()
448 .StartsWith("windows", Triple::Win32) in parseOS()
449 .StartsWith("haiku", Triple::Haiku) in parseOS()
450 .StartsWith("minix", Triple::Minix) in parseOS()
451 .StartsWith("rtems", Triple::RTEMS) in parseOS()
452 .StartsWith("nacl", Triple::NaCl) in parseOS()
453 .StartsWith("cnk", Triple::CNK) in parseOS()
454 .StartsWith("bitrig", Triple::Bitrig) in parseOS()
455 .StartsWith("aix", Triple::AIX) in parseOS()
456 .StartsWith("cuda", Triple::CUDA) in parseOS()
457 .StartsWith("nvcl", Triple::NVCL) in parseOS()
458 .StartsWith("amdhsa", Triple::AMDHSA) in parseOS()
459 .StartsWith("ps4", Triple::PS4) in parseOS()
460 .StartsWith("elfiamcu", Triple::ELFIAMCU) in parseOS()
461 .StartsWith("tvos", Triple::TvOS) in parseOS()
462 .StartsWith("watchos", Triple::WatchOS) in parseOS()
463 .StartsWith("mesa3d", Triple::Mesa3D) in parseOS()
464 .Default(Triple::UnknownOS); in parseOS()
467 static Triple::EnvironmentType parseEnvironment(StringRef EnvironmentName) { in parseEnvironment()
468 return StringSwitch<Triple::EnvironmentType>(EnvironmentName) in parseEnvironment()
469 .StartsWith("eabihf", Triple::EABIHF) in parseEnvironment()
470 .StartsWith("eabi", Triple::EABI) in parseEnvironment()
471 .StartsWith("gnueabihf", Triple::GNUEABIHF) in parseEnvironment()
472 .StartsWith("gnueabi", Triple::GNUEABI) in parseEnvironment()
473 .StartsWith("gnux32", Triple::GNUX32) in parseEnvironment()
474 .StartsWith("code16", Triple::CODE16) in parseEnvironment()
475 .StartsWith("gnu", Triple::GNU) in parseEnvironment()
476 .StartsWith("android", Triple::Android) in parseEnvironment()
477 .StartsWith("musleabihf", Triple::MuslEABIHF) in parseEnvironment()
478 .StartsWith("musleabi", Triple::MuslEABI) in parseEnvironment()
479 .StartsWith("musl", Triple::Musl) in parseEnvironment()
480 .StartsWith("msvc", Triple::MSVC) in parseEnvironment()
481 .StartsWith("itanium", Triple::Itanium) in parseEnvironment()
482 .StartsWith("cygnus", Triple::Cygnus) in parseEnvironment()
483 .StartsWith("amdopencl", Triple::AMDOpenCL) in parseEnvironment()
484 .StartsWith("coreclr", Triple::CoreCLR) in parseEnvironment()
485 .Default(Triple::UnknownEnvironment); in parseEnvironment()
488 static Triple::ObjectFormatType parseFormat(StringRef EnvironmentName) { in parseFormat()
489 return StringSwitch<Triple::ObjectFormatType>(EnvironmentName) in parseFormat()
490 .EndsWith("coff", Triple::COFF) in parseFormat()
491 .EndsWith("elf", Triple::ELF) in parseFormat()
492 .EndsWith("macho", Triple::MachO) in parseFormat()
493 .Default(Triple::UnknownObjectFormat); in parseFormat()
496 static Triple::SubArchType parseSubArch(StringRef SubArchName) { in parseSubArch()
501 return StringSwitch<Triple::SubArchType>(SubArchName) in parseSubArch()
502 .EndsWith("kalimba3", Triple::KalimbaSubArch_v3) in parseSubArch()
503 .EndsWith("kalimba4", Triple::KalimbaSubArch_v4) in parseSubArch()
504 .EndsWith("kalimba5", Triple::KalimbaSubArch_v5) in parseSubArch()
505 .Default(Triple::NoSubArch); in parseSubArch()
510 return Triple::NoSubArch; in parseSubArch()
512 return Triple::ARMSubArch_v4t; in parseSubArch()
514 return Triple::ARMSubArch_v5; in parseSubArch()
520 return Triple::ARMSubArch_v5te; in parseSubArch()
522 return Triple::ARMSubArch_v6; in parseSubArch()
525 return Triple::ARMSubArch_v6k; in parseSubArch()
527 return Triple::ARMSubArch_v6t2; in parseSubArch()
529 return Triple::ARMSubArch_v6m; in parseSubArch()
532 return Triple::ARMSubArch_v7; in parseSubArch()
534 return Triple::ARMSubArch_v7k; in parseSubArch()
536 return Triple::ARMSubArch_v7m; in parseSubArch()
538 return Triple::ARMSubArch_v7s; in parseSubArch()
540 return Triple::ARMSubArch_v7em; in parseSubArch()
542 return Triple::ARMSubArch_v8; in parseSubArch()
544 return Triple::ARMSubArch_v8_1a; in parseSubArch()
546 return Triple::ARMSubArch_v8_2a; in parseSubArch()
548 return Triple::ARMSubArch_v8m_baseline; in parseSubArch()
550 return Triple::ARMSubArch_v8m_mainline; in parseSubArch()
552 return Triple::NoSubArch; in parseSubArch()
556 static const char *getObjectFormatTypeName(Triple::ObjectFormatType Kind) { in getObjectFormatTypeName()
558 case Triple::UnknownObjectFormat: return ""; in getObjectFormatTypeName()
559 case Triple::COFF: return "coff"; in getObjectFormatTypeName()
560 case Triple::ELF: return "elf"; in getObjectFormatTypeName()
561 case Triple::MachO: return "macho"; in getObjectFormatTypeName()
566 static Triple::ObjectFormatType getDefaultFormat(const Triple &T) { in getDefaultFormat()
568 case Triple::UnknownArch: in getDefaultFormat()
569 case Triple::aarch64: in getDefaultFormat()
570 case Triple::arm: in getDefaultFormat()
571 case Triple::thumb: in getDefaultFormat()
572 case Triple::x86: in getDefaultFormat()
573 case Triple::x86_64: in getDefaultFormat()
575 return Triple::MachO; in getDefaultFormat()
577 return Triple::COFF; in getDefaultFormat()
578 return Triple::ELF; in getDefaultFormat()
580 case Triple::aarch64_be: in getDefaultFormat()
581 case Triple::amdgcn: in getDefaultFormat()
582 case Triple::amdil: in getDefaultFormat()
583 case Triple::amdil64: in getDefaultFormat()
584 case Triple::armeb: in getDefaultFormat()
585 case Triple::avr: in getDefaultFormat()
586 case Triple::bpfeb: in getDefaultFormat()
587 case Triple::bpfel: in getDefaultFormat()
588 case Triple::hexagon: in getDefaultFormat()
589 case Triple::lanai: in getDefaultFormat()
590 case Triple::hsail: in getDefaultFormat()
591 case Triple::hsail64: in getDefaultFormat()
592 case Triple::kalimba: in getDefaultFormat()
593 case Triple::le32: in getDefaultFormat()
594 case Triple::le64: in getDefaultFormat()
595 case Triple::mips: in getDefaultFormat()
596 case Triple::mips64: in getDefaultFormat()
597 case Triple::mips64el: in getDefaultFormat()
598 case Triple::mipsel: in getDefaultFormat()
599 case Triple::msp430: in getDefaultFormat()
600 case Triple::nvptx: in getDefaultFormat()
601 case Triple::nvptx64: in getDefaultFormat()
602 case Triple::ppc64le: in getDefaultFormat()
603 case Triple::r600: in getDefaultFormat()
604 case Triple::renderscript32: in getDefaultFormat()
605 case Triple::renderscript64: in getDefaultFormat()
606 case Triple::shave: in getDefaultFormat()
607 case Triple::sparc: in getDefaultFormat()
608 case Triple::sparcel: in getDefaultFormat()
609 case Triple::sparcv9: in getDefaultFormat()
610 case Triple::spir: in getDefaultFormat()
611 case Triple::spir64: in getDefaultFormat()
612 case Triple::systemz: in getDefaultFormat()
613 case Triple::tce: in getDefaultFormat()
614 case Triple::thumbeb: in getDefaultFormat()
615 case Triple::wasm32: in getDefaultFormat()
616 case Triple::wasm64: in getDefaultFormat()
617 case Triple::xcore: in getDefaultFormat()
618 return Triple::ELF; in getDefaultFormat()
620 case Triple::ppc: in getDefaultFormat()
621 case Triple::ppc64: in getDefaultFormat()
623 return Triple::MachO; in getDefaultFormat()
624 return Triple::ELF; in getDefaultFormat()
633 Triple::Triple(const Twine &Str) in Triple() function in Triple
664 Triple::Triple(const Twine &ArchStr, const Twine &VendorStr, const Twine &OSStr) in Triple() function in Triple
670 Environment(), ObjectFormat(Triple::UnknownObjectFormat) { in Triple()
679 Triple::Triple(const Twine &ArchStr, const Twine &VendorStr, const Twine &OSStr, in Triple() function in Triple
689 if (ObjectFormat == Triple::UnknownObjectFormat) in Triple()
693 std::string Triple::normalize(StringRef Str) { in normalize()
833 if (Environment == Triple::Android && Components[3].startswith("androideabi")) { in normalize()
843 if (OS == Triple::Win32) { in normalize()
847 if (ObjectFormat == UnknownObjectFormat || ObjectFormat == Triple::COFF) in normalize()
862 (OS == Triple::Win32 && Environment != UnknownEnvironment)) { in normalize()
863 if (ObjectFormat != UnknownObjectFormat && ObjectFormat != Triple::COFF) { in normalize()
878 StringRef Triple::getArchName() const { in getArchName()
882 StringRef Triple::getVendorName() const { in getVendorName()
887 StringRef Triple::getOSName() const { in getOSName()
893 StringRef Triple::getEnvironmentName() const { in getEnvironmentName()
899 StringRef Triple::getOSAndEnvironmentName() const { in getOSAndEnvironmentName()
939 void Triple::getEnvironmentVersion(unsigned &Major, unsigned &Minor, in getEnvironmentVersion()
949 void Triple::getOSVersion(unsigned &Major, unsigned &Minor, in getOSVersion()
960 bool Triple::getMacOSXVersion(unsigned &Major, unsigned &Minor, in getMacOSXVersion()
1001 void Triple::getiOSVersion(unsigned &Major, unsigned &Minor, in getiOSVersion()
1027 void Triple::getWatchOSVersion(unsigned &Major, unsigned &Minor, in getWatchOSVersion()
1051 void Triple::setTriple(const Twine &Str) { in setTriple()
1052 *this = Triple(Str); in setTriple()
1055 void Triple::setArch(ArchType Kind) { in setArch()
1059 void Triple::setVendor(VendorType Kind) { in setVendor()
1063 void Triple::setOS(OSType Kind) { in setOS()
1067 void Triple::setEnvironment(EnvironmentType Kind) { in setEnvironment()
1075 void Triple::setObjectFormat(ObjectFormatType Kind) { in setObjectFormat()
1083 void Triple::setArchName(StringRef Str) { in setArchName()
1085 SmallString<64> Triple; in setArchName() local
1086 Triple += Str; in setArchName()
1087 Triple += "-"; in setArchName()
1088 Triple += getVendorName(); in setArchName()
1089 Triple += "-"; in setArchName()
1090 Triple += getOSAndEnvironmentName(); in setArchName()
1091 setTriple(Triple); in setArchName()
1094 void Triple::setVendorName(StringRef Str) { in setVendorName()
1098 void Triple::setOSName(StringRef Str) { in setOSName()
1106 void Triple::setEnvironmentName(StringRef Str) { in setEnvironmentName()
1111 void Triple::setOSAndEnvironmentName(StringRef Str) { in setOSAndEnvironmentName()
1115 static unsigned getArchPointerBitWidth(llvm::Triple::ArchType Arch) { in getArchPointerBitWidth()
1117 case llvm::Triple::UnknownArch: in getArchPointerBitWidth()
1120 case llvm::Triple::avr: in getArchPointerBitWidth()
1121 case llvm::Triple::msp430: in getArchPointerBitWidth()
1124 case llvm::Triple::arm: in getArchPointerBitWidth()
1125 case llvm::Triple::armeb: in getArchPointerBitWidth()
1126 case llvm::Triple::hexagon: in getArchPointerBitWidth()
1127 case llvm::Triple::le32: in getArchPointerBitWidth()
1128 case llvm::Triple::mips: in getArchPointerBitWidth()
1129 case llvm::Triple::mipsel: in getArchPointerBitWidth()
1130 case llvm::Triple::nvptx: in getArchPointerBitWidth()
1131 case llvm::Triple::ppc: in getArchPointerBitWidth()
1132 case llvm::Triple::r600: in getArchPointerBitWidth()
1133 case llvm::Triple::sparc: in getArchPointerBitWidth()
1134 case llvm::Triple::sparcel: in getArchPointerBitWidth()
1135 case llvm::Triple::tce: in getArchPointerBitWidth()
1136 case llvm::Triple::thumb: in getArchPointerBitWidth()
1137 case llvm::Triple::thumbeb: in getArchPointerBitWidth()
1138 case llvm::Triple::x86: in getArchPointerBitWidth()
1139 case llvm::Triple::xcore: in getArchPointerBitWidth()
1140 case llvm::Triple::amdil: in getArchPointerBitWidth()
1141 case llvm::Triple::hsail: in getArchPointerBitWidth()
1142 case llvm::Triple::spir: in getArchPointerBitWidth()
1143 case llvm::Triple::kalimba: in getArchPointerBitWidth()
1144 case llvm::Triple::lanai: in getArchPointerBitWidth()
1145 case llvm::Triple::shave: in getArchPointerBitWidth()
1146 case llvm::Triple::wasm32: in getArchPointerBitWidth()
1147 case llvm::Triple::renderscript32: in getArchPointerBitWidth()
1150 case llvm::Triple::aarch64: in getArchPointerBitWidth()
1151 case llvm::Triple::aarch64_be: in getArchPointerBitWidth()
1152 case llvm::Triple::amdgcn: in getArchPointerBitWidth()
1153 case llvm::Triple::bpfel: in getArchPointerBitWidth()
1154 case llvm::Triple::bpfeb: in getArchPointerBitWidth()
1155 case llvm::Triple::le64: in getArchPointerBitWidth()
1156 case llvm::Triple::mips64: in getArchPointerBitWidth()
1157 case llvm::Triple::mips64el: in getArchPointerBitWidth()
1158 case llvm::Triple::nvptx64: in getArchPointerBitWidth()
1159 case llvm::Triple::ppc64: in getArchPointerBitWidth()
1160 case llvm::Triple::ppc64le: in getArchPointerBitWidth()
1161 case llvm::Triple::sparcv9: in getArchPointerBitWidth()
1162 case llvm::Triple::systemz: in getArchPointerBitWidth()
1163 case llvm::Triple::x86_64: in getArchPointerBitWidth()
1164 case llvm::Triple::amdil64: in getArchPointerBitWidth()
1165 case llvm::Triple::hsail64: in getArchPointerBitWidth()
1166 case llvm::Triple::spir64: in getArchPointerBitWidth()
1167 case llvm::Triple::wasm64: in getArchPointerBitWidth()
1168 case llvm::Triple::renderscript64: in getArchPointerBitWidth()
1174 bool Triple::isArch64Bit() const { in isArch64Bit()
1178 bool Triple::isArch32Bit() const { in isArch32Bit()
1182 bool Triple::isArch16Bit() const { in isArch16Bit()
1186 Triple Triple::get32BitArchVariant() const { in get32BitArchVariant()
1187 Triple T(*this); in get32BitArchVariant()
1189 case Triple::UnknownArch: in get32BitArchVariant()
1190 case Triple::amdgcn: in get32BitArchVariant()
1191 case Triple::avr: in get32BitArchVariant()
1192 case Triple::bpfel: in get32BitArchVariant()
1193 case Triple::bpfeb: in get32BitArchVariant()
1194 case Triple::msp430: in get32BitArchVariant()
1195 case Triple::systemz: in get32BitArchVariant()
1196 case Triple::ppc64le: in get32BitArchVariant()
1200 case Triple::amdil: in get32BitArchVariant()
1201 case Triple::hsail: in get32BitArchVariant()
1202 case Triple::spir: in get32BitArchVariant()
1203 case Triple::arm: in get32BitArchVariant()
1204 case Triple::armeb: in get32BitArchVariant()
1205 case Triple::hexagon: in get32BitArchVariant()
1206 case Triple::kalimba: in get32BitArchVariant()
1207 case Triple::le32: in get32BitArchVariant()
1208 case Triple::mips: in get32BitArchVariant()
1209 case Triple::mipsel: in get32BitArchVariant()
1210 case Triple::nvptx: in get32BitArchVariant()
1211 case Triple::ppc: in get32BitArchVariant()
1212 case Triple::r600: in get32BitArchVariant()
1213 case Triple::sparc: in get32BitArchVariant()
1214 case Triple::sparcel: in get32BitArchVariant()
1215 case Triple::tce: in get32BitArchVariant()
1216 case Triple::thumb: in get32BitArchVariant()
1217 case Triple::thumbeb: in get32BitArchVariant()
1218 case Triple::x86: in get32BitArchVariant()
1219 case Triple::xcore: in get32BitArchVariant()
1220 case Triple::lanai: in get32BitArchVariant()
1221 case Triple::shave: in get32BitArchVariant()
1222 case Triple::wasm32: in get32BitArchVariant()
1223 case Triple::renderscript32: in get32BitArchVariant()
1227 case Triple::aarch64: T.setArch(Triple::arm); break; in get32BitArchVariant()
1228 case Triple::aarch64_be: T.setArch(Triple::armeb); break; in get32BitArchVariant()
1229 case Triple::le64: T.setArch(Triple::le32); break; in get32BitArchVariant()
1230 case Triple::mips64: T.setArch(Triple::mips); break; in get32BitArchVariant()
1231 case Triple::mips64el: T.setArch(Triple::mipsel); break; in get32BitArchVariant()
1232 case Triple::nvptx64: T.setArch(Triple::nvptx); break; in get32BitArchVariant()
1233 case Triple::ppc64: T.setArch(Triple::ppc); break; in get32BitArchVariant()
1234 case Triple::sparcv9: T.setArch(Triple::sparc); break; in get32BitArchVariant()
1235 case Triple::x86_64: T.setArch(Triple::x86); break; in get32BitArchVariant()
1236 case Triple::amdil64: T.setArch(Triple::amdil); break; in get32BitArchVariant()
1237 case Triple::hsail64: T.setArch(Triple::hsail); break; in get32BitArchVariant()
1238 case Triple::spir64: T.setArch(Triple::spir); break; in get32BitArchVariant()
1239 case Triple::wasm64: T.setArch(Triple::wasm32); break; in get32BitArchVariant()
1240 case Triple::renderscript64: T.setArch(Triple::renderscript32); break; in get32BitArchVariant()
1245 Triple Triple::get64BitArchVariant() const { in get64BitArchVariant()
1246 Triple T(*this); in get64BitArchVariant()
1248 case Triple::UnknownArch: in get64BitArchVariant()
1249 case Triple::avr: in get64BitArchVariant()
1250 case Triple::hexagon: in get64BitArchVariant()
1251 case Triple::kalimba: in get64BitArchVariant()
1252 case Triple::lanai: in get64BitArchVariant()
1253 case Triple::msp430: in get64BitArchVariant()
1254 case Triple::r600: in get64BitArchVariant()
1255 case Triple::tce: in get64BitArchVariant()
1256 case Triple::xcore: in get64BitArchVariant()
1257 case Triple::sparcel: in get64BitArchVariant()
1258 case Triple::shave: in get64BitArchVariant()
1262 case Triple::aarch64: in get64BitArchVariant()
1263 case Triple::aarch64_be: in get64BitArchVariant()
1264 case Triple::bpfel: in get64BitArchVariant()
1265 case Triple::bpfeb: in get64BitArchVariant()
1266 case Triple::le64: in get64BitArchVariant()
1267 case Triple::amdil64: in get64BitArchVariant()
1268 case Triple::amdgcn: in get64BitArchVariant()
1269 case Triple::hsail64: in get64BitArchVariant()
1270 case Triple::spir64: in get64BitArchVariant()
1271 case Triple::mips64: in get64BitArchVariant()
1272 case Triple::mips64el: in get64BitArchVariant()
1273 case Triple::nvptx64: in get64BitArchVariant()
1274 case Triple::ppc64: in get64BitArchVariant()
1275 case Triple::ppc64le: in get64BitArchVariant()
1276 case Triple::sparcv9: in get64BitArchVariant()
1277 case Triple::systemz: in get64BitArchVariant()
1278 case Triple::x86_64: in get64BitArchVariant()
1279 case Triple::wasm64: in get64BitArchVariant()
1280 case Triple::renderscript64: in get64BitArchVariant()
1284 case Triple::arm: T.setArch(Triple::aarch64); break; in get64BitArchVariant()
1285 case Triple::armeb: T.setArch(Triple::aarch64_be); break; in get64BitArchVariant()
1286 case Triple::le32: T.setArch(Triple::le64); break; in get64BitArchVariant()
1287 case Triple::mips: T.setArch(Triple::mips64); break; in get64BitArchVariant()
1288 case Triple::mipsel: T.setArch(Triple::mips64el); break; in get64BitArchVariant()
1289 case Triple::nvptx: T.setArch(Triple::nvptx64); break; in get64BitArchVariant()
1290 case Triple::ppc: T.setArch(Triple::ppc64); break; in get64BitArchVariant()
1291 case Triple::sparc: T.setArch(Triple::sparcv9); break; in get64BitArchVariant()
1292 case Triple::x86: T.setArch(Triple::x86_64); break; in get64BitArchVariant()
1293 case Triple::amdil: T.setArch(Triple::amdil64); break; in get64BitArchVariant()
1294 case Triple::hsail: T.setArch(Triple::hsail64); break; in get64BitArchVariant()
1295 case Triple::spir: T.setArch(Triple::spir64); break; in get64BitArchVariant()
1296 case Triple::thumb: T.setArch(Triple::aarch64); break; in get64BitArchVariant()
1297 case Triple::thumbeb: T.setArch(Triple::aarch64_be); break; in get64BitArchVariant()
1298 case Triple::wasm32: T.setArch(Triple::wasm64); break; in get64BitArchVariant()
1299 case Triple::renderscript32: T.setArch(Triple::renderscript64); break; in get64BitArchVariant()
1304 Triple Triple::getBigEndianArchVariant() const { in getBigEndianArchVariant()
1305 Triple T(*this); in getBigEndianArchVariant()
1310 case Triple::UnknownArch: in getBigEndianArchVariant()
1311 case Triple::amdgcn: in getBigEndianArchVariant()
1312 case Triple::amdil64: in getBigEndianArchVariant()
1313 case Triple::amdil: in getBigEndianArchVariant()
1314 case Triple::avr: in getBigEndianArchVariant()
1315 case Triple::hexagon: in getBigEndianArchVariant()
1316 case Triple::hsail64: in getBigEndianArchVariant()
1317 case Triple::hsail: in getBigEndianArchVariant()
1318 case Triple::kalimba: in getBigEndianArchVariant()
1319 case Triple::le32: in getBigEndianArchVariant()
1320 case Triple::le64: in getBigEndianArchVariant()
1321 case Triple::msp430: in getBigEndianArchVariant()
1322 case Triple::nvptx64: in getBigEndianArchVariant()
1323 case Triple::nvptx: in getBigEndianArchVariant()
1324 case Triple::r600: in getBigEndianArchVariant()
1325 case Triple::shave: in getBigEndianArchVariant()
1326 case Triple::spir64: in getBigEndianArchVariant()
1327 case Triple::spir: in getBigEndianArchVariant()
1328 case Triple::wasm32: in getBigEndianArchVariant()
1329 case Triple::wasm64: in getBigEndianArchVariant()
1330 case Triple::x86: in getBigEndianArchVariant()
1331 case Triple::x86_64: in getBigEndianArchVariant()
1332 case Triple::xcore: in getBigEndianArchVariant()
1333 case Triple::renderscript32: in getBigEndianArchVariant()
1334 case Triple::renderscript64: in getBigEndianArchVariant()
1338 case Triple::arm: in getBigEndianArchVariant()
1339 case Triple::thumb: in getBigEndianArchVariant()
1343 case Triple::aarch64: T.setArch(Triple::aarch64_be); break; in getBigEndianArchVariant()
1344 case Triple::bpfel: T.setArch(Triple::bpfeb); break; in getBigEndianArchVariant()
1345 case Triple::mips64el:T.setArch(Triple::mips64); break; in getBigEndianArchVariant()
1346 case Triple::mipsel: T.setArch(Triple::mips); break; in getBigEndianArchVariant()
1347 case Triple::ppc64le: T.setArch(Triple::ppc64); break; in getBigEndianArchVariant()
1348 case Triple::sparcel: T.setArch(Triple::sparc); break; in getBigEndianArchVariant()
1355 Triple Triple::getLittleEndianArchVariant() const { in getLittleEndianArchVariant()
1356 Triple T(*this); in getLittleEndianArchVariant()
1361 case Triple::UnknownArch: in getLittleEndianArchVariant()
1362 case Triple::lanai: in getLittleEndianArchVariant()
1363 case Triple::ppc: in getLittleEndianArchVariant()
1364 case Triple::sparcv9: in getLittleEndianArchVariant()
1365 case Triple::systemz: in getLittleEndianArchVariant()
1366 case Triple::tce: in getLittleEndianArchVariant()
1370 case Triple::armeb: in getLittleEndianArchVariant()
1371 case Triple::thumbeb: in getLittleEndianArchVariant()
1375 case Triple::aarch64_be: T.setArch(Triple::aarch64); break; in getLittleEndianArchVariant()
1376 case Triple::bpfeb: T.setArch(Triple::bpfel); break; in getLittleEndianArchVariant()
1377 case Triple::mips64: T.setArch(Triple::mips64el); break; in getLittleEndianArchVariant()
1378 case Triple::mips: T.setArch(Triple::mipsel); break; in getLittleEndianArchVariant()
1379 case Triple::ppc64: T.setArch(Triple::ppc64le); break; in getLittleEndianArchVariant()
1380 case Triple::sparc: T.setArch(Triple::sparcel); break; in getLittleEndianArchVariant()
1387 bool Triple::isLittleEndian() const { in isLittleEndian()
1389 case Triple::aarch64: in isLittleEndian()
1390 case Triple::amdgcn: in isLittleEndian()
1391 case Triple::amdil64: in isLittleEndian()
1392 case Triple::amdil: in isLittleEndian()
1393 case Triple::arm: in isLittleEndian()
1394 case Triple::avr: in isLittleEndian()
1395 case Triple::bpfel: in isLittleEndian()
1396 case Triple::hexagon: in isLittleEndian()
1397 case Triple::hsail64: in isLittleEndian()
1398 case Triple::hsail: in isLittleEndian()
1399 case Triple::kalimba: in isLittleEndian()
1400 case Triple::le32: in isLittleEndian()
1401 case Triple::le64: in isLittleEndian()
1402 case Triple::mips64el: in isLittleEndian()
1403 case Triple::mipsel: in isLittleEndian()
1404 case Triple::msp430: in isLittleEndian()
1405 case Triple::nvptx64: in isLittleEndian()
1406 case Triple::nvptx: in isLittleEndian()
1407 case Triple::ppc64le: in isLittleEndian()
1408 case Triple::r600: in isLittleEndian()
1409 case Triple::shave: in isLittleEndian()
1410 case Triple::sparcel: in isLittleEndian()
1411 case Triple::spir64: in isLittleEndian()
1412 case Triple::spir: in isLittleEndian()
1413 case Triple::thumb: in isLittleEndian()
1414 case Triple::wasm32: in isLittleEndian()
1415 case Triple::wasm64: in isLittleEndian()
1416 case Triple::x86: in isLittleEndian()
1417 case Triple::x86_64: in isLittleEndian()
1418 case Triple::xcore: in isLittleEndian()
1419 case Triple::renderscript32: in isLittleEndian()
1420 case Triple::renderscript64: in isLittleEndian()
1427 StringRef Triple::getARMCPUForArch(StringRef MArch) const { in getARMCPUForArch()
1434 case llvm::Triple::FreeBSD: in getARMCPUForArch()
1435 case llvm::Triple::NetBSD: in getARMCPUForArch()
1439 case llvm::Triple::Win32: in getARMCPUForArch()
1442 case llvm::Triple::MacOSX: in getARMCPUForArch()
1443 case llvm::Triple::IOS: in getARMCPUForArch()
1444 case llvm::Triple::WatchOS: in getARMCPUForArch()
1445 case llvm::Triple::TvOS: in getARMCPUForArch()
1463 case llvm::Triple::NetBSD: in getARMCPUForArch()
1465 case llvm::Triple::GNUEABIHF: in getARMCPUForArch()
1466 case llvm::Triple::GNUEABI: in getARMCPUForArch()
1467 case llvm::Triple::EABIHF: in getARMCPUForArch()
1468 case llvm::Triple::EABI: in getARMCPUForArch()
1473 case llvm::Triple::NaCl: in getARMCPUForArch()
1477 case llvm::Triple::EABIHF: in getARMCPUForArch()
1478 case llvm::Triple::GNUEABIHF: in getARMCPUForArch()
1479 case llvm::Triple::MuslEABIHF: in getARMCPUForArch()