• Home
  • Raw
  • Download

Lines Matching refs:Triple

20 const char *Triple::getArchTypeName(ArchType Kind) {  in getArchTypeName()
71 const char *Triple::getArchTypePrefix(ArchType Kind) { in getArchTypePrefix()
135 const char *Triple::getVendorTypeName(VendorType Kind) { in getVendorTypeName()
156 const char *Triple::getOSTypeName(OSType Kind) { in getOSTypeName()
192 const char *Triple::getEnvironmentTypeName(EnvironmentType Kind) { in getEnvironmentTypeName()
213 static Triple::ArchType parseBPFArch(StringRef ArchName) { in parseBPFArch()
216 return Triple::bpfel; in parseBPFArch()
218 return Triple::bpfeb; in parseBPFArch()
220 return Triple::bpfeb; in parseBPFArch()
222 return Triple::bpfel; in parseBPFArch()
224 return Triple::UnknownArch; in parseBPFArch()
228 Triple::ArchType Triple::getArchTypeForLLVMName(StringRef Name) { in getArchTypeForLLVMName()
229 Triple::ArchType BPFArch(parseBPFArch(Name)); in getArchTypeForLLVMName()
230 return StringSwitch<Triple::ArchType>(Name) in getArchTypeForLLVMName()
277 static Triple::ArchType parseARMArch(StringRef ArchName) { in parseARMArch()
281 Triple::ArchType arch = Triple::UnknownArch; in parseARMArch()
286 arch = Triple::arm; in parseARMArch()
289 arch = Triple::thumb; in parseARMArch()
292 arch = Triple::aarch64; in parseARMArch()
300 arch = Triple::armeb; in parseARMArch()
303 arch = Triple::thumbeb; in parseARMArch()
306 arch = Triple::aarch64_be; in parseARMArch()
315 return Triple::UnknownArch; in parseARMArch()
320 return Triple::UnknownArch; in parseARMArch()
327 return Triple::thumbeb; in parseARMArch()
329 return Triple::thumb; in parseARMArch()
335 static Triple::ArchType parseArch(StringRef ArchName) { in parseArch()
336 auto AT = StringSwitch<Triple::ArchType>(ArchName) in parseArch()
337 .Cases("i386", "i486", "i586", "i686", Triple::x86) in parseArch()
339 .Cases("i786", "i886", "i986", Triple::x86) in parseArch()
340 .Cases("amd64", "x86_64", "x86_64h", Triple::x86_64) in parseArch()
341 .Case("powerpc", Triple::ppc) in parseArch()
342 .Cases("powerpc64", "ppu", Triple::ppc64) in parseArch()
343 .Case("powerpc64le", Triple::ppc64le) in parseArch()
344 .Case("xscale", Triple::arm) in parseArch()
345 .Case("xscaleeb", Triple::armeb) in parseArch()
346 .Case("aarch64", Triple::aarch64) in parseArch()
347 .Case("aarch64_be", Triple::aarch64_be) in parseArch()
348 .Case("arm64", Triple::aarch64) in parseArch()
349 .Case("arm", Triple::arm) in parseArch()
350 .Case("armeb", Triple::armeb) in parseArch()
351 .Case("thumb", Triple::thumb) in parseArch()
352 .Case("thumbeb", Triple::thumbeb) in parseArch()
353 .Case("avr", Triple::avr) in parseArch()
354 .Case("msp430", Triple::msp430) in parseArch()
355 .Cases("mips", "mipseb", "mipsallegrex", Triple::mips) in parseArch()
356 .Cases("mipsel", "mipsallegrexel", Triple::mipsel) in parseArch()
357 .Cases("mips64", "mips64eb", Triple::mips64) in parseArch()
358 .Case("mips64el", Triple::mips64el) in parseArch()
359 .Case("r600", Triple::r600) in parseArch()
360 .Case("amdgcn", Triple::amdgcn) in parseArch()
361 .Case("hexagon", Triple::hexagon) in parseArch()
362 .Case("s390x", Triple::systemz) in parseArch()
363 .Case("sparc", Triple::sparc) in parseArch()
364 .Case("sparcel", Triple::sparcel) in parseArch()
365 .Cases("sparcv9", "sparc64", Triple::sparcv9) in parseArch()
366 .Case("tce", Triple::tce) in parseArch()
367 .Case("xcore", Triple::xcore) in parseArch()
368 .Case("nvptx", Triple::nvptx) in parseArch()
369 .Case("nvptx64", Triple::nvptx64) in parseArch()
370 .Case("le32", Triple::le32) in parseArch()
371 .Case("le64", Triple::le64) in parseArch()
372 .Case("amdil", Triple::amdil) in parseArch()
373 .Case("amdil64", Triple::amdil64) in parseArch()
374 .Case("hsail", Triple::hsail) in parseArch()
375 .Case("hsail64", Triple::hsail64) in parseArch()
376 .Case("spir", Triple::spir) in parseArch()
377 .Case("spir64", Triple::spir64) in parseArch()
378 .StartsWith("kalimba", Triple::kalimba) in parseArch()
379 .Case("shave", Triple::shave) in parseArch()
380 .Case("wasm32", Triple::wasm32) in parseArch()
381 .Case("wasm64", Triple::wasm64) in parseArch()
382 .Default(Triple::UnknownArch); in parseArch()
386 if (AT == Triple::UnknownArch) { in parseArch()
397 static Triple::VendorType parseVendor(StringRef VendorName) { in parseVendor()
398 return StringSwitch<Triple::VendorType>(VendorName) in parseVendor()
399 .Case("apple", Triple::Apple) in parseVendor()
400 .Case("pc", Triple::PC) in parseVendor()
401 .Case("scei", Triple::SCEI) in parseVendor()
402 .Case("bgp", Triple::BGP) in parseVendor()
403 .Case("bgq", Triple::BGQ) in parseVendor()
404 .Case("fsl", Triple::Freescale) in parseVendor()
405 .Case("ibm", Triple::IBM) in parseVendor()
406 .Case("img", Triple::ImaginationTechnologies) in parseVendor()
407 .Case("mti", Triple::MipsTechnologies) in parseVendor()
408 .Case("nvidia", Triple::NVIDIA) in parseVendor()
409 .Case("csr", Triple::CSR) in parseVendor()
410 .Case("myriad", Triple::Myriad) in parseVendor()
411 .Default(Triple::UnknownVendor); in parseVendor()
414 static Triple::OSType parseOS(StringRef OSName) { in parseOS()
415 return StringSwitch<Triple::OSType>(OSName) in parseOS()
416 .StartsWith("cloudabi", Triple::CloudABI) in parseOS()
417 .StartsWith("darwin", Triple::Darwin) in parseOS()
418 .StartsWith("dragonfly", Triple::DragonFly) in parseOS()
419 .StartsWith("freebsd", Triple::FreeBSD) in parseOS()
420 .StartsWith("ios", Triple::IOS) in parseOS()
421 .StartsWith("kfreebsd", Triple::KFreeBSD) in parseOS()
422 .StartsWith("linux", Triple::Linux) in parseOS()
423 .StartsWith("lv2", Triple::Lv2) in parseOS()
424 .StartsWith("macosx", Triple::MacOSX) in parseOS()
425 .StartsWith("netbsd", Triple::NetBSD) in parseOS()
426 .StartsWith("openbsd", Triple::OpenBSD) in parseOS()
427 .StartsWith("solaris", Triple::Solaris) in parseOS()
428 .StartsWith("win32", Triple::Win32) in parseOS()
429 .StartsWith("windows", Triple::Win32) in parseOS()
430 .StartsWith("haiku", Triple::Haiku) in parseOS()
431 .StartsWith("minix", Triple::Minix) in parseOS()
432 .StartsWith("rtems", Triple::RTEMS) in parseOS()
433 .StartsWith("nacl", Triple::NaCl) in parseOS()
434 .StartsWith("cnk", Triple::CNK) in parseOS()
435 .StartsWith("bitrig", Triple::Bitrig) in parseOS()
436 .StartsWith("aix", Triple::AIX) in parseOS()
437 .StartsWith("cuda", Triple::CUDA) in parseOS()
438 .StartsWith("nvcl", Triple::NVCL) in parseOS()
439 .StartsWith("amdhsa", Triple::AMDHSA) in parseOS()
440 .StartsWith("ps4", Triple::PS4) in parseOS()
441 .StartsWith("elfiamcu", Triple::ELFIAMCU) in parseOS()
442 .StartsWith("tvos", Triple::TvOS) in parseOS()
443 .StartsWith("watchos", Triple::WatchOS) in parseOS()
444 .Default(Triple::UnknownOS); in parseOS()
447 static Triple::EnvironmentType parseEnvironment(StringRef EnvironmentName) { in parseEnvironment()
448 return StringSwitch<Triple::EnvironmentType>(EnvironmentName) in parseEnvironment()
449 .StartsWith("eabihf", Triple::EABIHF) in parseEnvironment()
450 .StartsWith("eabi", Triple::EABI) in parseEnvironment()
451 .StartsWith("gnueabihf", Triple::GNUEABIHF) in parseEnvironment()
452 .StartsWith("gnueabi", Triple::GNUEABI) in parseEnvironment()
453 .StartsWith("gnux32", Triple::GNUX32) in parseEnvironment()
454 .StartsWith("code16", Triple::CODE16) in parseEnvironment()
455 .StartsWith("gnu", Triple::GNU) in parseEnvironment()
456 .StartsWith("android", Triple::Android) in parseEnvironment()
457 .StartsWith("msvc", Triple::MSVC) in parseEnvironment()
458 .StartsWith("itanium", Triple::Itanium) in parseEnvironment()
459 .StartsWith("cygnus", Triple::Cygnus) in parseEnvironment()
460 .StartsWith("amdopencl", Triple::AMDOpenCL) in parseEnvironment()
461 .StartsWith("coreclr", Triple::CoreCLR) in parseEnvironment()
462 .Default(Triple::UnknownEnvironment); in parseEnvironment()
465 static Triple::ObjectFormatType parseFormat(StringRef EnvironmentName) { in parseFormat()
466 return StringSwitch<Triple::ObjectFormatType>(EnvironmentName) in parseFormat()
467 .EndsWith("coff", Triple::COFF) in parseFormat()
468 .EndsWith("elf", Triple::ELF) in parseFormat()
469 .EndsWith("macho", Triple::MachO) in parseFormat()
470 .Default(Triple::UnknownObjectFormat); in parseFormat()
473 static Triple::SubArchType parseSubArch(StringRef SubArchName) { in parseSubArch()
478 return StringSwitch<Triple::SubArchType>(SubArchName) in parseSubArch()
479 .EndsWith("kalimba3", Triple::KalimbaSubArch_v3) in parseSubArch()
480 .EndsWith("kalimba4", Triple::KalimbaSubArch_v4) in parseSubArch()
481 .EndsWith("kalimba5", Triple::KalimbaSubArch_v5) in parseSubArch()
482 .Default(Triple::NoSubArch); in parseSubArch()
487 return Triple::NoSubArch; in parseSubArch()
489 return Triple::ARMSubArch_v4t; in parseSubArch()
491 return Triple::ARMSubArch_v5; in parseSubArch()
497 return Triple::ARMSubArch_v5te; in parseSubArch()
499 return Triple::ARMSubArch_v6; in parseSubArch()
502 return Triple::ARMSubArch_v6k; in parseSubArch()
504 return Triple::ARMSubArch_v6t2; in parseSubArch()
506 return Triple::ARMSubArch_v6m; in parseSubArch()
509 return Triple::ARMSubArch_v7; in parseSubArch()
511 return Triple::ARMSubArch_v7k; in parseSubArch()
513 return Triple::ARMSubArch_v7m; in parseSubArch()
515 return Triple::ARMSubArch_v7s; in parseSubArch()
517 return Triple::ARMSubArch_v7em; in parseSubArch()
519 return Triple::ARMSubArch_v8; in parseSubArch()
521 return Triple::ARMSubArch_v8_1a; in parseSubArch()
523 return Triple::ARMSubArch_v8_2a; in parseSubArch()
525 return Triple::NoSubArch; in parseSubArch()
529 static const char *getObjectFormatTypeName(Triple::ObjectFormatType Kind) { in getObjectFormatTypeName()
531 case Triple::UnknownObjectFormat: return ""; in getObjectFormatTypeName()
532 case Triple::COFF: return "coff"; in getObjectFormatTypeName()
533 case Triple::ELF: return "elf"; in getObjectFormatTypeName()
534 case Triple::MachO: return "macho"; in getObjectFormatTypeName()
539 static Triple::ObjectFormatType getDefaultFormat(const Triple &T) { in getDefaultFormat()
541 case Triple::UnknownArch: in getDefaultFormat()
542 case Triple::aarch64: in getDefaultFormat()
543 case Triple::arm: in getDefaultFormat()
544 case Triple::thumb: in getDefaultFormat()
545 case Triple::x86: in getDefaultFormat()
546 case Triple::x86_64: in getDefaultFormat()
548 return Triple::MachO; in getDefaultFormat()
550 return Triple::COFF; in getDefaultFormat()
551 return Triple::ELF; in getDefaultFormat()
553 case Triple::aarch64_be: in getDefaultFormat()
554 case Triple::amdgcn: in getDefaultFormat()
555 case Triple::amdil: in getDefaultFormat()
556 case Triple::amdil64: in getDefaultFormat()
557 case Triple::armeb: in getDefaultFormat()
558 case Triple::avr: in getDefaultFormat()
559 case Triple::bpfeb: in getDefaultFormat()
560 case Triple::bpfel: in getDefaultFormat()
561 case Triple::hexagon: in getDefaultFormat()
562 case Triple::hsail: in getDefaultFormat()
563 case Triple::hsail64: in getDefaultFormat()
564 case Triple::kalimba: in getDefaultFormat()
565 case Triple::le32: in getDefaultFormat()
566 case Triple::le64: in getDefaultFormat()
567 case Triple::mips: in getDefaultFormat()
568 case Triple::mips64: in getDefaultFormat()
569 case Triple::mips64el: in getDefaultFormat()
570 case Triple::mipsel: in getDefaultFormat()
571 case Triple::msp430: in getDefaultFormat()
572 case Triple::nvptx: in getDefaultFormat()
573 case Triple::nvptx64: in getDefaultFormat()
574 case Triple::ppc64le: in getDefaultFormat()
575 case Triple::r600: in getDefaultFormat()
576 case Triple::shave: in getDefaultFormat()
577 case Triple::sparc: in getDefaultFormat()
578 case Triple::sparcel: in getDefaultFormat()
579 case Triple::sparcv9: in getDefaultFormat()
580 case Triple::spir: in getDefaultFormat()
581 case Triple::spir64: in getDefaultFormat()
582 case Triple::systemz: in getDefaultFormat()
583 case Triple::tce: in getDefaultFormat()
584 case Triple::thumbeb: in getDefaultFormat()
585 case Triple::wasm32: in getDefaultFormat()
586 case Triple::wasm64: in getDefaultFormat()
587 case Triple::xcore: in getDefaultFormat()
588 return Triple::ELF; in getDefaultFormat()
590 case Triple::ppc: in getDefaultFormat()
591 case Triple::ppc64: in getDefaultFormat()
593 return Triple::MachO; in getDefaultFormat()
594 return Triple::ELF; in getDefaultFormat()
603 Triple::Triple(const Twine &Str) in Triple() function in Triple
634 Triple::Triple(const Twine &ArchStr, const Twine &VendorStr, const Twine &OSStr) in Triple() function in Triple
640 Environment(), ObjectFormat(Triple::UnknownObjectFormat) { in Triple()
649 Triple::Triple(const Twine &ArchStr, const Twine &VendorStr, const Twine &OSStr, in Triple() function in Triple
659 if (ObjectFormat == Triple::UnknownObjectFormat) in Triple()
663 std::string Triple::normalize(StringRef Str) { in normalize()
803 if (Environment == Triple::Android && Components[3].startswith("androideabi")) { in normalize()
813 if (OS == Triple::Win32) { in normalize()
817 if (ObjectFormat == UnknownObjectFormat || ObjectFormat == Triple::COFF) in normalize()
832 (OS == Triple::Win32 && Environment != UnknownEnvironment)) { in normalize()
833 if (ObjectFormat != UnknownObjectFormat && ObjectFormat != Triple::COFF) { in normalize()
848 StringRef Triple::getArchName() const { in getArchName()
852 StringRef Triple::getVendorName() const { in getVendorName()
857 StringRef Triple::getOSName() const { in getOSName()
863 StringRef Triple::getEnvironmentName() const { in getEnvironmentName()
869 StringRef Triple::getOSAndEnvironmentName() const { in getOSAndEnvironmentName()
909 void Triple::getEnvironmentVersion(unsigned &Major, unsigned &Minor, in getEnvironmentVersion()
919 void Triple::getOSVersion(unsigned &Major, unsigned &Minor, in getOSVersion()
930 bool Triple::getMacOSXVersion(unsigned &Major, unsigned &Minor, in getMacOSXVersion()
971 void Triple::getiOSVersion(unsigned &Major, unsigned &Minor, in getiOSVersion()
997 void Triple::getWatchOSVersion(unsigned &Major, unsigned &Minor, in getWatchOSVersion()
1021 void Triple::setTriple(const Twine &Str) { in setTriple()
1022 *this = Triple(Str); in setTriple()
1025 void Triple::setArch(ArchType Kind) { in setArch()
1029 void Triple::setVendor(VendorType Kind) { in setVendor()
1033 void Triple::setOS(OSType Kind) { in setOS()
1037 void Triple::setEnvironment(EnvironmentType Kind) { in setEnvironment()
1045 void Triple::setObjectFormat(ObjectFormatType Kind) { in setObjectFormat()
1053 void Triple::setArchName(StringRef Str) { in setArchName()
1055 SmallString<64> Triple; in setArchName() local
1056 Triple += Str; in setArchName()
1057 Triple += "-"; in setArchName()
1058 Triple += getVendorName(); in setArchName()
1059 Triple += "-"; in setArchName()
1060 Triple += getOSAndEnvironmentName(); in setArchName()
1061 setTriple(Triple); in setArchName()
1064 void Triple::setVendorName(StringRef Str) { in setVendorName()
1068 void Triple::setOSName(StringRef Str) { in setOSName()
1076 void Triple::setEnvironmentName(StringRef Str) { in setEnvironmentName()
1081 void Triple::setOSAndEnvironmentName(StringRef Str) { in setOSAndEnvironmentName()
1085 static unsigned getArchPointerBitWidth(llvm::Triple::ArchType Arch) { in getArchPointerBitWidth()
1087 case llvm::Triple::UnknownArch: in getArchPointerBitWidth()
1090 case llvm::Triple::avr: in getArchPointerBitWidth()
1091 case llvm::Triple::msp430: in getArchPointerBitWidth()
1094 case llvm::Triple::arm: in getArchPointerBitWidth()
1095 case llvm::Triple::armeb: in getArchPointerBitWidth()
1096 case llvm::Triple::hexagon: in getArchPointerBitWidth()
1097 case llvm::Triple::le32: in getArchPointerBitWidth()
1098 case llvm::Triple::mips: in getArchPointerBitWidth()
1099 case llvm::Triple::mipsel: in getArchPointerBitWidth()
1100 case llvm::Triple::nvptx: in getArchPointerBitWidth()
1101 case llvm::Triple::ppc: in getArchPointerBitWidth()
1102 case llvm::Triple::r600: in getArchPointerBitWidth()
1103 case llvm::Triple::sparc: in getArchPointerBitWidth()
1104 case llvm::Triple::sparcel: in getArchPointerBitWidth()
1105 case llvm::Triple::tce: in getArchPointerBitWidth()
1106 case llvm::Triple::thumb: in getArchPointerBitWidth()
1107 case llvm::Triple::thumbeb: in getArchPointerBitWidth()
1108 case llvm::Triple::x86: in getArchPointerBitWidth()
1109 case llvm::Triple::xcore: in getArchPointerBitWidth()
1110 case llvm::Triple::amdil: in getArchPointerBitWidth()
1111 case llvm::Triple::hsail: in getArchPointerBitWidth()
1112 case llvm::Triple::spir: in getArchPointerBitWidth()
1113 case llvm::Triple::kalimba: in getArchPointerBitWidth()
1114 case llvm::Triple::shave: in getArchPointerBitWidth()
1115 case llvm::Triple::wasm32: in getArchPointerBitWidth()
1118 case llvm::Triple::aarch64: in getArchPointerBitWidth()
1119 case llvm::Triple::aarch64_be: in getArchPointerBitWidth()
1120 case llvm::Triple::amdgcn: in getArchPointerBitWidth()
1121 case llvm::Triple::bpfel: in getArchPointerBitWidth()
1122 case llvm::Triple::bpfeb: in getArchPointerBitWidth()
1123 case llvm::Triple::le64: in getArchPointerBitWidth()
1124 case llvm::Triple::mips64: in getArchPointerBitWidth()
1125 case llvm::Triple::mips64el: in getArchPointerBitWidth()
1126 case llvm::Triple::nvptx64: in getArchPointerBitWidth()
1127 case llvm::Triple::ppc64: in getArchPointerBitWidth()
1128 case llvm::Triple::ppc64le: in getArchPointerBitWidth()
1129 case llvm::Triple::sparcv9: in getArchPointerBitWidth()
1130 case llvm::Triple::systemz: in getArchPointerBitWidth()
1131 case llvm::Triple::x86_64: in getArchPointerBitWidth()
1132 case llvm::Triple::amdil64: in getArchPointerBitWidth()
1133 case llvm::Triple::hsail64: in getArchPointerBitWidth()
1134 case llvm::Triple::spir64: in getArchPointerBitWidth()
1135 case llvm::Triple::wasm64: in getArchPointerBitWidth()
1141 bool Triple::isArch64Bit() const { in isArch64Bit()
1145 bool Triple::isArch32Bit() const { in isArch32Bit()
1149 bool Triple::isArch16Bit() const { in isArch16Bit()
1153 Triple Triple::get32BitArchVariant() const { in get32BitArchVariant()
1154 Triple T(*this); in get32BitArchVariant()
1156 case Triple::UnknownArch: in get32BitArchVariant()
1157 case Triple::aarch64: in get32BitArchVariant()
1158 case Triple::aarch64_be: in get32BitArchVariant()
1159 case Triple::amdgcn: in get32BitArchVariant()
1160 case Triple::avr: in get32BitArchVariant()
1161 case Triple::bpfel: in get32BitArchVariant()
1162 case Triple::bpfeb: in get32BitArchVariant()
1163 case Triple::msp430: in get32BitArchVariant()
1164 case Triple::systemz: in get32BitArchVariant()
1165 case Triple::ppc64le: in get32BitArchVariant()
1169 case Triple::amdil: in get32BitArchVariant()
1170 case Triple::hsail: in get32BitArchVariant()
1171 case Triple::spir: in get32BitArchVariant()
1172 case Triple::arm: in get32BitArchVariant()
1173 case Triple::armeb: in get32BitArchVariant()
1174 case Triple::hexagon: in get32BitArchVariant()
1175 case Triple::kalimba: in get32BitArchVariant()
1176 case Triple::le32: in get32BitArchVariant()
1177 case Triple::mips: in get32BitArchVariant()
1178 case Triple::mipsel: in get32BitArchVariant()
1179 case Triple::nvptx: in get32BitArchVariant()
1180 case Triple::ppc: in get32BitArchVariant()
1181 case Triple::r600: in get32BitArchVariant()
1182 case Triple::sparc: in get32BitArchVariant()
1183 case Triple::sparcel: in get32BitArchVariant()
1184 case Triple::tce: in get32BitArchVariant()
1185 case Triple::thumb: in get32BitArchVariant()
1186 case Triple::thumbeb: in get32BitArchVariant()
1187 case Triple::x86: in get32BitArchVariant()
1188 case Triple::xcore: in get32BitArchVariant()
1189 case Triple::shave: in get32BitArchVariant()
1190 case Triple::wasm32: in get32BitArchVariant()
1194 case Triple::le64: T.setArch(Triple::le32); break; in get32BitArchVariant()
1195 case Triple::mips64: T.setArch(Triple::mips); break; in get32BitArchVariant()
1196 case Triple::mips64el: T.setArch(Triple::mipsel); break; in get32BitArchVariant()
1197 case Triple::nvptx64: T.setArch(Triple::nvptx); break; in get32BitArchVariant()
1198 case Triple::ppc64: T.setArch(Triple::ppc); break; in get32BitArchVariant()
1199 case Triple::sparcv9: T.setArch(Triple::sparc); break; in get32BitArchVariant()
1200 case Triple::x86_64: T.setArch(Triple::x86); break; in get32BitArchVariant()
1201 case Triple::amdil64: T.setArch(Triple::amdil); break; in get32BitArchVariant()
1202 case Triple::hsail64: T.setArch(Triple::hsail); break; in get32BitArchVariant()
1203 case Triple::spir64: T.setArch(Triple::spir); break; in get32BitArchVariant()
1204 case Triple::wasm64: T.setArch(Triple::wasm32); break; in get32BitArchVariant()
1209 Triple Triple::get64BitArchVariant() const { in get64BitArchVariant()
1210 Triple T(*this); in get64BitArchVariant()
1212 case Triple::UnknownArch: in get64BitArchVariant()
1213 case Triple::arm: in get64BitArchVariant()
1214 case Triple::armeb: in get64BitArchVariant()
1215 case Triple::avr: in get64BitArchVariant()
1216 case Triple::hexagon: in get64BitArchVariant()
1217 case Triple::kalimba: in get64BitArchVariant()
1218 case Triple::msp430: in get64BitArchVariant()
1219 case Triple::r600: in get64BitArchVariant()
1220 case Triple::tce: in get64BitArchVariant()
1221 case Triple::thumb: in get64BitArchVariant()
1222 case Triple::thumbeb: in get64BitArchVariant()
1223 case Triple::xcore: in get64BitArchVariant()
1224 case Triple::sparcel: in get64BitArchVariant()
1225 case Triple::shave: in get64BitArchVariant()
1229 case Triple::aarch64: in get64BitArchVariant()
1230 case Triple::aarch64_be: in get64BitArchVariant()
1231 case Triple::bpfel: in get64BitArchVariant()
1232 case Triple::bpfeb: in get64BitArchVariant()
1233 case Triple::le64: in get64BitArchVariant()
1234 case Triple::amdil64: in get64BitArchVariant()
1235 case Triple::amdgcn: in get64BitArchVariant()
1236 case Triple::hsail64: in get64BitArchVariant()
1237 case Triple::spir64: in get64BitArchVariant()
1238 case Triple::mips64: in get64BitArchVariant()
1239 case Triple::mips64el: in get64BitArchVariant()
1240 case Triple::nvptx64: in get64BitArchVariant()
1241 case Triple::ppc64: in get64BitArchVariant()
1242 case Triple::ppc64le: in get64BitArchVariant()
1243 case Triple::sparcv9: in get64BitArchVariant()
1244 case Triple::systemz: in get64BitArchVariant()
1245 case Triple::x86_64: in get64BitArchVariant()
1246 case Triple::wasm64: in get64BitArchVariant()
1250 case Triple::le32: T.setArch(Triple::le64); break; in get64BitArchVariant()
1251 case Triple::mips: T.setArch(Triple::mips64); break; in get64BitArchVariant()
1252 case Triple::mipsel: T.setArch(Triple::mips64el); break; in get64BitArchVariant()
1253 case Triple::nvptx: T.setArch(Triple::nvptx64); break; in get64BitArchVariant()
1254 case Triple::ppc: T.setArch(Triple::ppc64); break; in get64BitArchVariant()
1255 case Triple::sparc: T.setArch(Triple::sparcv9); break; in get64BitArchVariant()
1256 case Triple::x86: T.setArch(Triple::x86_64); break; in get64BitArchVariant()
1257 case Triple::amdil: T.setArch(Triple::amdil64); break; in get64BitArchVariant()
1258 case Triple::hsail: T.setArch(Triple::hsail64); break; in get64BitArchVariant()
1259 case Triple::spir: T.setArch(Triple::spir64); break; in get64BitArchVariant()
1260 case Triple::wasm32: T.setArch(Triple::wasm64); break; in get64BitArchVariant()
1265 Triple Triple::getBigEndianArchVariant() const { in getBigEndianArchVariant()
1266 Triple T(*this); in getBigEndianArchVariant()
1268 case Triple::UnknownArch: in getBigEndianArchVariant()
1269 case Triple::amdgcn: in getBigEndianArchVariant()
1270 case Triple::amdil64: in getBigEndianArchVariant()
1271 case Triple::amdil: in getBigEndianArchVariant()
1272 case Triple::avr: in getBigEndianArchVariant()
1273 case Triple::hexagon: in getBigEndianArchVariant()
1274 case Triple::hsail64: in getBigEndianArchVariant()
1275 case Triple::hsail: in getBigEndianArchVariant()
1276 case Triple::kalimba: in getBigEndianArchVariant()
1277 case Triple::le32: in getBigEndianArchVariant()
1278 case Triple::le64: in getBigEndianArchVariant()
1279 case Triple::msp430: in getBigEndianArchVariant()
1280 case Triple::nvptx64: in getBigEndianArchVariant()
1281 case Triple::nvptx: in getBigEndianArchVariant()
1282 case Triple::r600: in getBigEndianArchVariant()
1283 case Triple::shave: in getBigEndianArchVariant()
1284 case Triple::spir64: in getBigEndianArchVariant()
1285 case Triple::spir: in getBigEndianArchVariant()
1286 case Triple::wasm32: in getBigEndianArchVariant()
1287 case Triple::wasm64: in getBigEndianArchVariant()
1288 case Triple::x86: in getBigEndianArchVariant()
1289 case Triple::x86_64: in getBigEndianArchVariant()
1290 case Triple::xcore: in getBigEndianArchVariant()
1294 case Triple::arm: in getBigEndianArchVariant()
1295 case Triple::thumb: in getBigEndianArchVariant()
1299 case Triple::aarch64_be: in getBigEndianArchVariant()
1300 case Triple::armeb: in getBigEndianArchVariant()
1301 case Triple::bpfeb: in getBigEndianArchVariant()
1302 case Triple::mips64: in getBigEndianArchVariant()
1303 case Triple::mips: in getBigEndianArchVariant()
1304 case Triple::ppc64: in getBigEndianArchVariant()
1305 case Triple::ppc: in getBigEndianArchVariant()
1306 case Triple::sparc: in getBigEndianArchVariant()
1307 case Triple::sparcv9: in getBigEndianArchVariant()
1308 case Triple::systemz: in getBigEndianArchVariant()
1309 case Triple::tce: in getBigEndianArchVariant()
1310 case Triple::thumbeb: in getBigEndianArchVariant()
1314 case Triple::aarch64: T.setArch(Triple::aarch64_be); break; in getBigEndianArchVariant()
1315 case Triple::bpfel: T.setArch(Triple::bpfeb); break; in getBigEndianArchVariant()
1316 case Triple::mips64el:T.setArch(Triple::mips64); break; in getBigEndianArchVariant()
1317 case Triple::mipsel: T.setArch(Triple::mips); break; in getBigEndianArchVariant()
1318 case Triple::ppc64le: T.setArch(Triple::ppc64); break; in getBigEndianArchVariant()
1319 case Triple::sparcel: T.setArch(Triple::sparc); break; in getBigEndianArchVariant()
1324 Triple Triple::getLittleEndianArchVariant() const { in getLittleEndianArchVariant()
1325 Triple T(*this); in getLittleEndianArchVariant()
1327 case Triple::UnknownArch: in getLittleEndianArchVariant()
1328 case Triple::ppc: in getLittleEndianArchVariant()
1329 case Triple::sparcv9: in getLittleEndianArchVariant()
1330 case Triple::systemz: in getLittleEndianArchVariant()
1331 case Triple::tce: in getLittleEndianArchVariant()
1335 case Triple::armeb: in getLittleEndianArchVariant()
1336 case Triple::thumbeb: in getLittleEndianArchVariant()
1340 case Triple::aarch64: in getLittleEndianArchVariant()
1341 case Triple::amdgcn: in getLittleEndianArchVariant()
1342 case Triple::amdil64: in getLittleEndianArchVariant()
1343 case Triple::amdil: in getLittleEndianArchVariant()
1344 case Triple::arm: in getLittleEndianArchVariant()
1345 case Triple::avr: in getLittleEndianArchVariant()
1346 case Triple::bpfel: in getLittleEndianArchVariant()
1347 case Triple::hexagon: in getLittleEndianArchVariant()
1348 case Triple::hsail64: in getLittleEndianArchVariant()
1349 case Triple::hsail: in getLittleEndianArchVariant()
1350 case Triple::kalimba: in getLittleEndianArchVariant()
1351 case Triple::le32: in getLittleEndianArchVariant()
1352 case Triple::le64: in getLittleEndianArchVariant()
1353 case Triple::mips64el: in getLittleEndianArchVariant()
1354 case Triple::mipsel: in getLittleEndianArchVariant()
1355 case Triple::msp430: in getLittleEndianArchVariant()
1356 case Triple::nvptx64: in getLittleEndianArchVariant()
1357 case Triple::nvptx: in getLittleEndianArchVariant()
1358 case Triple::ppc64le: in getLittleEndianArchVariant()
1359 case Triple::r600: in getLittleEndianArchVariant()
1360 case Triple::shave: in getLittleEndianArchVariant()
1361 case Triple::sparcel: in getLittleEndianArchVariant()
1362 case Triple::spir64: in getLittleEndianArchVariant()
1363 case Triple::spir: in getLittleEndianArchVariant()
1364 case Triple::thumb: in getLittleEndianArchVariant()
1365 case Triple::wasm32: in getLittleEndianArchVariant()
1366 case Triple::wasm64: in getLittleEndianArchVariant()
1367 case Triple::x86: in getLittleEndianArchVariant()
1368 case Triple::x86_64: in getLittleEndianArchVariant()
1369 case Triple::xcore: in getLittleEndianArchVariant()
1373 case Triple::aarch64_be: T.setArch(Triple::aarch64); break; in getLittleEndianArchVariant()
1374 case Triple::bpfeb: T.setArch(Triple::bpfel); break; in getLittleEndianArchVariant()
1375 case Triple::mips64: T.setArch(Triple::mips64el); break; in getLittleEndianArchVariant()
1376 case Triple::mips: T.setArch(Triple::mipsel); break; in getLittleEndianArchVariant()
1377 case Triple::ppc64: T.setArch(Triple::ppc64le); break; in getLittleEndianArchVariant()
1378 case Triple::sparc: T.setArch(Triple::sparcel); break; in getLittleEndianArchVariant()
1383 StringRef Triple::getARMCPUForArch(StringRef MArch) const { in getARMCPUForArch()
1390 case llvm::Triple::FreeBSD: in getARMCPUForArch()
1391 case llvm::Triple::NetBSD: in getARMCPUForArch()
1395 case llvm::Triple::Win32: in getARMCPUForArch()
1398 case llvm::Triple::MacOSX: in getARMCPUForArch()
1399 case llvm::Triple::IOS: in getARMCPUForArch()
1400 case llvm::Triple::WatchOS: in getARMCPUForArch()
1418 case llvm::Triple::NetBSD: in getARMCPUForArch()
1420 case llvm::Triple::GNUEABIHF: in getARMCPUForArch()
1421 case llvm::Triple::GNUEABI: in getARMCPUForArch()
1422 case llvm::Triple::EABIHF: in getARMCPUForArch()
1423 case llvm::Triple::EABI: in getARMCPUForArch()
1428 case llvm::Triple::NaCl: in getARMCPUForArch()
1432 case llvm::Triple::EABIHF: in getARMCPUForArch()
1433 case llvm::Triple::GNUEABIHF: in getARMCPUForArch()