• Home
  • Raw
  • Download

Lines Matching refs:Triple

76   virtual void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
79 OSTargetInfo(const llvm::Triple &Triple) : TgtInfo(Triple) {} in OSTargetInfo() argument
92 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
104 CloudABITargetInfo(const llvm::Triple &Triple) in CloudABITargetInfo() argument
105 : OSTargetInfo<Target>(Triple) { in CloudABITargetInfo()
111 const llvm::Triple &Triple, in getDarwinDefines() argument
140 if (Triple.isMacOSX()) { in getDarwinDefines()
141 Triple.getMacOSXVersion(Maj, Min, Rev); in getDarwinDefines()
144 Triple.getOSVersion(Maj, Min, Rev); in getDarwinDefines()
145 PlatformName = llvm::Triple::getOSTypeName(Triple.getOS()); in getDarwinDefines()
157 if (Triple.isiOS()) { in getDarwinDefines()
166 if (Triple.isTvOS()) in getDarwinDefines()
172 } else if (Triple.isWatchOS()) { in getDarwinDefines()
182 } else if (Triple.isMacOSX()) { in getDarwinDefines()
209 if (Triple.isOSDarwin()) in getDarwinDefines()
218 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
220 getDarwinDefines(Builder, Opts, Triple, this->PlatformName, in getOSDefines()
225 DarwinTargetInfo(const llvm::Triple &Triple) : OSTargetInfo<Target>(Triple) { in DarwinTargetInfo() argument
226 this->TLSSupported = Triple.isMacOSX() && !Triple.isMacOSXVersionLT(10, 7); in DarwinTargetInfo()
257 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
268 DragonFlyBSDTargetInfo(const llvm::Triple &Triple) in DragonFlyBSDTargetInfo() argument
269 : OSTargetInfo<Target>(Triple) { in DragonFlyBSDTargetInfo()
272 switch (Triple.getArch()) { in DragonFlyBSDTargetInfo()
274 case llvm::Triple::x86: in DragonFlyBSDTargetInfo()
275 case llvm::Triple::x86_64: in DragonFlyBSDTargetInfo()
286 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
290 unsigned Release = Triple.getOSMajorVersion(); in getOSDefines()
312 FreeBSDTargetInfo(const llvm::Triple &Triple) : OSTargetInfo<Target>(Triple) { in FreeBSDTargetInfo() argument
315 switch (Triple.getArch()) { in FreeBSDTargetInfo()
317 case llvm::Triple::x86: in FreeBSDTargetInfo()
318 case llvm::Triple::x86_64: in FreeBSDTargetInfo()
321 case llvm::Triple::mips: in FreeBSDTargetInfo()
322 case llvm::Triple::mipsel: in FreeBSDTargetInfo()
323 case llvm::Triple::ppc: in FreeBSDTargetInfo()
324 case llvm::Triple::ppc64: in FreeBSDTargetInfo()
325 case llvm::Triple::ppc64le: in FreeBSDTargetInfo()
328 case llvm::Triple::arm: in FreeBSDTargetInfo()
339 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
353 KFreeBSDTargetInfo(const llvm::Triple &Triple) in KFreeBSDTargetInfo() argument
354 : OSTargetInfo<Target>(Triple) { in KFreeBSDTargetInfo()
363 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
378 MinixTargetInfo(const llvm::Triple &Triple) : OSTargetInfo<Target>(Triple) { in MinixTargetInfo() argument
387 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
394 if (Triple.isAndroid()) { in getOSDefines()
397 Triple.getEnvironmentVersion(Maj, Min, Rev); in getOSDefines()
407 LinuxTargetInfo(const llvm::Triple &Triple) : OSTargetInfo<Target>(Triple) { in LinuxTargetInfo() argument
411 switch (Triple.getArch()) { in LinuxTargetInfo()
414 case llvm::Triple::ppc: in LinuxTargetInfo()
415 case llvm::Triple::ppc64: in LinuxTargetInfo()
416 case llvm::Triple::ppc64le: in LinuxTargetInfo()
431 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
440 switch (Triple.getArch()) { in getOSDefines()
443 case llvm::Triple::arm: in getOSDefines()
444 case llvm::Triple::armeb: in getOSDefines()
445 case llvm::Triple::thumb: in getOSDefines()
446 case llvm::Triple::thumbeb: in getOSDefines()
452 NetBSDTargetInfo(const llvm::Triple &Triple) : OSTargetInfo<Target>(Triple) { in NetBSDTargetInfo() argument
462 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
473 OpenBSDTargetInfo(const llvm::Triple &Triple) : OSTargetInfo<Target>(Triple) { in OpenBSDTargetInfo() argument
477 switch (Triple.getArch()) { in OpenBSDTargetInfo()
479 case llvm::Triple::x86: in OpenBSDTargetInfo()
480 case llvm::Triple::x86_64: in OpenBSDTargetInfo()
481 case llvm::Triple::arm: in OpenBSDTargetInfo()
482 case llvm::Triple::sparc: in OpenBSDTargetInfo()
485 case llvm::Triple::mips64: in OpenBSDTargetInfo()
486 case llvm::Triple::mips64el: in OpenBSDTargetInfo()
487 case llvm::Triple::ppc: in OpenBSDTargetInfo()
488 case llvm::Triple::sparcv9: in OpenBSDTargetInfo()
499 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
509 switch (Triple.getArch()) { in getOSDefines()
512 case llvm::Triple::arm: in getOSDefines()
513 case llvm::Triple::armeb: in getOSDefines()
514 case llvm::Triple::thumb: in getOSDefines()
515 case llvm::Triple::thumbeb: in getOSDefines()
521 BitrigTargetInfo(const llvm::Triple &Triple) : OSTargetInfo<Target>(Triple) { in BitrigTargetInfo() argument
531 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
540 PSPTargetInfo(const llvm::Triple &Triple) : OSTargetInfo<Target>(Triple) { in PSPTargetInfo() argument
549 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
561 PS3PPUTargetInfo(const llvm::Triple &Triple) : OSTargetInfo<Target>(Triple) { in PS3PPUTargetInfo() argument
575 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
585 PS4OSTargetInfo(const llvm::Triple &Triple) : OSTargetInfo<Target>(Triple) { in PS4OSTargetInfo() argument
592 switch (Triple.getArch()) { in PS4OSTargetInfo()
594 case llvm::Triple::x86_64: in PS4OSTargetInfo()
605 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
628 SolarisTargetInfo(const llvm::Triple &Triple) : OSTargetInfo<Target>(Triple) { in SolarisTargetInfo() argument
639 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
689 WindowsTargetInfo(const llvm::Triple &Triple) in WindowsTargetInfo() argument
690 : OSTargetInfo<Target>(Triple) {} in WindowsTargetInfo()
696 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
709 NaClTargetInfo(const llvm::Triple &Triple) : OSTargetInfo<Target>(Triple) { in NaClTargetInfo() argument
727 if (Triple.getArch() == llvm::Triple::arm) { in NaClTargetInfo()
729 } else if (Triple.getArch() == llvm::Triple::x86) { in NaClTargetInfo()
731 } else if (Triple.getArch() == llvm::Triple::x86_64) { in NaClTargetInfo()
733 } else if (Triple.getArch() == llvm::Triple::mipsel) { in NaClTargetInfo()
736 assert(Triple.getArch() == llvm::Triple::le32); in NaClTargetInfo()
745 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
761 explicit WebAssemblyOSTargetInfo(const llvm::Triple &Triple) in WebAssemblyOSTargetInfo() argument
762 : OSTargetInfo<Target>(Triple) { in WebAssemblyOSTargetInfo()
794 PPCTargetInfo(const llvm::Triple &Triple) in PPCTargetInfo() argument
795 : TargetInfo(Triple), HasVSX(false), HasP8Vector(false), in PPCTargetInfo()
798 BigEndian = (Triple.getArch() != llvm::Triple::ppc64le); in PPCTargetInfo()
1098 if (getTriple().getArch() == llvm::Triple::ppc64le) { in getTargetDefines()
1101 if (getTriple().getOS() != llvm::Triple::NetBSD && in getTargetDefines()
1102 getTriple().getOS() != llvm::Triple::OpenBSD) in getTargetDefines()
1214 if (getTriple().getVendor() == llvm::Triple::BGQ) { in getTargetDefines()
1476 PPC32TargetInfo(const llvm::Triple &Triple) : PPCTargetInfo(Triple) { in PPC32TargetInfo() argument
1480 case llvm::Triple::Linux: in PPC32TargetInfo()
1481 case llvm::Triple::FreeBSD: in PPC32TargetInfo()
1482 case llvm::Triple::NetBSD: in PPC32TargetInfo()
1491 if (getTriple().getOS() == llvm::Triple::FreeBSD) { in PPC32TargetInfo()
1510 PPC64TargetInfo(const llvm::Triple &Triple) : PPCTargetInfo(Triple) { in PPC64TargetInfo() argument
1515 if ((Triple.getArch() == llvm::Triple::ppc64le)) { in PPC64TargetInfo()
1524 case llvm::Triple::FreeBSD: in PPC64TargetInfo()
1528 case llvm::Triple::NetBSD: in PPC64TargetInfo()
1555 DarwinPPC32TargetInfo(const llvm::Triple &Triple) in DarwinPPC32TargetInfo() argument
1556 : DarwinTargetInfo<PPC32TargetInfo>(Triple) { in DarwinPPC32TargetInfo()
1572 DarwinPPC64TargetInfo(const llvm::Triple &Triple) in DarwinPPC64TargetInfo() argument
1573 : DarwinTargetInfo<PPC64TargetInfo>(Triple) { in DarwinPPC64TargetInfo()
1606 NVPTXTargetInfo(const llvm::Triple &Triple) : TargetInfo(Triple) { in NVPTXTargetInfo() argument
1712 NVPTX32TargetInfo(const llvm::Triple &Triple) : NVPTXTargetInfo(Triple) { in NVPTX32TargetInfo() argument
1724 NVPTX64TargetInfo(const llvm::Triple &Triple) : NVPTXTargetInfo(Triple) { in NVPTX64TargetInfo() argument
1784 AMDGPUTargetInfo(const llvm::Triple &Triple) in AMDGPUTargetInfo() argument
1785 : TargetInfo(Triple) { in AMDGPUTargetInfo()
1787 if (Triple.getArch() == llvm::Triple::amdgcn) { in AMDGPUTargetInfo()
2343 X86TargetInfo(const llvm::Triple &Triple) : TargetInfo(Triple) { in X86TargetInfo() argument
2416 if (getTriple().getArch() == llvm::Triple::x86_64 && SSELevel >= AVX512F) in getABI()
2418 if (getTriple().getArch() == llvm::Triple::x86_64 && SSELevel >= AVX) in getABI()
2420 if (getTriple().getArch() == llvm::Triple::x86 && in getABI()
2466 if (getTriple().getArch() != llvm::Triple::x86) in setCPU()
2542 if (getTriple().getArch() == llvm::Triple::x86_64) in initFeatureMap()
3074 if (getTriple().getArch() == llvm::Triple::x86_64) { in getTargetDefines()
3355 if (Opts.MicrosoftExt && getTriple().getArch() == llvm::Triple::x86) { in getTargetDefines()
3436 .Case("x86_32", getTriple().getArch() == llvm::Triple::x86) in hasFeature()
3437 .Case("x86_64", getTriple().getArch() == llvm::Triple::x86_64) in hasFeature()
3631 X86_32TargetInfo(const llvm::Triple &Triple) : X86TargetInfo(Triple) { in X86_32TargetInfo() argument
3685 NetBSDI386TargetInfo(const llvm::Triple &Triple) in NetBSDI386TargetInfo() argument
3686 : NetBSDTargetInfo<X86_32TargetInfo>(Triple) {} in NetBSDI386TargetInfo()
3701 OpenBSDI386TargetInfo(const llvm::Triple &Triple) in OpenBSDI386TargetInfo() argument
3702 : OpenBSDTargetInfo<X86_32TargetInfo>(Triple) { in OpenBSDI386TargetInfo()
3711 BitrigI386TargetInfo(const llvm::Triple &Triple) in BitrigI386TargetInfo() argument
3712 : BitrigTargetInfo<X86_32TargetInfo>(Triple) { in BitrigI386TargetInfo()
3721 DarwinI386TargetInfo(const llvm::Triple &Triple) in DarwinI386TargetInfo() argument
3722 : DarwinTargetInfo<X86_32TargetInfo>(Triple) { in DarwinI386TargetInfo()
3728 llvm::Triple T = llvm::Triple(Triple); in DarwinI386TargetInfo()
3752 WindowsX86_32TargetInfo(const llvm::Triple &Triple) in WindowsX86_32TargetInfo() argument
3753 : WindowsTargetInfo<X86_32TargetInfo>(Triple) { in WindowsX86_32TargetInfo()
3771 MicrosoftX86_32TargetInfo(const llvm::Triple &Triple) in MicrosoftX86_32TargetInfo() argument
3772 : WindowsX86_32TargetInfo(Triple) { in MicrosoftX86_32TargetInfo()
3820 MinGWX86_32TargetInfo(const llvm::Triple &Triple) in MinGWX86_32TargetInfo() argument
3821 : WindowsX86_32TargetInfo(Triple) {} in MinGWX86_32TargetInfo()
3835 CygwinX86_32TargetInfo(const llvm::Triple &Triple) in CygwinX86_32TargetInfo() argument
3836 : X86_32TargetInfo(Triple) { in CygwinX86_32TargetInfo()
3857 HaikuX86_32TargetInfo(const llvm::Triple &Triple) : X86_32TargetInfo(Triple) { in HaikuX86_32TargetInfo() argument
3876 MCUX86_32TargetInfo(const llvm::Triple &Triple) : X86_32TargetInfo(Triple) { in MCUX86_32TargetInfo() argument
3898 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
3907 RTEMSTargetInfo(const llvm::Triple &Triple) : OSTargetInfo<Target>(Triple) { in RTEMSTargetInfo() argument
3910 switch (Triple.getArch()) { in RTEMSTargetInfo()
3912 case llvm::Triple::x86: in RTEMSTargetInfo()
3915 case llvm::Triple::mips: in RTEMSTargetInfo()
3916 case llvm::Triple::mipsel: in RTEMSTargetInfo()
3917 case llvm::Triple::ppc: in RTEMSTargetInfo()
3918 case llvm::Triple::ppc64: in RTEMSTargetInfo()
3919 case llvm::Triple::ppc64le: in RTEMSTargetInfo()
3922 case llvm::Triple::arm: in RTEMSTargetInfo()
3932 RTEMSX86_32TargetInfo(const llvm::Triple &Triple) : X86_32TargetInfo(Triple) { in RTEMSX86_32TargetInfo() argument
3949 X86_64TargetInfo(const llvm::Triple &Triple) : X86TargetInfo(Triple) { in X86_64TargetInfo() argument
3950 const bool IsX32 = getTriple().getEnvironment() == llvm::Triple::GNUX32; in X86_64TargetInfo()
4029 WindowsX86_64TargetInfo(const llvm::Triple &Triple) in WindowsX86_64TargetInfo() argument
4030 : WindowsTargetInfo<X86_64TargetInfo>(Triple) { in WindowsX86_64TargetInfo()
4072 MicrosoftX86_64TargetInfo(const llvm::Triple &Triple) in MicrosoftX86_64TargetInfo() argument
4073 : WindowsX86_64TargetInfo(Triple) { in MicrosoftX86_64TargetInfo()
4089 MinGWX86_64TargetInfo(const llvm::Triple &Triple) in MinGWX86_64TargetInfo() argument
4090 : WindowsX86_64TargetInfo(Triple) { in MinGWX86_64TargetInfo()
4113 CygwinX86_64TargetInfo(const llvm::Triple &Triple) in CygwinX86_64TargetInfo() argument
4114 : X86_64TargetInfo(Triple) { in CygwinX86_64TargetInfo()
4137 DarwinX86_64TargetInfo(const llvm::Triple &Triple) in DarwinX86_64TargetInfo() argument
4138 : DarwinTargetInfo<X86_64TargetInfo>(Triple) { in DarwinX86_64TargetInfo()
4141 llvm::Triple T = llvm::Triple(Triple); in DarwinX86_64TargetInfo()
4161 OpenBSDX86_64TargetInfo(const llvm::Triple &Triple) in OpenBSDX86_64TargetInfo() argument
4162 : OpenBSDTargetInfo<X86_64TargetInfo>(Triple) { in OpenBSDX86_64TargetInfo()
4170 BitrigX86_64TargetInfo(const llvm::Triple &Triple) in BitrigX86_64TargetInfo() argument
4171 : BitrigTargetInfo<X86_64TargetInfo>(Triple) { in BitrigX86_64TargetInfo()
4253 const llvm::Triple &T = getTriple(); in setABIAAPCS()
4256 if (T.isOSBinFormatMachO() || T.getOS() == llvm::Triple::NetBSD || in setABIAAPCS()
4257 T.getOS() == llvm::Triple::Bitrig) in setABIAAPCS()
4263 case llvm::Triple::NetBSD: in setABIAAPCS()
4266 case llvm::Triple::Win32: in setABIAAPCS()
4269 case llvm::Triple::Linux: in setABIAAPCS()
4309 const llvm::Triple &T = getTriple(); in setABIAPCS()
4319 if (T.getOS() == llvm::Triple::FreeBSD) in setABIAPCS()
4448 ARMTargetInfo(const llvm::Triple &Triple, bool IsBigEndian) in ARMTargetInfo() argument
4449 : TargetInfo(Triple), FPMath(FP_Default), in ARMTargetInfo()
4454 case llvm::Triple::NetBSD: in ARMTargetInfo()
4472 if (Triple.isOSBinFormatMachO()) { in ARMTargetInfo()
4475 if (Triple.getEnvironment() == llvm::Triple::EABI || in ARMTargetInfo()
4476 Triple.getOS() == llvm::Triple::UnknownOS || in ARMTargetInfo()
4479 } else if (Triple.isWatchOS()) { in ARMTargetInfo()
4484 } else if (Triple.isOSWindows()) { in ARMTargetInfo()
4489 switch (Triple.getEnvironment()) { in ARMTargetInfo()
4490 case llvm::Triple::Android: in ARMTargetInfo()
4491 case llvm::Triple::GNUEABI: in ARMTargetInfo()
4492 case llvm::Triple::GNUEABIHF: in ARMTargetInfo()
4495 case llvm::Triple::EABIHF: in ARMTargetInfo()
4496 case llvm::Triple::EABI: in ARMTargetInfo()
4499 case llvm::Triple::GNU: in ARMTargetInfo()
4503 if (Triple.getOS() == llvm::Triple::NetBSD) in ARMTargetInfo()
5072 ARMleTargetInfo(const llvm::Triple &Triple) in ARMleTargetInfo() argument
5073 : ARMTargetInfo(Triple, false) { } in ARMleTargetInfo()
5083 ARMbeTargetInfo(const llvm::Triple &Triple) in ARMbeTargetInfo() argument
5084 : ARMTargetInfo(Triple, true) { } in ARMbeTargetInfo()
5094 const llvm::Triple Triple; member in __anon98321eb30111::WindowsARMTargetInfo
5096 WindowsARMTargetInfo(const llvm::Triple &Triple) in WindowsARMTargetInfo() argument
5097 : WindowsTargetInfo<ARMleTargetInfo>(Triple), Triple(Triple) { in WindowsARMTargetInfo()
5112 assert((Triple.getArch() == llvm::Triple::arm || in getVisualStudioDefines()
5113 Triple.getArch() == llvm::Triple::thumb) && in getVisualStudioDefines()
5115 unsigned Offset = Triple.getArch() == llvm::Triple::arm ? 4 : 6; in getVisualStudioDefines()
5116 Builder.defineMacro("_M_ARM", Triple.getArchName().substr(Offset)); in getVisualStudioDefines()
5143 ItaniumWindowsARMleTargetInfo(const llvm::Triple &Triple) in ItaniumWindowsARMleTargetInfo() argument
5144 : WindowsARMTargetInfo(Triple) { in ItaniumWindowsARMleTargetInfo()
5160 MicrosoftARMleTargetInfo(const llvm::Triple &Triple) in MicrosoftARMleTargetInfo() argument
5161 : WindowsARMTargetInfo(Triple) { in MicrosoftARMleTargetInfo()
5175 MinGWARMTargetInfo(const llvm::Triple &Triple) in MinGWARMTargetInfo() argument
5176 : WindowsARMTargetInfo(Triple) { in MinGWARMTargetInfo()
5193 CygwinARMTargetInfo(const llvm::Triple &Triple) : ARMleTargetInfo(Triple) { in CygwinARMTargetInfo() argument
5214 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
5216 getDarwinDefines(Builder, Opts, Triple, PlatformName, PlatformMinVersion); in getOSDefines()
5220 DarwinARMTargetInfo(const llvm::Triple &Triple) in DarwinARMTargetInfo() argument
5221 : DarwinTargetInfo<ARMleTargetInfo>(Triple) { in DarwinARMTargetInfo()
5228 if (Triple.isWatchOS()) { in DarwinARMTargetInfo()
5264 AArch64TargetInfo(const llvm::Triple &Triple) in AArch64TargetInfo() argument
5265 : TargetInfo(Triple), ABI("aapcs") { in AArch64TargetInfo()
5267 if (getTriple().getOS() == llvm::Triple::NetBSD) { in AArch64TargetInfo()
5581 AArch64leTargetInfo(const llvm::Triple &Triple) in AArch64leTargetInfo() argument
5582 : AArch64TargetInfo(Triple) { in AArch64leTargetInfo()
5599 AArch64beTargetInfo(const llvm::Triple &Triple) in AArch64beTargetInfo() argument
5600 : AArch64TargetInfo(Triple) { } in AArch64beTargetInfo()
5612 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
5622 getDarwinDefines(Builder, Opts, Triple, PlatformName, PlatformMinVersion); in getOSDefines()
5626 DarwinAArch64TargetInfo(const llvm::Triple &Triple) in DarwinAArch64TargetInfo() argument
5627 : DarwinTargetInfo<AArch64leTargetInfo>(Triple) { in DarwinAArch64TargetInfo()
5652 HexagonTargetInfo(const llvm::Triple &Triple) : TargetInfo(Triple) { in HexagonTargetInfo() argument
5823 SparcTargetInfo(const llvm::Triple &Triple) in SparcTargetInfo() argument
5824 : TargetInfo(Triple), SoftFloat(false) {} in SparcTargetInfo()
6010 SparcV8TargetInfo(const llvm::Triple &Triple) : SparcTargetInfo(Triple) { in SparcV8TargetInfo() argument
6019 case llvm::Triple::NetBSD: in SparcV8TargetInfo()
6020 case llvm::Triple::OpenBSD: in SparcV8TargetInfo()
6034 if (getTriple().getOS() != llvm::Triple::Solaris) in getTargetDefines()
6039 if (getTriple().getOS() != llvm::Triple::Solaris) { in getTargetDefines()
6051 SparcV8elTargetInfo(const llvm::Triple &Triple) : SparcV8TargetInfo(Triple) { in SparcV8elTargetInfo() argument
6060 SparcV9TargetInfo(const llvm::Triple &Triple) : SparcTargetInfo(Triple) { in SparcV9TargetInfo() argument
6067 if (getTriple().getOS() == llvm::Triple::OpenBSD) in SparcV9TargetInfo()
6087 if (getTriple().getOS() != llvm::Triple::Solaris) { in getTargetDefines()
6109 SystemZTargetInfo(const llvm::Triple &Triple) in SystemZTargetInfo() argument
6110 : TargetInfo(Triple), CPU("z10"), HasTransactionalExecution(false), in SystemZTargetInfo()
6267 MSP430TargetInfo(const llvm::Triple &Triple) : TargetInfo(Triple) { in MSP430TargetInfo() argument
6354 TCETargetInfo(const llvm::Triple &Triple) : TargetInfo(Triple) { in TCETargetInfo() argument
6407 BPFTargetInfo(const llvm::Triple &Triple) : TargetInfo(Triple) { in BPFTargetInfo() argument
6415 if (Triple.getArch() == llvm::Triple::bpfeb) { in BPFTargetInfo()
6476 MipsTargetInfoBase(const llvm::Triple &Triple, const std::string &ABIStr, in MipsTargetInfoBase() argument
6478 : TargetInfo(Triple), CPU(CPUStr), IsMips16(false), IsMicromips(false), in MipsTargetInfoBase()
6498 bool IsMips32 = getTriple().getArch() == llvm::Triple::mips || in setCPU()
6499 getTriple().getArch() == llvm::Triple::mipsel; in setCPU()
6767 Mips32TargetInfoBase(const llvm::Triple &Triple) in Mips32TargetInfoBase() argument
6768 : MipsTargetInfoBase(Triple, "o32", "mips32r2") { in Mips32TargetInfoBase()
6855 Mips32EBTargetInfo(const llvm::Triple &Triple) in Mips32EBTargetInfo() argument
6856 : Mips32TargetInfoBase(Triple) { in Mips32EBTargetInfo()
6872 Mips32ELTargetInfo(const llvm::Triple &Triple) in Mips32ELTargetInfo() argument
6873 : Mips32TargetInfoBase(Triple) { in Mips32ELTargetInfo()
6886 Mips64TargetInfoBase(const llvm::Triple &Triple) in Mips64TargetInfoBase() argument
6887 : MipsTargetInfoBase(Triple, "n64", "mips64r2") { in Mips64TargetInfoBase()
6890 if (getTriple().getOS() == llvm::Triple::FreeBSD) { in Mips64TargetInfoBase()
7015 Mips64EBTargetInfo(const llvm::Triple &Triple) in Mips64EBTargetInfo() argument
7016 : Mips64TargetInfoBase(Triple) {} in Mips64EBTargetInfo()
7033 Mips64ELTargetInfo(const llvm::Triple &Triple) in Mips64ELTargetInfo() argument
7034 : Mips64TargetInfoBase(Triple) { in Mips64ELTargetInfo()
7048 PNaClTargetInfo(const llvm::Triple &Triple) : TargetInfo(Triple) { in PNaClTargetInfo() argument
7104 NaClMips32ELTargetInfo(const llvm::Triple &Triple) : in NaClMips32ELTargetInfo() argument
7105 Mips32ELTargetInfo(Triple) { in NaClMips32ELTargetInfo()
7117 Le64TargetInfo(const llvm::Triple &Triple) : TargetInfo(Triple) { in Le64TargetInfo() argument
7162 explicit WebAssemblyTargetInfo(const llvm::Triple &T) in WebAssemblyTargetInfo()
7268 explicit WebAssembly32TargetInfo(const llvm::Triple &T) in WebAssembly32TargetInfo()
7284 explicit WebAssembly64TargetInfo(const llvm::Triple &T) in WebAssembly64TargetInfo()
7317 SPIRTargetInfo(const llvm::Triple &Triple) : TargetInfo(Triple) { in SPIRTargetInfo() argument
7318 assert(getTriple().getOS() == llvm::Triple::UnknownOS && in SPIRTargetInfo()
7320 assert(getTriple().getEnvironment() == llvm::Triple::UnknownEnvironment && in SPIRTargetInfo()
7365 SPIR32TargetInfo(const llvm::Triple &Triple) : SPIRTargetInfo(Triple) { in SPIR32TargetInfo() argument
7380 SPIR64TargetInfo(const llvm::Triple &Triple) : SPIRTargetInfo(Triple) { in SPIR64TargetInfo() argument
7396 XCoreTargetInfo(const llvm::Triple &Triple) : TargetInfo(Triple) { in XCoreTargetInfo() argument
7456 AndroidX86_32TargetInfo(const llvm::Triple &Triple) in AndroidX86_32TargetInfo() argument
7457 : LinuxTargetInfo<X86_32TargetInfo>(Triple) { in AndroidX86_32TargetInfo()
7467 AndroidX86_64TargetInfo(const llvm::Triple &Triple) in AndroidX86_64TargetInfo() argument
7468 : LinuxTargetInfo<X86_64TargetInfo>(Triple) { in AndroidX86_64TargetInfo()
7482 static TargetInfo *AllocateTarget(const llvm::Triple &Triple) { in AllocateTarget() argument
7483 llvm::Triple::OSType os = Triple.getOS(); in AllocateTarget()
7485 switch (Triple.getArch()) { in AllocateTarget()
7489 case llvm::Triple::xcore: in AllocateTarget()
7490 return new XCoreTargetInfo(Triple); in AllocateTarget()
7492 case llvm::Triple::hexagon: in AllocateTarget()
7493 return new HexagonTargetInfo(Triple); in AllocateTarget()
7495 case llvm::Triple::aarch64: in AllocateTarget()
7496 if (Triple.isOSDarwin()) in AllocateTarget()
7497 return new DarwinAArch64TargetInfo(Triple); in AllocateTarget()
7500 case llvm::Triple::CloudABI: in AllocateTarget()
7501 return new CloudABITargetInfo<AArch64leTargetInfo>(Triple); in AllocateTarget()
7502 case llvm::Triple::FreeBSD: in AllocateTarget()
7503 return new FreeBSDTargetInfo<AArch64leTargetInfo>(Triple); in AllocateTarget()
7504 case llvm::Triple::Linux: in AllocateTarget()
7505 return new LinuxTargetInfo<AArch64leTargetInfo>(Triple); in AllocateTarget()
7506 case llvm::Triple::NetBSD: in AllocateTarget()
7507 return new NetBSDTargetInfo<AArch64leTargetInfo>(Triple); in AllocateTarget()
7509 return new AArch64leTargetInfo(Triple); in AllocateTarget()
7512 case llvm::Triple::aarch64_be: in AllocateTarget()
7514 case llvm::Triple::FreeBSD: in AllocateTarget()
7515 return new FreeBSDTargetInfo<AArch64beTargetInfo>(Triple); in AllocateTarget()
7516 case llvm::Triple::Linux: in AllocateTarget()
7517 return new LinuxTargetInfo<AArch64beTargetInfo>(Triple); in AllocateTarget()
7518 case llvm::Triple::NetBSD: in AllocateTarget()
7519 return new NetBSDTargetInfo<AArch64beTargetInfo>(Triple); in AllocateTarget()
7521 return new AArch64beTargetInfo(Triple); in AllocateTarget()
7524 case llvm::Triple::arm: in AllocateTarget()
7525 case llvm::Triple::thumb: in AllocateTarget()
7526 if (Triple.isOSBinFormatMachO()) in AllocateTarget()
7527 return new DarwinARMTargetInfo(Triple); in AllocateTarget()
7530 case llvm::Triple::Linux: in AllocateTarget()
7531 return new LinuxTargetInfo<ARMleTargetInfo>(Triple); in AllocateTarget()
7532 case llvm::Triple::FreeBSD: in AllocateTarget()
7533 return new FreeBSDTargetInfo<ARMleTargetInfo>(Triple); in AllocateTarget()
7534 case llvm::Triple::NetBSD: in AllocateTarget()
7535 return new NetBSDTargetInfo<ARMleTargetInfo>(Triple); in AllocateTarget()
7536 case llvm::Triple::OpenBSD: in AllocateTarget()
7537 return new OpenBSDTargetInfo<ARMleTargetInfo>(Triple); in AllocateTarget()
7538 case llvm::Triple::Bitrig: in AllocateTarget()
7539 return new BitrigTargetInfo<ARMleTargetInfo>(Triple); in AllocateTarget()
7540 case llvm::Triple::RTEMS: in AllocateTarget()
7541 return new RTEMSTargetInfo<ARMleTargetInfo>(Triple); in AllocateTarget()
7542 case llvm::Triple::NaCl: in AllocateTarget()
7543 return new NaClTargetInfo<ARMleTargetInfo>(Triple); in AllocateTarget()
7544 case llvm::Triple::Win32: in AllocateTarget()
7545 switch (Triple.getEnvironment()) { in AllocateTarget()
7546 case llvm::Triple::Cygnus: in AllocateTarget()
7547 return new CygwinARMTargetInfo(Triple); in AllocateTarget()
7548 case llvm::Triple::GNU: in AllocateTarget()
7549 return new MinGWARMTargetInfo(Triple); in AllocateTarget()
7550 case llvm::Triple::Itanium: in AllocateTarget()
7551 return new ItaniumWindowsARMleTargetInfo(Triple); in AllocateTarget()
7552 case llvm::Triple::MSVC: in AllocateTarget()
7554 return new MicrosoftARMleTargetInfo(Triple); in AllocateTarget()
7557 return new ARMleTargetInfo(Triple); in AllocateTarget()
7560 case llvm::Triple::armeb: in AllocateTarget()
7561 case llvm::Triple::thumbeb: in AllocateTarget()
7562 if (Triple.isOSDarwin()) in AllocateTarget()
7563 return new DarwinARMTargetInfo(Triple); in AllocateTarget()
7566 case llvm::Triple::Linux: in AllocateTarget()
7567 return new LinuxTargetInfo<ARMbeTargetInfo>(Triple); in AllocateTarget()
7568 case llvm::Triple::FreeBSD: in AllocateTarget()
7569 return new FreeBSDTargetInfo<ARMbeTargetInfo>(Triple); in AllocateTarget()
7570 case llvm::Triple::NetBSD: in AllocateTarget()
7571 return new NetBSDTargetInfo<ARMbeTargetInfo>(Triple); in AllocateTarget()
7572 case llvm::Triple::OpenBSD: in AllocateTarget()
7573 return new OpenBSDTargetInfo<ARMbeTargetInfo>(Triple); in AllocateTarget()
7574 case llvm::Triple::Bitrig: in AllocateTarget()
7575 return new BitrigTargetInfo<ARMbeTargetInfo>(Triple); in AllocateTarget()
7576 case llvm::Triple::RTEMS: in AllocateTarget()
7577 return new RTEMSTargetInfo<ARMbeTargetInfo>(Triple); in AllocateTarget()
7578 case llvm::Triple::NaCl: in AllocateTarget()
7579 return new NaClTargetInfo<ARMbeTargetInfo>(Triple); in AllocateTarget()
7581 return new ARMbeTargetInfo(Triple); in AllocateTarget()
7584 case llvm::Triple::bpfeb: in AllocateTarget()
7585 case llvm::Triple::bpfel: in AllocateTarget()
7586 return new BPFTargetInfo(Triple); in AllocateTarget()
7588 case llvm::Triple::msp430: in AllocateTarget()
7589 return new MSP430TargetInfo(Triple); in AllocateTarget()
7591 case llvm::Triple::mips: in AllocateTarget()
7593 case llvm::Triple::Linux: in AllocateTarget()
7594 return new LinuxTargetInfo<Mips32EBTargetInfo>(Triple); in AllocateTarget()
7595 case llvm::Triple::RTEMS: in AllocateTarget()
7596 return new RTEMSTargetInfo<Mips32EBTargetInfo>(Triple); in AllocateTarget()
7597 case llvm::Triple::FreeBSD: in AllocateTarget()
7598 return new FreeBSDTargetInfo<Mips32EBTargetInfo>(Triple); in AllocateTarget()
7599 case llvm::Triple::NetBSD: in AllocateTarget()
7600 return new NetBSDTargetInfo<Mips32EBTargetInfo>(Triple); in AllocateTarget()
7602 return new Mips32EBTargetInfo(Triple); in AllocateTarget()
7605 case llvm::Triple::mipsel: in AllocateTarget()
7607 case llvm::Triple::Linux: in AllocateTarget()
7608 return new LinuxTargetInfo<Mips32ELTargetInfo>(Triple); in AllocateTarget()
7609 case llvm::Triple::RTEMS: in AllocateTarget()
7610 return new RTEMSTargetInfo<Mips32ELTargetInfo>(Triple); in AllocateTarget()
7611 case llvm::Triple::FreeBSD: in AllocateTarget()
7612 return new FreeBSDTargetInfo<Mips32ELTargetInfo>(Triple); in AllocateTarget()
7613 case llvm::Triple::NetBSD: in AllocateTarget()
7614 return new NetBSDTargetInfo<Mips32ELTargetInfo>(Triple); in AllocateTarget()
7615 case llvm::Triple::NaCl: in AllocateTarget()
7616 return new NaClTargetInfo<NaClMips32ELTargetInfo>(Triple); in AllocateTarget()
7618 return new Mips32ELTargetInfo(Triple); in AllocateTarget()
7621 case llvm::Triple::mips64: in AllocateTarget()
7623 case llvm::Triple::Linux: in AllocateTarget()
7624 return new LinuxTargetInfo<Mips64EBTargetInfo>(Triple); in AllocateTarget()
7625 case llvm::Triple::RTEMS: in AllocateTarget()
7626 return new RTEMSTargetInfo<Mips64EBTargetInfo>(Triple); in AllocateTarget()
7627 case llvm::Triple::FreeBSD: in AllocateTarget()
7628 return new FreeBSDTargetInfo<Mips64EBTargetInfo>(Triple); in AllocateTarget()
7629 case llvm::Triple::NetBSD: in AllocateTarget()
7630 return new NetBSDTargetInfo<Mips64EBTargetInfo>(Triple); in AllocateTarget()
7631 case llvm::Triple::OpenBSD: in AllocateTarget()
7632 return new OpenBSDTargetInfo<Mips64EBTargetInfo>(Triple); in AllocateTarget()
7634 return new Mips64EBTargetInfo(Triple); in AllocateTarget()
7637 case llvm::Triple::mips64el: in AllocateTarget()
7639 case llvm::Triple::Linux: in AllocateTarget()
7640 return new LinuxTargetInfo<Mips64ELTargetInfo>(Triple); in AllocateTarget()
7641 case llvm::Triple::RTEMS: in AllocateTarget()
7642 return new RTEMSTargetInfo<Mips64ELTargetInfo>(Triple); in AllocateTarget()
7643 case llvm::Triple::FreeBSD: in AllocateTarget()
7644 return new FreeBSDTargetInfo<Mips64ELTargetInfo>(Triple); in AllocateTarget()
7645 case llvm::Triple::NetBSD: in AllocateTarget()
7646 return new NetBSDTargetInfo<Mips64ELTargetInfo>(Triple); in AllocateTarget()
7647 case llvm::Triple::OpenBSD: in AllocateTarget()
7648 return new OpenBSDTargetInfo<Mips64ELTargetInfo>(Triple); in AllocateTarget()
7650 return new Mips64ELTargetInfo(Triple); in AllocateTarget()
7653 case llvm::Triple::le32: in AllocateTarget()
7655 case llvm::Triple::NaCl: in AllocateTarget()
7656 return new NaClTargetInfo<PNaClTargetInfo>(Triple); in AllocateTarget()
7661 case llvm::Triple::le64: in AllocateTarget()
7662 return new Le64TargetInfo(Triple); in AllocateTarget()
7664 case llvm::Triple::ppc: in AllocateTarget()
7665 if (Triple.isOSDarwin()) in AllocateTarget()
7666 return new DarwinPPC32TargetInfo(Triple); in AllocateTarget()
7668 case llvm::Triple::Linux: in AllocateTarget()
7669 return new LinuxTargetInfo<PPC32TargetInfo>(Triple); in AllocateTarget()
7670 case llvm::Triple::FreeBSD: in AllocateTarget()
7671 return new FreeBSDTargetInfo<PPC32TargetInfo>(Triple); in AllocateTarget()
7672 case llvm::Triple::NetBSD: in AllocateTarget()
7673 return new NetBSDTargetInfo<PPC32TargetInfo>(Triple); in AllocateTarget()
7674 case llvm::Triple::OpenBSD: in AllocateTarget()
7675 return new OpenBSDTargetInfo<PPC32TargetInfo>(Triple); in AllocateTarget()
7676 case llvm::Triple::RTEMS: in AllocateTarget()
7677 return new RTEMSTargetInfo<PPC32TargetInfo>(Triple); in AllocateTarget()
7679 return new PPC32TargetInfo(Triple); in AllocateTarget()
7682 case llvm::Triple::ppc64: in AllocateTarget()
7683 if (Triple.isOSDarwin()) in AllocateTarget()
7684 return new DarwinPPC64TargetInfo(Triple); in AllocateTarget()
7686 case llvm::Triple::Linux: in AllocateTarget()
7687 return new LinuxTargetInfo<PPC64TargetInfo>(Triple); in AllocateTarget()
7688 case llvm::Triple::Lv2: in AllocateTarget()
7689 return new PS3PPUTargetInfo<PPC64TargetInfo>(Triple); in AllocateTarget()
7690 case llvm::Triple::FreeBSD: in AllocateTarget()
7691 return new FreeBSDTargetInfo<PPC64TargetInfo>(Triple); in AllocateTarget()
7692 case llvm::Triple::NetBSD: in AllocateTarget()
7693 return new NetBSDTargetInfo<PPC64TargetInfo>(Triple); in AllocateTarget()
7695 return new PPC64TargetInfo(Triple); in AllocateTarget()
7698 case llvm::Triple::ppc64le: in AllocateTarget()
7700 case llvm::Triple::Linux: in AllocateTarget()
7701 return new LinuxTargetInfo<PPC64TargetInfo>(Triple); in AllocateTarget()
7702 case llvm::Triple::NetBSD: in AllocateTarget()
7703 return new NetBSDTargetInfo<PPC64TargetInfo>(Triple); in AllocateTarget()
7705 return new PPC64TargetInfo(Triple); in AllocateTarget()
7708 case llvm::Triple::nvptx: in AllocateTarget()
7709 return new NVPTX32TargetInfo(Triple); in AllocateTarget()
7710 case llvm::Triple::nvptx64: in AllocateTarget()
7711 return new NVPTX64TargetInfo(Triple); in AllocateTarget()
7713 case llvm::Triple::amdgcn: in AllocateTarget()
7714 case llvm::Triple::r600: in AllocateTarget()
7715 return new AMDGPUTargetInfo(Triple); in AllocateTarget()
7717 case llvm::Triple::sparc: in AllocateTarget()
7719 case llvm::Triple::Linux: in AllocateTarget()
7720 return new LinuxTargetInfo<SparcV8TargetInfo>(Triple); in AllocateTarget()
7721 case llvm::Triple::Solaris: in AllocateTarget()
7722 return new SolarisTargetInfo<SparcV8TargetInfo>(Triple); in AllocateTarget()
7723 case llvm::Triple::NetBSD: in AllocateTarget()
7724 return new NetBSDTargetInfo<SparcV8TargetInfo>(Triple); in AllocateTarget()
7725 case llvm::Triple::OpenBSD: in AllocateTarget()
7726 return new OpenBSDTargetInfo<SparcV8TargetInfo>(Triple); in AllocateTarget()
7727 case llvm::Triple::RTEMS: in AllocateTarget()
7728 return new RTEMSTargetInfo<SparcV8TargetInfo>(Triple); in AllocateTarget()
7730 return new SparcV8TargetInfo(Triple); in AllocateTarget()
7734 case llvm::Triple::sparcel: in AllocateTarget()
7736 case llvm::Triple::Linux: in AllocateTarget()
7737 return new LinuxTargetInfo<SparcV8elTargetInfo>(Triple); in AllocateTarget()
7738 case llvm::Triple::NetBSD: in AllocateTarget()
7739 return new NetBSDTargetInfo<SparcV8elTargetInfo>(Triple); in AllocateTarget()
7740 case llvm::Triple::OpenBSD: in AllocateTarget()
7741 return new OpenBSDTargetInfo<SparcV8elTargetInfo>(Triple); in AllocateTarget()
7742 case llvm::Triple::RTEMS: in AllocateTarget()
7743 return new RTEMSTargetInfo<SparcV8elTargetInfo>(Triple); in AllocateTarget()
7745 return new SparcV8elTargetInfo(Triple); in AllocateTarget()
7748 case llvm::Triple::sparcv9: in AllocateTarget()
7750 case llvm::Triple::Linux: in AllocateTarget()
7751 return new LinuxTargetInfo<SparcV9TargetInfo>(Triple); in AllocateTarget()
7752 case llvm::Triple::Solaris: in AllocateTarget()
7753 return new SolarisTargetInfo<SparcV9TargetInfo>(Triple); in AllocateTarget()
7754 case llvm::Triple::NetBSD: in AllocateTarget()
7755 return new NetBSDTargetInfo<SparcV9TargetInfo>(Triple); in AllocateTarget()
7756 case llvm::Triple::OpenBSD: in AllocateTarget()
7757 return new OpenBSDTargetInfo<SparcV9TargetInfo>(Triple); in AllocateTarget()
7758 case llvm::Triple::FreeBSD: in AllocateTarget()
7759 return new FreeBSDTargetInfo<SparcV9TargetInfo>(Triple); in AllocateTarget()
7761 return new SparcV9TargetInfo(Triple); in AllocateTarget()
7764 case llvm::Triple::systemz: in AllocateTarget()
7766 case llvm::Triple::Linux: in AllocateTarget()
7767 return new LinuxTargetInfo<SystemZTargetInfo>(Triple); in AllocateTarget()
7769 return new SystemZTargetInfo(Triple); in AllocateTarget()
7772 case llvm::Triple::tce: in AllocateTarget()
7773 return new TCETargetInfo(Triple); in AllocateTarget()
7775 case llvm::Triple::x86: in AllocateTarget()
7776 if (Triple.isOSDarwin()) in AllocateTarget()
7777 return new DarwinI386TargetInfo(Triple); in AllocateTarget()
7780 case llvm::Triple::CloudABI: in AllocateTarget()
7781 return new CloudABITargetInfo<X86_32TargetInfo>(Triple); in AllocateTarget()
7782 case llvm::Triple::Linux: { in AllocateTarget()
7783 switch (Triple.getEnvironment()) { in AllocateTarget()
7785 return new LinuxTargetInfo<X86_32TargetInfo>(Triple); in AllocateTarget()
7786 case llvm::Triple::Android: in AllocateTarget()
7787 return new AndroidX86_32TargetInfo(Triple); in AllocateTarget()
7790 case llvm::Triple::DragonFly: in AllocateTarget()
7791 return new DragonFlyBSDTargetInfo<X86_32TargetInfo>(Triple); in AllocateTarget()
7792 case llvm::Triple::NetBSD: in AllocateTarget()
7793 return new NetBSDI386TargetInfo(Triple); in AllocateTarget()
7794 case llvm::Triple::OpenBSD: in AllocateTarget()
7795 return new OpenBSDI386TargetInfo(Triple); in AllocateTarget()
7796 case llvm::Triple::Bitrig: in AllocateTarget()
7797 return new BitrigI386TargetInfo(Triple); in AllocateTarget()
7798 case llvm::Triple::FreeBSD: in AllocateTarget()
7799 return new FreeBSDTargetInfo<X86_32TargetInfo>(Triple); in AllocateTarget()
7800 case llvm::Triple::KFreeBSD: in AllocateTarget()
7801 return new KFreeBSDTargetInfo<X86_32TargetInfo>(Triple); in AllocateTarget()
7802 case llvm::Triple::Minix: in AllocateTarget()
7803 return new MinixTargetInfo<X86_32TargetInfo>(Triple); in AllocateTarget()
7804 case llvm::Triple::Solaris: in AllocateTarget()
7805 return new SolarisTargetInfo<X86_32TargetInfo>(Triple); in AllocateTarget()
7806 case llvm::Triple::Win32: { in AllocateTarget()
7807 switch (Triple.getEnvironment()) { in AllocateTarget()
7808 case llvm::Triple::Cygnus: in AllocateTarget()
7809 return new CygwinX86_32TargetInfo(Triple); in AllocateTarget()
7810 case llvm::Triple::GNU: in AllocateTarget()
7811 return new MinGWX86_32TargetInfo(Triple); in AllocateTarget()
7812 case llvm::Triple::Itanium: in AllocateTarget()
7813 case llvm::Triple::MSVC: in AllocateTarget()
7815 return new MicrosoftX86_32TargetInfo(Triple); in AllocateTarget()
7818 case llvm::Triple::Haiku: in AllocateTarget()
7819 return new HaikuX86_32TargetInfo(Triple); in AllocateTarget()
7820 case llvm::Triple::RTEMS: in AllocateTarget()
7821 return new RTEMSX86_32TargetInfo(Triple); in AllocateTarget()
7822 case llvm::Triple::NaCl: in AllocateTarget()
7823 return new NaClTargetInfo<X86_32TargetInfo>(Triple); in AllocateTarget()
7824 case llvm::Triple::ELFIAMCU: in AllocateTarget()
7825 return new MCUX86_32TargetInfo(Triple); in AllocateTarget()
7827 return new X86_32TargetInfo(Triple); in AllocateTarget()
7830 case llvm::Triple::x86_64: in AllocateTarget()
7831 if (Triple.isOSDarwin() || Triple.isOSBinFormatMachO()) in AllocateTarget()
7832 return new DarwinX86_64TargetInfo(Triple); in AllocateTarget()
7835 case llvm::Triple::CloudABI: in AllocateTarget()
7836 return new CloudABITargetInfo<X86_64TargetInfo>(Triple); in AllocateTarget()
7837 case llvm::Triple::Linux: { in AllocateTarget()
7838 switch (Triple.getEnvironment()) { in AllocateTarget()
7840 return new LinuxTargetInfo<X86_64TargetInfo>(Triple); in AllocateTarget()
7841 case llvm::Triple::Android: in AllocateTarget()
7842 return new AndroidX86_64TargetInfo(Triple); in AllocateTarget()
7845 case llvm::Triple::DragonFly: in AllocateTarget()
7846 return new DragonFlyBSDTargetInfo<X86_64TargetInfo>(Triple); in AllocateTarget()
7847 case llvm::Triple::NetBSD: in AllocateTarget()
7848 return new NetBSDTargetInfo<X86_64TargetInfo>(Triple); in AllocateTarget()
7849 case llvm::Triple::OpenBSD: in AllocateTarget()
7850 return new OpenBSDX86_64TargetInfo(Triple); in AllocateTarget()
7851 case llvm::Triple::Bitrig: in AllocateTarget()
7852 return new BitrigX86_64TargetInfo(Triple); in AllocateTarget()
7853 case llvm::Triple::FreeBSD: in AllocateTarget()
7854 return new FreeBSDTargetInfo<X86_64TargetInfo>(Triple); in AllocateTarget()
7855 case llvm::Triple::KFreeBSD: in AllocateTarget()
7856 return new KFreeBSDTargetInfo<X86_64TargetInfo>(Triple); in AllocateTarget()
7857 case llvm::Triple::Solaris: in AllocateTarget()
7858 return new SolarisTargetInfo<X86_64TargetInfo>(Triple); in AllocateTarget()
7859 case llvm::Triple::Win32: { in AllocateTarget()
7860 switch (Triple.getEnvironment()) { in AllocateTarget()
7861 case llvm::Triple::Cygnus: in AllocateTarget()
7862 return new CygwinX86_64TargetInfo(Triple); in AllocateTarget()
7863 case llvm::Triple::GNU: in AllocateTarget()
7864 return new MinGWX86_64TargetInfo(Triple); in AllocateTarget()
7865 case llvm::Triple::MSVC: in AllocateTarget()
7867 return new MicrosoftX86_64TargetInfo(Triple); in AllocateTarget()
7870 case llvm::Triple::NaCl: in AllocateTarget()
7871 return new NaClTargetInfo<X86_64TargetInfo>(Triple); in AllocateTarget()
7872 case llvm::Triple::PS4: in AllocateTarget()
7873 return new PS4OSTargetInfo<X86_64TargetInfo>(Triple); in AllocateTarget()
7875 return new X86_64TargetInfo(Triple); in AllocateTarget()
7878 case llvm::Triple::spir: { in AllocateTarget()
7879 if (Triple.getOS() != llvm::Triple::UnknownOS || in AllocateTarget()
7880 Triple.getEnvironment() != llvm::Triple::UnknownEnvironment) in AllocateTarget()
7882 return new SPIR32TargetInfo(Triple); in AllocateTarget()
7884 case llvm::Triple::spir64: { in AllocateTarget()
7885 if (Triple.getOS() != llvm::Triple::UnknownOS || in AllocateTarget()
7886 Triple.getEnvironment() != llvm::Triple::UnknownEnvironment) in AllocateTarget()
7888 return new SPIR64TargetInfo(Triple); in AllocateTarget()
7890 case llvm::Triple::wasm32: in AllocateTarget()
7891 if (!(Triple == llvm::Triple("wasm32-unknown-unknown"))) in AllocateTarget()
7893 return new WebAssemblyOSTargetInfo<WebAssembly32TargetInfo>(Triple); in AllocateTarget()
7894 case llvm::Triple::wasm64: in AllocateTarget()
7895 if (!(Triple == llvm::Triple("wasm64-unknown-unknown"))) in AllocateTarget()
7897 return new WebAssemblyOSTargetInfo<WebAssembly64TargetInfo>(Triple); in AllocateTarget()
7906 llvm::Triple Triple(Opts->Triple); in CreateTargetInfo() local
7909 std::unique_ptr<TargetInfo> Target(AllocateTarget(Triple)); in CreateTargetInfo()
7911 Diags.Report(diag::err_target_unknown_triple) << Triple.str(); in CreateTargetInfo()