Lines Matching refs:Triple
41 MachO::MachO(const Driver &D, const llvm::Triple &Triple, in MachO() argument
43 : ToolChain(D, Triple, Args) { in MachO()
55 Darwin::Darwin(const Driver & D, const llvm::Triple & Triple, in Darwin() argument
57 : MachO(D, Triple, Args), TargetInitialized(false) { in Darwin()
60 if (!Triple.getMacOSXVersion(Major, Minor, Micro)) in Darwin()
62 Triple.getOSName(); in Darwin()
73 Triple.getiOSVersion(Major, Minor, Micro); in Darwin()
161 case llvm::Triple::aarch64: in getMachOArchName()
164 case llvm::Triple::thumb: in getMachOArchName()
165 case llvm::Triple::arm: { in getMachOArchName()
188 llvm::Triple Triple(ComputeLLVMTriple(Args, InputType)); in ComputeEffectiveClangTriple() local
190 return Triple.getTriple(); in ComputeEffectiveClangTriple()
195 llvm::Triple Triple(ComputeLLVMTriple(Args, InputType)); in ComputeEffectiveClangTriple() local
200 return Triple.getTriple(); in ComputeEffectiveClangTriple()
205 Triple.setOSName(Str); in ComputeEffectiveClangTriple()
207 return Triple.getTriple(); in ComputeEffectiveClangTriple()
239 DarwinClang::DarwinClang(const Driver &D, const llvm::Triple& Triple, in DarwinClang() argument
241 : Darwin(D, Triple, Args) { in DarwinClang()
267 if (isTargetMacOS() && getArch() == llvm::Triple::x86) in AddLinkARCArgs()
423 getTriple().getArch() != llvm::Triple::aarch64) in AddLinkRuntimeLibArgs()
448 if (getTriple().getArch() == llvm::Triple::x86) in AddLinkRuntimeLibArgs()
519 if (getTriple().getArch() == llvm::Triple::arm || in AddDeploymentTarget()
520 getTriple().getArch() == llvm::Triple::aarch64 || in AddDeploymentTarget()
521 getTriple().getArch() == llvm::Triple::thumb) in AddDeploymentTarget()
573 if (iOSVersion && (getTriple().getArch() == llvm::Triple::x86 || in AddDeploymentTarget()
574 getTriple().getArch() == llvm::Triple::x86_64)) in AddDeploymentTarget()
638 getTriple().getArch() == llvm::Triple::aarch64 || in AddCCKextLibArgs()
667 llvm::Triple::ArchType XarchArch = in TranslateArgs()
780 if (getTriple().getArch() == llvm::Triple::x86 || in TranslateArgs()
781 getTriple().getArch() == llvm::Triple::x86_64) in TranslateArgs()
945 return getArch() == llvm::Triple::x86_64; in IsUnwindTablesDefault()
956 return (getTriple().getArch() == llvm::Triple::arm || in UseSjLjExceptions()
957 getTriple().getArch() == llvm::Triple::thumb); in UseSjLjExceptions()
969 return (getArch() == llvm::Triple::x86_64 || in isPICDefaultForced()
970 getArch() == llvm::Triple::aarch64); in isPICDefaultForced()
975 return getArch() == llvm::Triple::x86 || getArch() == llvm::Triple::x86_64; in SupportsProfiling()
1052 if (getArch() == llvm::Triple::aarch64) in addStartObjectFileArgs()
1188 const Driver &D, const llvm::Triple &TargetTriple, const ArgList &Args) { in init()
1189 llvm::Triple BiarchVariantTriple = in init()
1276 const llvm::Triple &TargetTriple, const llvm::Triple &BiarchTriple, in CollectLibDirsAndTriples()
1374 case llvm::Triple::aarch64: in CollectLibDirsAndTriples()
1380 case llvm::Triple::aarch64_be: in CollectLibDirsAndTriples()
1386 case llvm::Triple::arm: in CollectLibDirsAndTriples()
1387 case llvm::Triple::thumb: in CollectLibDirsAndTriples()
1389 if (TargetTriple.getEnvironment() == llvm::Triple::GNUEABIHF) { in CollectLibDirsAndTriples()
1395 case llvm::Triple::armeb: in CollectLibDirsAndTriples()
1396 case llvm::Triple::thumbeb: in CollectLibDirsAndTriples()
1398 if (TargetTriple.getEnvironment() == llvm::Triple::GNUEABIHF) { in CollectLibDirsAndTriples()
1404 case llvm::Triple::x86_64: in CollectLibDirsAndTriples()
1409 if (TargetTriple.getEnvironment() == llvm::Triple::GNUX32) { in CollectLibDirsAndTriples()
1417 case llvm::Triple::x86: in CollectLibDirsAndTriples()
1423 case llvm::Triple::mips: in CollectLibDirsAndTriples()
1429 case llvm::Triple::mipsel: in CollectLibDirsAndTriples()
1436 case llvm::Triple::mips64: in CollectLibDirsAndTriples()
1442 case llvm::Triple::mips64el: in CollectLibDirsAndTriples()
1449 case llvm::Triple::ppc: in CollectLibDirsAndTriples()
1455 case llvm::Triple::ppc64: in CollectLibDirsAndTriples()
1461 case llvm::Triple::ppc64le: in CollectLibDirsAndTriples()
1465 case llvm::Triple::sparc: in CollectLibDirsAndTriples()
1471 case llvm::Triple::sparcv9: in CollectLibDirsAndTriples()
1477 case llvm::Triple::systemz: in CollectLibDirsAndTriples()
1518 static bool isMipsArch(llvm::Triple::ArchType Arch) { in isMipsArch()
1519 return Arch == llvm::Triple::mips || Arch == llvm::Triple::mipsel || in isMipsArch()
1520 Arch == llvm::Triple::mips64 || Arch == llvm::Triple::mips64el; in isMipsArch()
1523 static bool isMips32(llvm::Triple::ArchType Arch) { in isMips32()
1524 return Arch == llvm::Triple::mips || Arch == llvm::Triple::mipsel; in isMips32()
1527 static bool isMips64(llvm::Triple::ArchType Arch) { in isMips64()
1528 return Arch == llvm::Triple::mips64 || Arch == llvm::Triple::mips64el; in isMips64()
1531 static bool isMipsEL(llvm::Triple::ArchType Arch) { in isMipsEL()
1532 return Arch == llvm::Triple::mipsel || Arch == llvm::Triple::mips64el; in isMipsEL()
1563 static bool findMIPSMultilibs(const llvm::Triple &TargetTriple, StringRef Path, in findMIPSMultilibs()
1778 llvm::Triple::ArchType TargetArch = TargetTriple.getArch(); in findMIPSMultilibs()
1804 if (TargetTriple.getEnvironment() == llvm::Triple::Android) { in findMIPSMultilibs()
1813 if (TargetTriple.getVendor() == llvm::Triple::ImaginationTechnologies && in findMIPSMultilibs()
1814 TargetTriple.getOS() == llvm::Triple::Linux && in findMIPSMultilibs()
1815 TargetTriple.getEnvironment() == llvm::Triple::GNU) { in findMIPSMultilibs()
1855 static bool findBiarchMultilibs(const llvm::Triple &TargetTriple, in findBiarchMultilibs()
1886 const bool IsX32 = TargetTriple.getEnvironment() == llvm::Triple::GNUX32; in findBiarchMultilibs()
1935 const llvm::Triple &TargetTriple, const ArgList &Args, in ScanLibDirForGCCTriple()
1938 llvm::Triple::ArchType TargetArch = TargetTriple.getArch(); in ScanLibDirForGCCTriple()
1967 (llvm::array_lengthof(LibSuffixes) - (TargetArch != llvm::Triple::x86)); in ScanLibDirForGCCTriple()
2010 Generic_GCC::Generic_GCC(const Driver &D, const llvm::Triple& Triple, in Generic_GCC() argument
2012 : ToolChain(D, Triple, Args), GCCInstallation() { in Generic_GCC()
2050 return getArch() == llvm::Triple::x86_64; in IsUnwindTablesDefault()
2066 return getTriple().getArch() == llvm::Triple::x86 || in IsIntegratedAssemblerDefault()
2067 getTriple().getArch() == llvm::Triple::x86_64 || in IsIntegratedAssemblerDefault()
2068 getTriple().getArch() == llvm::Triple::aarch64 || in IsIntegratedAssemblerDefault()
2069 getTriple().getArch() == llvm::Triple::aarch64_be || in IsIntegratedAssemblerDefault()
2070 getTriple().getArch() == llvm::Triple::arm || in IsIntegratedAssemblerDefault()
2071 getTriple().getArch() == llvm::Triple::armeb || in IsIntegratedAssemblerDefault()
2072 getTriple().getArch() == llvm::Triple::thumb || in IsIntegratedAssemblerDefault()
2073 getTriple().getArch() == llvm::Triple::thumbeb || in IsIntegratedAssemblerDefault()
2074 getTriple().getArch() == llvm::Triple::ppc || in IsIntegratedAssemblerDefault()
2075 getTriple().getArch() == llvm::Triple::ppc64 || in IsIntegratedAssemblerDefault()
2076 getTriple().getArch() == llvm::Triple::ppc64le || in IsIntegratedAssemblerDefault()
2077 getTriple().getArch() == llvm::Triple::sparc || in IsIntegratedAssemblerDefault()
2078 getTriple().getArch() == llvm::Triple::sparcv9 || in IsIntegratedAssemblerDefault()
2079 getTriple().getArch() == llvm::Triple::systemz; in IsIntegratedAssemblerDefault()
2086 getTriple().getArch() == llvm::Triple::aarch64 || in addClangTargetOptions()
2087 getTriple().getArch() == llvm::Triple::aarch64_be || in addClangTargetOptions()
2088 (getTriple().getOS() == llvm::Triple::Linux && in addClangTargetOptions()
2090 getTriple().getEnvironment() == llvm::Triple::Android)) || in addClangTargetOptions()
2091 getTriple().getOS() == llvm::Triple::NaCl; in addClangTargetOptions()
2172 Hexagon_TC::Hexagon_TC(const Driver &D, const llvm::Triple &Triple, in Hexagon_TC() argument
2174 : Linux(D, Triple, Args) { in Hexagon_TC()
2315 NaCl_TC::NaCl_TC(const Driver &D, const llvm::Triple &Triple, in NaCl_TC() argument
2317 : Generic_ELF(D, Triple, Args) { in NaCl_TC()
2337 switch(Triple.getArch()) { in NaCl_TC()
2338 case llvm::Triple::x86: { in NaCl_TC()
2345 case llvm::Triple::x86_64: { in NaCl_TC()
2352 case llvm::Triple::arm: { in NaCl_TC()
2384 if (getTriple().getArch() == llvm::Triple::arm) { in AddClangSystemIncludeArgs()
2386 } else if (getTriple().getArch() == llvm::Triple::x86) { in AddClangSystemIncludeArgs()
2388 } else if (getTriple().getArch() == llvm::Triple::x86_64) { in AddClangSystemIncludeArgs()
2420 if (getTriple().getArch() == llvm::Triple::arm) { in AddClangCXXStdlibIncludeArgs()
2424 } else if (getTriple().getArch() == llvm::Triple::x86) { in AddClangCXXStdlibIncludeArgs()
2428 } else if (getTriple().getArch() == llvm::Triple::x86_64) { in AddClangCXXStdlibIncludeArgs()
2449 llvm::Triple TheTriple(ComputeLLVMTriple(Args, InputType)); in ComputeEffectiveClangTriple()
2450 if (TheTriple.getArch() == llvm::Triple::arm && in ComputeEffectiveClangTriple()
2451 TheTriple.getEnvironment() == llvm::Triple::UnknownEnvironment) in ComputeEffectiveClangTriple()
2452 TheTriple.setEnvironment(llvm::Triple::GNUEABIHF); in ComputeEffectiveClangTriple()
2461 if (getTriple().getArch() == llvm::Triple::arm) in buildAssembler()
2471 TCEToolChain::TCEToolChain(const Driver &D, const llvm::Triple& Triple, in TCEToolChain() argument
2473 : ToolChain(D, Triple, Args) { in TCEToolChain()
2502 CloudABI::CloudABI(const Driver &D, const llvm::Triple &Triple, in CloudABI() argument
2504 : Generic_ELF(D, Triple, Args) { in CloudABI()
2532 OpenBSD::OpenBSD(const Driver &D, const llvm::Triple& Triple, const ArgList &Args) in OpenBSD() argument
2533 : Generic_ELF(D, Triple, Args) { in OpenBSD()
2548 Bitrig::Bitrig(const Driver &D, const llvm::Triple& Triple, const ArgList &Args) in Bitrig() argument
2549 : Generic_ELF(D, Triple, Args) { in Bitrig()
2594 StringRef Triple = getTriple().str(); in AddClangCXXStdlibIncludeArgs() local
2595 if (Triple.startswith("amd64")) in AddClangCXXStdlibIncludeArgs()
2598 Triple.substr(5)); in AddClangCXXStdlibIncludeArgs()
2602 Triple); in AddClangCXXStdlibIncludeArgs()
2623 FreeBSD::FreeBSD(const Driver &D, const llvm::Triple& Triple, const ArgList &Args) in FreeBSD() argument
2624 : Generic_ELF(D, Triple, Args) { in FreeBSD()
2628 if ((Triple.getArch() == llvm::Triple::x86 || in FreeBSD()
2629 Triple.getArch() == llvm::Triple::ppc) && in FreeBSD()
2684 case llvm::Triple::GNUEABIHF: in UseSjLjExceptions()
2685 case llvm::Triple::GNUEABI: in UseSjLjExceptions()
2686 case llvm::Triple::EABI: in UseSjLjExceptions()
2690 return (getTriple().getArch() == llvm::Triple::arm || in UseSjLjExceptions()
2691 getTriple().getArch() == llvm::Triple::thumb); in UseSjLjExceptions()
2705 NetBSD::NetBSD(const Driver &D, const llvm::Triple& Triple, const ArgList &Args) in NetBSD() argument
2706 : Generic_ELF(D, Triple, Args) { in NetBSD()
2714 switch (Triple.getArch()) { in NetBSD()
2715 case llvm::Triple::x86: in NetBSD()
2718 case llvm::Triple::arm: in NetBSD()
2719 case llvm::Triple::armeb: in NetBSD()
2720 case llvm::Triple::thumb: in NetBSD()
2721 case llvm::Triple::thumbeb: in NetBSD()
2722 switch (Triple.getEnvironment()) { in NetBSD()
2723 case llvm::Triple::EABI: in NetBSD()
2724 case llvm::Triple::GNUEABI: in NetBSD()
2727 case llvm::Triple::EABIHF: in NetBSD()
2728 case llvm::Triple::GNUEABIHF: in NetBSD()
2736 case llvm::Triple::mips64: in NetBSD()
2737 case llvm::Triple::mips64el: in NetBSD()
2743 case llvm::Triple::ppc: in NetBSD()
2746 case llvm::Triple::sparc: in NetBSD()
2782 case llvm::Triple::aarch64: in GetCXXStdlibType()
2783 case llvm::Triple::arm: in GetCXXStdlibType()
2784 case llvm::Triple::armeb: in GetCXXStdlibType()
2785 case llvm::Triple::thumb: in GetCXXStdlibType()
2786 case llvm::Triple::thumbeb: in GetCXXStdlibType()
2787 case llvm::Triple::ppc: in GetCXXStdlibType()
2788 case llvm::Triple::ppc64: in GetCXXStdlibType()
2789 case llvm::Triple::ppc64le: in GetCXXStdlibType()
2790 case llvm::Triple::x86: in GetCXXStdlibType()
2791 case llvm::Triple::x86_64: in GetCXXStdlibType()
2822 Minix::Minix(const Driver &D, const llvm::Triple& Triple, const ArgList &Args) in Minix() argument
2823 : Generic_ELF(D, Triple, Args) { in Minix()
2838 Solaris::Solaris(const Driver &D, const llvm::Triple& Triple, in Solaris() argument
2840 : Generic_GCC(D, Triple, Args) { in Solaris()
2908 static Distro DetectDistro(llvm::Triple::ArchType Arch) { in DetectDistro()
2991 static std::string getMultiarchTriple(const llvm::Triple &TargetTriple, in getMultiarchTriple()
3003 case llvm::Triple::arm: in getMultiarchTriple()
3004 case llvm::Triple::thumb: in getMultiarchTriple()
3005 if (TargetTriple.getEnvironment() == llvm::Triple::GNUEABIHF) { in getMultiarchTriple()
3013 case llvm::Triple::armeb: in getMultiarchTriple()
3014 case llvm::Triple::thumbeb: in getMultiarchTriple()
3015 if (TargetTriple.getEnvironment() == llvm::Triple::GNUEABIHF) { in getMultiarchTriple()
3023 case llvm::Triple::x86: in getMultiarchTriple()
3027 case llvm::Triple::x86_64: in getMultiarchTriple()
3029 if (TargetTriple.getEnvironment() != llvm::Triple::GNUX32 && in getMultiarchTriple()
3033 case llvm::Triple::aarch64: in getMultiarchTriple()
3037 case llvm::Triple::aarch64_be: in getMultiarchTriple()
3041 case llvm::Triple::mips: in getMultiarchTriple()
3045 case llvm::Triple::mipsel: in getMultiarchTriple()
3049 case llvm::Triple::mips64: in getMultiarchTriple()
3055 case llvm::Triple::mips64el: in getMultiarchTriple()
3061 case llvm::Triple::ppc: in getMultiarchTriple()
3067 case llvm::Triple::ppc64: in getMultiarchTriple()
3070 case llvm::Triple::ppc64le: in getMultiarchTriple()
3081 static StringRef getOSLibDir(const llvm::Triple &Triple, const ArgList &Args) { in getOSLibDir() argument
3082 if (isMipsArch(Triple.getArch())) { in getOSLibDir()
3088 return Triple.isArch32Bit() ? "lib" : "lib64"; in getOSLibDir()
3100 if (Triple.getArch() == llvm::Triple::x86 || in getOSLibDir()
3101 Triple.getArch() == llvm::Triple::ppc) in getOSLibDir()
3104 if (Triple.getArch() == llvm::Triple::x86_64 && in getOSLibDir()
3105 Triple.getEnvironment() == llvm::Triple::GNUX32) in getOSLibDir()
3108 return Triple.isArch32Bit() ? "lib" : "lib64"; in getOSLibDir()
3111 Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args) in Linux() argument
3112 : Generic_ELF(D, Triple, Args) { in Linux()
3113 GCCInstallation.init(D, Triple, Args); in Linux()
3115 llvm::Triple::ArchType Arch = Triple.getArch(); in Linux()
3139 if (Arch == llvm::Triple::arm || Arch == llvm::Triple::thumb) in Linux()
3142 const bool IsAndroid = Triple.getEnvironment() == llvm::Triple::Android; in Linux()
3181 const std::string OSLibDir = getOSLibDir(Triple, Args); in Linux()
3182 const std::string MultiarchTriple = getMultiarchTriple(Triple, SysRoot); in Linux()
3186 const llvm::Triple &GCCTriple = GCCInstallation.getTriple(); in Linux()
3264 const llvm::Triple &GCCTriple = GCCInstallation.getTriple(); in Linux()
3427 if (getTriple().getArch() == llvm::Triple::x86_64) { in AddClangSystemIncludeArgs()
3429 } else if (getTriple().getArch() == llvm::Triple::x86) { in AddClangSystemIncludeArgs()
3431 } else if (getTriple().getArch() == llvm::Triple::aarch64 || in AddClangSystemIncludeArgs()
3432 getTriple().getArch() == llvm::Triple::aarch64_be) { in AddClangSystemIncludeArgs()
3434 } else if (getTriple().getArch() == llvm::Triple::arm) { in AddClangSystemIncludeArgs()
3435 if (getTriple().getEnvironment() == llvm::Triple::GNUEABIHF) in AddClangSystemIncludeArgs()
3439 } else if (getTriple().getArch() == llvm::Triple::mips) { in AddClangSystemIncludeArgs()
3441 } else if (getTriple().getArch() == llvm::Triple::mipsel) { in AddClangSystemIncludeArgs()
3443 } else if (getTriple().getArch() == llvm::Triple::mips64) { in AddClangSystemIncludeArgs()
3445 } else if (getTriple().getArch() == llvm::Triple::mips64el) { in AddClangSystemIncludeArgs()
3447 } else if (getTriple().getArch() == llvm::Triple::ppc) { in AddClangSystemIncludeArgs()
3449 } else if (getTriple().getArch() == llvm::Triple::ppc64) { in AddClangSystemIncludeArgs()
3451 } else if (getTriple().getArch() == llvm::Triple::ppc64le) { in AddClangSystemIncludeArgs()
3461 if (getTriple().getOS() == llvm::Triple::RTEMS) in AddClangSystemIncludeArgs()
3591 DragonFly::DragonFly(const Driver &D, const llvm::Triple& Triple, const ArgList &Args) in DragonFly() argument
3592 : Generic_ELF(D, Triple, Args) { in DragonFly()
3617 XCore::XCore(const Driver &D, const llvm::Triple &Triple, in XCore() argument
3618 const ArgList &Args) : ToolChain(D, Triple, Args) { in XCore()