Lines Matching refs:Triple
74 const llvm::Triple &Triple) { in getSparcAsmModeForCPU() argument
75 if (Triple.getArch() == llvm::Triple::sparcv9) { in getSparcAsmModeForCPU()
597 static bool isSignedCharDefault(const llvm::Triple &Triple) { in isSignedCharDefault() argument
598 switch (Triple.getArch()) { in isSignedCharDefault()
602 case llvm::Triple::aarch64: in isSignedCharDefault()
603 case llvm::Triple::aarch64_be: in isSignedCharDefault()
604 case llvm::Triple::arm: in isSignedCharDefault()
605 case llvm::Triple::armeb: in isSignedCharDefault()
606 case llvm::Triple::thumb: in isSignedCharDefault()
607 case llvm::Triple::thumbeb: in isSignedCharDefault()
608 if (Triple.isOSDarwin() || Triple.isOSWindows()) in isSignedCharDefault()
612 case llvm::Triple::ppc: in isSignedCharDefault()
613 case llvm::Triple::ppc64: in isSignedCharDefault()
614 if (Triple.isOSDarwin()) in isSignedCharDefault()
618 case llvm::Triple::hexagon: in isSignedCharDefault()
619 case llvm::Triple::ppc64le: in isSignedCharDefault()
620 case llvm::Triple::systemz: in isSignedCharDefault()
621 case llvm::Triple::xcore: in isSignedCharDefault()
626 static bool isNoCommonDefault(const llvm::Triple &Triple) { in isNoCommonDefault() argument
627 switch (Triple.getArch()) { in isNoCommonDefault()
631 case llvm::Triple::xcore: in isNoCommonDefault()
632 case llvm::Triple::wasm32: in isNoCommonDefault()
633 case llvm::Triple::wasm64: in isNoCommonDefault()
641 static int getARMSubArchVersionNumber(const llvm::Triple &Triple) { in getARMSubArchVersionNumber() argument
642 llvm::StringRef Arch = Triple.getArchName(); in getARMSubArchVersionNumber()
647 static bool isARMMProfile(const llvm::Triple &Triple) { in isARMMProfile() argument
648 llvm::StringRef Arch = Triple.getArchName(); in isARMMProfile()
714 const llvm::Triple &Triple) { in checkARMArchName() argument
717 std::string MArch = arm::getARMArch(ArchName, Triple); in checkARMArchName()
727 const llvm::Triple &Triple) { in checkARMCPUName() argument
730 std::string CPU = arm::getARMTargetCPU(CPUName, ArchName, Triple); in checkARMCPUName()
731 if (arm::getLLVMArchSuffixForARM(CPU, ArchName, Triple).empty() || in checkARMCPUName()
736 static bool useAAPCSForMachO(const llvm::Triple &T) { in useAAPCSForMachO()
739 return T.getEnvironment() == llvm::Triple::EABI || in useAAPCSForMachO()
740 T.getOS() == llvm::Triple::UnknownOS || isARMMProfile(T); in useAAPCSForMachO()
747 const llvm::Triple Triple(TC.ComputeEffectiveClangTriple(Args)); in getARMFloatABI() local
748 auto SubArch = getARMSubArchVersionNumber(Triple); in getARMFloatABI()
771 if (Triple.isOSBinFormatMachO() && !useAAPCSForMachO(Triple) && in getARMFloatABI()
774 << Triple.getArchName(); in getARMFloatABI()
780 switch (Triple.getOS()) { in getARMFloatABI()
781 case llvm::Triple::Darwin: in getARMFloatABI()
782 case llvm::Triple::MacOSX: in getARMFloatABI()
783 case llvm::Triple::IOS: in getARMFloatABI()
784 case llvm::Triple::TvOS: { in getARMFloatABI()
787 ABI = Triple.isWatchABI() ? FloatABI::Hard : ABI; in getARMFloatABI()
790 case llvm::Triple::WatchOS: in getARMFloatABI()
795 case llvm::Triple::Win32: in getARMFloatABI()
799 case llvm::Triple::FreeBSD: in getARMFloatABI()
800 switch (Triple.getEnvironment()) { in getARMFloatABI()
801 case llvm::Triple::GNUEABIHF: in getARMFloatABI()
812 switch (Triple.getEnvironment()) { in getARMFloatABI()
813 case llvm::Triple::GNUEABIHF: in getARMFloatABI()
814 case llvm::Triple::MuslEABIHF: in getARMFloatABI()
815 case llvm::Triple::EABIHF: in getARMFloatABI()
818 case llvm::Triple::GNUEABI: in getARMFloatABI()
819 case llvm::Triple::MuslEABI: in getARMFloatABI()
820 case llvm::Triple::EABI: in getARMFloatABI()
824 case llvm::Triple::Android: in getARMFloatABI()
829 if (Triple.isOSBinFormatMachO() && in getARMFloatABI()
830 Triple.getSubArch() == llvm::Triple::ARMSubArch_v7em) in getARMFloatABI()
835 if (Triple.getOS() != llvm::Triple::UnknownOS || in getARMFloatABI()
836 !Triple.isOSBinFormatMachO()) in getARMFloatABI()
848 const llvm::Triple &Triple, in getARMTargetFeatures() argument
906 checkARMArchName(D, WaArch, Args, ArchName, Features, Triple); in getARMTargetFeatures()
911 checkARMArchName(D, ArchArg, Args, ArchName, Features, Triple); in getARMTargetFeatures()
922 checkARMCPUName(D, WaCPU, Args, CPUName, ArchName, Features, Triple); in getARMTargetFeatures()
925 checkARMCPUName(D, CPUArg, Args, CPUName, ArchName, Features, Triple); in getARMTargetFeatures()
983 } else if (KernelOrKext && (!Triple.isiOS() || Triple.isOSVersionLT(6)) && in getARMTargetFeatures()
984 !Triple.isWatchOS()) { in getARMTargetFeatures()
995 if (Triple.getSubArch() == llvm::Triple::SubArchType::ARMSubArch_v6m) in getARMTargetFeatures()
999 else if (Triple.getSubArch() == llvm::Triple::SubArchType::ARMSubArch_v8m_baseline) in getARMTargetFeatures()
1017 int VersionNum = getARMSubArchVersionNumber(Triple); in getARMTargetFeatures()
1018 if (Triple.isOSDarwin() || Triple.isOSNetBSD()) { in getARMTargetFeatures()
1020 Triple.getSubArch() == llvm::Triple::SubArchType::ARMSubArch_v6m) in getARMTargetFeatures()
1022 } else if (Triple.isOSLinux() || Triple.isOSNaCl()) { in getARMTargetFeatures()
1040 void Clang::AddARMTargetArgs(const llvm::Triple &Triple, const ArgList &Args, in AddARMTargetArgs() argument
1048 } else if (Triple.isOSBinFormatMachO()) { in AddARMTargetArgs()
1049 if (useAAPCSForMachO(Triple)) { in AddARMTargetArgs()
1051 } else if (Triple.isWatchABI()) { in AddARMTargetArgs()
1056 } else if (Triple.isOSWindows()) { in AddARMTargetArgs()
1061 switch (Triple.getEnvironment()) { in AddARMTargetArgs()
1062 case llvm::Triple::Android: in AddARMTargetArgs()
1063 case llvm::Triple::GNUEABI: in AddARMTargetArgs()
1064 case llvm::Triple::GNUEABIHF: in AddARMTargetArgs()
1065 case llvm::Triple::MuslEABI: in AddARMTargetArgs()
1066 case llvm::Triple::MuslEABIHF: in AddARMTargetArgs()
1069 case llvm::Triple::EABIHF: in AddARMTargetArgs()
1070 case llvm::Triple::EABI: in AddARMTargetArgs()
1074 if (Triple.getOS() == llvm::Triple::NetBSD) in AddARMTargetArgs()
1149 llvm::Triple Triple(TripleStr); in AddAArch64TargetArgs() local
1163 else if (Triple.isOSDarwin()) in AddAArch64TargetArgs()
1178 } else if (Triple.isAndroid()) { in AddAArch64TargetArgs()
1197 void mips::getMipsCPUAndABI(const ArgList &Args, const llvm::Triple &Triple, in getMipsCPUAndABI() argument
1204 if (Triple.getVendor() == llvm::Triple::ImaginationTechnologies && in getMipsCPUAndABI()
1205 Triple.getEnvironment() == llvm::Triple::GNU) { in getMipsCPUAndABI()
1211 if (Triple.isAndroid()) { in getMipsCPUAndABI()
1217 if (Triple.getOS() == llvm::Triple::OpenBSD) in getMipsCPUAndABI()
1235 switch (Triple.getArch()) { in getMipsCPUAndABI()
1238 case llvm::Triple::mips: in getMipsCPUAndABI()
1239 case llvm::Triple::mipsel: in getMipsCPUAndABI()
1242 case llvm::Triple::mips64: in getMipsCPUAndABI()
1243 case llvm::Triple::mips64el: in getMipsCPUAndABI()
1250 (Triple.getVendor() == llvm::Triple::MipsTechnologies || in getMipsCPUAndABI()
1251 Triple.getVendor() == llvm::Triple::ImaginationTechnologies)) { in getMipsCPUAndABI()
1275 if (Triple.getArch() == llvm::Triple::mips || in getMipsCPUAndABI()
1276 Triple.getArch() == llvm::Triple::mipsel) in getMipsCPUAndABI()
1294 const llvm::Triple &Triple) { in getMipsABILibSuffix() argument
1296 tools::mips::getMipsCPUAndABI(Args, Triple, CPUName, ABIName); in getMipsABILibSuffix()
1358 static void getMIPSTargetFeatures(const Driver &D, const llvm::Triple &Triple, in getMIPSTargetFeatures() argument
1363 mips::getMipsCPUAndABI(Args, Triple, CPUName, ABIName); in getMIPSTargetFeatures()
1423 } else if (mips::shouldUseFPXX(Args, Triple, CPUName, ABIName, FloatABI)) { in getMIPSTargetFeatures()
1426 } else if (mips::isFP64ADefault(Triple, CPUName)) { in getMIPSTargetFeatures()
1440 const llvm::Triple &Triple = getToolChain().getTriple(); in AddMIPSTargetArgs() local
1441 mips::getMipsCPUAndABI(Args, Triple, CPUName, ABIName); in AddMIPSTargetArgs()
1569 static void getPPCTargetFeatures(const Driver &D, const llvm::Triple &Triple, in getPPCTargetFeatures() argument
1576 !(Triple.getArch() == llvm::Triple::ppc64 || in getPPCTargetFeatures()
1577 Triple.getArch() == llvm::Triple::ppc64le)) in getPPCTargetFeatures()
1580 (Triple.getArch() == llvm::Triple::ppc64 || in getPPCTargetFeatures()
1581 Triple.getArch() == llvm::Triple::ppc64le)) in getPPCTargetFeatures()
1625 case llvm::Triple::ppc64: { in AddPPCTargetArgs()
1641 case llvm::Triple::ppc64le: in AddPPCTargetArgs()
1796 const llvm::Triple &Triple) { in getX86TargetCPU() argument
1799 if (Triple.isOSDarwin() && Triple.getArchName() == "x86_64h") in getX86TargetCPU()
1819 if (Triple.getArch() == llvm::Triple::x86) { in getX86TargetCPU()
1839 if (Triple.getArch() != llvm::Triple::x86_64 && in getX86TargetCPU()
1840 Triple.getArch() != llvm::Triple::x86) in getX86TargetCPU()
1843 bool Is64Bit = Triple.getArch() == llvm::Triple::x86_64; in getX86TargetCPU()
1846 if (Triple.isOSDarwin()) { in getX86TargetCPU()
1847 if (Triple.getArchName() == "x86_64h") in getX86TargetCPU()
1853 if (Triple.isPS4CPU()) in getX86TargetCPU()
1857 if (Triple.isAndroid()) in getX86TargetCPU()
1864 switch (Triple.getOS()) { in getX86TargetCPU()
1865 case llvm::Triple::FreeBSD: in getX86TargetCPU()
1866 case llvm::Triple::NetBSD: in getX86TargetCPU()
1867 case llvm::Triple::OpenBSD: in getX86TargetCPU()
1869 case llvm::Triple::Haiku: in getX86TargetCPU()
1871 case llvm::Triple::Bitrig: in getX86TargetCPU()
1898 static std::string getCPUName(const ArgList &Args, const llvm::Triple &T, in getCPUName()
1904 case llvm::Triple::aarch64: in getCPUName()
1905 case llvm::Triple::aarch64_be: in getCPUName()
1908 case llvm::Triple::arm: in getCPUName()
1909 case llvm::Triple::armeb: in getCPUName()
1910 case llvm::Triple::thumb: in getCPUName()
1911 case llvm::Triple::thumbeb: { in getCPUName()
1916 case llvm::Triple::mips: in getCPUName()
1917 case llvm::Triple::mipsel: in getCPUName()
1918 case llvm::Triple::mips64: in getCPUName()
1919 case llvm::Triple::mips64el: { in getCPUName()
1926 case llvm::Triple::nvptx: in getCPUName()
1927 case llvm::Triple::nvptx64: in getCPUName()
1932 case llvm::Triple::ppc: in getCPUName()
1933 case llvm::Triple::ppc64: in getCPUName()
1934 case llvm::Triple::ppc64le: { in getCPUName()
1940 if (T.getArch() == llvm::Triple::ppc64) in getCPUName()
1942 else if (T.getArch() == llvm::Triple::ppc64le) in getCPUName()
1950 case llvm::Triple::sparc: in getCPUName()
1951 case llvm::Triple::sparcel: in getCPUName()
1952 case llvm::Triple::sparcv9: in getCPUName()
1957 case llvm::Triple::x86: in getCPUName()
1958 case llvm::Triple::x86_64: in getCPUName()
1961 case llvm::Triple::hexagon: in getCPUName()
1965 case llvm::Triple::lanai: in getCPUName()
1968 case llvm::Triple::systemz: in getCPUName()
1971 case llvm::Triple::r600: in getCPUName()
1972 case llvm::Triple::amdgcn: in getCPUName()
1975 case llvm::Triple::wasm32: in getCPUName()
1976 case llvm::Triple::wasm64: in getCPUName()
2158 static void getX86TargetFeatures(const Driver &D, const llvm::Triple &Triple, in getX86TargetFeatures() argument
2172 if (Triple.getArchName() == "x86_64h") { in getX86TargetFeatures()
2183 const llvm::Triple::ArchType ArchType = Triple.getArch(); in getX86TargetFeatures()
2185 if (Triple.isAndroid()) { in getX86TargetFeatures()
2186 if (ArchType == llvm::Triple::x86_64) { in getX86TargetFeatures()
2198 if (ArchType == llvm::Triple::x86_64 || ArchType == llvm::Triple::x86) { in getX86TargetFeatures()
2205 if (ArchType == llvm::Triple::x86) { in getX86TargetFeatures()
2538 static void getTargetFeatures(const ToolChain &TC, const llvm::Triple &Triple, in getTargetFeatures() argument
2543 switch (Triple.getArch()) { in getTargetFeatures()
2546 case llvm::Triple::mips: in getTargetFeatures()
2547 case llvm::Triple::mipsel: in getTargetFeatures()
2548 case llvm::Triple::mips64: in getTargetFeatures()
2549 case llvm::Triple::mips64el: in getTargetFeatures()
2550 getMIPSTargetFeatures(D, Triple, Args, Features); in getTargetFeatures()
2553 case llvm::Triple::arm: in getTargetFeatures()
2554 case llvm::Triple::armeb: in getTargetFeatures()
2555 case llvm::Triple::thumb: in getTargetFeatures()
2556 case llvm::Triple::thumbeb: in getTargetFeatures()
2557 getARMTargetFeatures(TC, Triple, Args, Features, ForAS); in getTargetFeatures()
2560 case llvm::Triple::ppc: in getTargetFeatures()
2561 case llvm::Triple::ppc64: in getTargetFeatures()
2562 case llvm::Triple::ppc64le: in getTargetFeatures()
2563 getPPCTargetFeatures(D, Triple, Args, Features); in getTargetFeatures()
2565 case llvm::Triple::systemz: in getTargetFeatures()
2568 case llvm::Triple::aarch64: in getTargetFeatures()
2569 case llvm::Triple::aarch64_be: in getTargetFeatures()
2572 case llvm::Triple::x86: in getTargetFeatures()
2573 case llvm::Triple::x86_64: in getTargetFeatures()
2574 getX86TargetFeatures(D, Triple, Args, Features); in getTargetFeatures()
2576 case llvm::Triple::hexagon: in getTargetFeatures()
2579 case llvm::Triple::wasm32: in getTargetFeatures()
2580 case llvm::Triple::wasm64: in getTargetFeatures()
2583 case llvm::Triple::sparc: in getTargetFeatures()
2584 case llvm::Triple::sparcel: in getTargetFeatures()
2585 case llvm::Triple::sparcv9: in getTargetFeatures()
2588 case llvm::Triple::r600: in getTargetFeatures()
2589 case llvm::Triple::amdgcn: in getTargetFeatures()
2618 const llvm::Triple &Triple) { in shouldUseExceptionTablesForObjCExceptions() argument
2625 if (!Triple.isMacOSX()) in shouldUseExceptionTablesForObjCExceptions()
2628 return (!Triple.isMacOSXVersionLT(10, 5) && in shouldUseExceptionTablesForObjCExceptions()
2629 (Triple.getArch() == llvm::Triple::x86_64 || in shouldUseExceptionTablesForObjCExceptions()
2630 Triple.getArch() == llvm::Triple::arm)); in shouldUseExceptionTablesForObjCExceptions()
2642 const llvm::Triple &Triple = TC.getTriple(); in addExceptionArgs() local
2667 EH |= shouldUseExceptionTablesForObjCExceptions(objcRuntime, Triple); in addExceptionArgs()
2673 Triple.getArch() != llvm::Triple::xcore && !Triple.isPS4CPU(); in addExceptionArgs()
2683 if (Triple.isPS4CPU()) { in addExceptionArgs()
2865 case llvm::Triple::mips: in CollectArgsForIntegratedAssembler()
2866 case llvm::Triple::mipsel: in CollectArgsForIntegratedAssembler()
2867 case llvm::Triple::mips64: in CollectArgsForIntegratedAssembler()
2868 case llvm::Triple::mips64el: in CollectArgsForIntegratedAssembler()
3081 if (TC.getTriple().getOS() != llvm::Triple::FreeBSD) in linkSanitizerRuntimeDeps()
3207 if (TC.getTriple().getOS() != llvm::Triple::FreeBSD) in linkXRayRuntimeDeps()
3220 const llvm::Triple &Triple) { in shouldUseFramePointerForTarget() argument
3221 switch (Triple.getArch()) { in shouldUseFramePointerForTarget()
3222 case llvm::Triple::xcore: in shouldUseFramePointerForTarget()
3223 case llvm::Triple::wasm32: in shouldUseFramePointerForTarget()
3224 case llvm::Triple::wasm64: in shouldUseFramePointerForTarget()
3232 if (Triple.isOSLinux()) { in shouldUseFramePointerForTarget()
3233 switch (Triple.getArch()) { in shouldUseFramePointerForTarget()
3235 case llvm::Triple::mips64: in shouldUseFramePointerForTarget()
3236 case llvm::Triple::mips64el: in shouldUseFramePointerForTarget()
3237 case llvm::Triple::mips: in shouldUseFramePointerForTarget()
3238 case llvm::Triple::mipsel: in shouldUseFramePointerForTarget()
3239 case llvm::Triple::systemz: in shouldUseFramePointerForTarget()
3240 case llvm::Triple::x86: in shouldUseFramePointerForTarget()
3241 case llvm::Triple::x86_64: in shouldUseFramePointerForTarget()
3248 if (Triple.isOSWindows()) { in shouldUseFramePointerForTarget()
3249 switch (Triple.getArch()) { in shouldUseFramePointerForTarget()
3250 case llvm::Triple::x86: in shouldUseFramePointerForTarget()
3252 case llvm::Triple::x86_64: in shouldUseFramePointerForTarget()
3253 return Triple.isOSBinFormatMachO(); in shouldUseFramePointerForTarget()
3254 case llvm::Triple::arm: in shouldUseFramePointerForTarget()
3255 case llvm::Triple::thumb: in shouldUseFramePointerForTarget()
3269 const llvm::Triple &Triple) { in shouldUseFramePointer() argument
3276 return shouldUseFramePointerForTarget(Args, Triple); in shouldUseFramePointer()
3280 const llvm::Triple &Triple) { in shouldUseLeafFramePointer() argument
3287 if (Triple.isPS4CPU()) in shouldUseLeafFramePointer()
3290 return shouldUseFramePointerForTarget(Args, Triple); in shouldUseLeafFramePointer()
3447 const llvm::Triple &Triple, in getMSVCVersion() argument
3484 Triple.getEnvironmentVersion(Major, Minor, Micro); in getMSVCVersion()
3621 ParsePICArgs(const ToolChain &ToolChain, const llvm::Triple &Triple, in ParsePICArgs() argument
3639 case llvm::Triple::arm: in ParsePICArgs()
3640 case llvm::Triple::armeb: in ParsePICArgs()
3641 case llvm::Triple::thumb: in ParsePICArgs()
3642 case llvm::Triple::thumbeb: in ParsePICArgs()
3643 case llvm::Triple::aarch64: in ParsePICArgs()
3644 case llvm::Triple::mips: in ParsePICArgs()
3645 case llvm::Triple::mipsel: in ParsePICArgs()
3646 case llvm::Triple::mips64: in ParsePICArgs()
3647 case llvm::Triple::mips64el: in ParsePICArgs()
3651 case llvm::Triple::x86: in ParsePICArgs()
3652 case llvm::Triple::x86_64: in ParsePICArgs()
3663 if (ToolChain.getTriple().getOS() == llvm::Triple::OpenBSD) { in ParsePICArgs()
3665 case llvm::Triple::mips64: in ParsePICArgs()
3666 case llvm::Triple::mips64el: in ParsePICArgs()
3667 case llvm::Triple::sparcel: in ParsePICArgs()
3668 case llvm::Triple::x86: in ParsePICArgs()
3669 case llvm::Triple::x86_64: in ParsePICArgs()
3673 case llvm::Triple::ppc: in ParsePICArgs()
3674 case llvm::Triple::sparc: in ParsePICArgs()
3675 case llvm::Triple::sparcv9: in ParsePICArgs()
3706 if (Triple.isPS4CPU()) { in ParsePICArgs()
3722 if (PIC && (ToolChain.getTriple().isOSDarwin() || Triple.isPS4CPU())) in ParsePICArgs()
3727 if (KernelOrKext && ((!Triple.isiOS() || Triple.isOSVersionLT(6)) && in ParsePICArgs()
3728 !Triple.isWatchOS())) in ParsePICArgs()
3782 const llvm::Triple Triple(TripleStr); in ConstructJob() local
3835 if (Triple.isOSWindows() && (Triple.getArch() == llvm::Triple::arm || in ConstructJob()
3836 Triple.getArch() == llvm::Triple::thumb)) { in ConstructJob()
3837 unsigned Offset = Triple.getArch() == llvm::Triple::arm ? 4 : 6; in ConstructJob()
3839 Triple.getArchName().substr(Offset).getAsInteger(10, Version); in ConstructJob()
3841 D.Diag(diag::err_target_unsupported_arch) << Triple.getArchName() in ConstructJob()
3996 if (getToolChain().getTriple().getVendor() == llvm::Triple::Apple) in ConstructJob()
4043 ParsePICArgs(getToolChain(), Triple, Args); in ConstructJob()
4104 if (getToolChain().getArch() != llvm::Triple::x86) { in ConstructJob()
4358 std::string CPU = getCPUName(Args, Triple, /*FromAs*/ false); in ConstructJob()
4370 getTargetFeatures(getToolChain(), Triple, Args, CmdArgs, false); in ConstructJob()
4377 case llvm::Triple::arm: in ConstructJob()
4378 case llvm::Triple::armeb: in ConstructJob()
4379 case llvm::Triple::thumb: in ConstructJob()
4380 case llvm::Triple::thumbeb: in ConstructJob()
4382 AddARMTargetArgs(Triple, Args, CmdArgs, KernelOrKext); in ConstructJob()
4385 case llvm::Triple::aarch64: in ConstructJob()
4386 case llvm::Triple::aarch64_be: in ConstructJob()
4390 case llvm::Triple::mips: in ConstructJob()
4391 case llvm::Triple::mipsel: in ConstructJob()
4392 case llvm::Triple::mips64: in ConstructJob()
4393 case llvm::Triple::mips64el: in ConstructJob()
4397 case llvm::Triple::ppc: in ConstructJob()
4398 case llvm::Triple::ppc64: in ConstructJob()
4399 case llvm::Triple::ppc64le: in ConstructJob()
4403 case llvm::Triple::sparc: in ConstructJob()
4404 case llvm::Triple::sparcel: in ConstructJob()
4405 case llvm::Triple::sparcv9: in ConstructJob()
4409 case llvm::Triple::systemz: in ConstructJob()
4413 case llvm::Triple::x86: in ConstructJob()
4414 case llvm::Triple::x86_64: in ConstructJob()
4418 case llvm::Triple::lanai: in ConstructJob()
4422 case llvm::Triple::hexagon: in ConstructJob()
4426 case llvm::Triple::wasm32: in ConstructJob()
4427 case llvm::Triple::wasm64: in ConstructJob()
4466 getToolChain().getArch() == llvm::Triple::x86) { in ConstructJob()
4592 bool UseSeparateSections = Triple.getOS() == llvm::Triple::CloudABI || in ConstructJob()
4593 Triple.getArch() == llvm::Triple::wasm32 || in ConstructJob()
4594 Triple.getArch() == llvm::Triple::wasm64; in ConstructJob()
4974 bool EmulatedTLSDefault = Triple.isAndroid() || Triple.isWindowsCygwinEnvironment(); in ConstructJob()
5019 const llvm::Triple::ArchType Arch = getToolChain().getArch(); in ConstructJob()
5020 if (!(Arch == llvm::Triple::ppc || Arch == llvm::Triple::ppc64 || in ConstructJob()
5021 Arch == llvm::Triple::ppc64le)) in ConstructJob()
5135 case llvm::Triple::aarch64: in ConstructJob()
5136 case llvm::Triple::aarch64_be: in ConstructJob()
5137 case llvm::Triple::arm: in ConstructJob()
5138 case llvm::Triple::armeb: in ConstructJob()
5139 case llvm::Triple::thumb: in ConstructJob()
5140 case llvm::Triple::thumbeb: in ConstructJob()
5157 } else if (Triple.isOSWindows() && in ConstructJob()
5158 (Triple.getArch() == llvm::Triple::arm || in ConstructJob()
5159 Triple.getArch() == llvm::Triple::thumb)) { in ConstructJob()
5398 getToolChain().getArch() == llvm::Triple::hexagon)) in ConstructJob()
5417 getToolChain().getTriple().getOS() != llvm::Triple::Solaris && in ConstructJob()
5418 getToolChain().getArch() != llvm::Triple::hexagon && in ConstructJob()
5419 getToolChain().getArch() != llvm::Triple::xcore && in ConstructJob()
5421 llvm::Triple::MipsTechnologies) || in ConstructJob()
5538 if (getToolChain().getArch() == llvm::Triple::x86 && in ConstructJob()
5858 if (getToolChain().getArch() == llvm::Triple::le32) { in ConstructJob()
5867 (getToolChain().getArch() == llvm::Triple::arm || in ConstructJob()
5868 getToolChain().getArch() == llvm::Triple::thumb)) { in ConstructJob()
6350 if (getToolChain().getArch() == llvm::Triple::x86_64 || in AddClangCLArgs()
6351 getToolChain().getArch() == llvm::Triple::x86) in AddClangCLArgs()
6419 const llvm::Triple &Triple = getToolChain().getTriple(); in AddMIPSTargetArgs() local
6420 mips::getMipsCPUAndABI(Args, Triple, CPUName, ABIName); in AddMIPSTargetArgs()
6437 const llvm::Triple Triple(TripleStr); in ConstructJob() local
6466 std::string CPU = getCPUName(Args, Triple, /*FromAs*/ true); in ConstructJob()
6473 getTargetFeatures(getToolChain(), Triple, Args, CmdArgs, true); in ConstructJob()
6532 ParsePICArgs(getToolChain(), Triple, Args); in ConstructJob()
6567 case llvm::Triple::mips: in ConstructJob()
6568 case llvm::Triple::mipsel: in ConstructJob()
6569 case llvm::Triple::mips64: in ConstructJob()
6570 case llvm::Triple::mips64el: in ConstructJob()
6654 case llvm::Triple::x86: in ConstructJob()
6655 case llvm::Triple::ppc: in ConstructJob()
6658 case llvm::Triple::x86_64: in ConstructJob()
6659 case llvm::Triple::ppc64: in ConstructJob()
6660 case llvm::Triple::ppc64le: in ConstructJob()
6663 case llvm::Triple::sparcel: in ConstructJob()
7127 const std::string arm::getARMArch(StringRef Arch, const llvm::Triple &Triple) { in getARMArch() argument
7132 MArch = Triple.getArchName(); in getARMArch()
7140 StringRef Suffix = arm::getLLVMArchSuffixForARM(CPU, MArch, Triple); in getARMArch()
7154 StringRef arm::getARMCPUForMArch(StringRef Arch, const llvm::Triple &Triple) { in getARMCPUForMArch() argument
7155 std::string MArch = getARMArch(Arch, Triple); in getARMCPUForMArch()
7163 return Triple.getARMCPUForArch(MArch); in getARMCPUForMArch()
7168 const llvm::Triple &Triple) { in getARMTargetCPU() argument
7180 return getARMCPUForMArch(Arch, Triple); in getARMTargetCPU()
7187 const llvm::Triple &Triple) { in getLLVMArchSuffixForARM() argument
7190 std::string ARMArch = tools::arm::getARMArch(Arch, Triple); in getLLVMArchSuffixForARM()
7195 ArchKind = llvm::ARM::parseCPUArch(Triple.getARMCPUForArch(ARMArch)); in getLLVMArchSuffixForARM()
7209 const llvm::Triple &Triple) { in appendEBLinkFlags() argument
7215 if (getARMSubArchVersionNumber(Triple) >= 7 || isARMMProfile(Triple)) in appendEBLinkFlags()
7260 bool mips::isNaN2008(const ArgList &Args, const llvm::Triple &Triple) { in isNaN2008() argument
7268 return llvm::StringSwitch<bool>(getCPUName(Args, Triple)) in isNaN2008()
7275 bool mips::isFP64ADefault(const llvm::Triple &Triple, StringRef CPUName) { in isFP64ADefault() argument
7276 if (!Triple.isAndroid()) in isFP64ADefault()
7285 bool mips::isFPXXDefault(const llvm::Triple &Triple, StringRef CPUName, in isFPXXDefault() argument
7287 if (Triple.getVendor() != llvm::Triple::ImaginationTechnologies && in isFPXXDefault()
7288 Triple.getVendor() != llvm::Triple::MipsTechnologies && in isFPXXDefault()
7289 !Triple.isAndroid()) in isFPXXDefault()
7307 bool mips::shouldUseFPXX(const ArgList &Args, const llvm::Triple &Triple, in shouldUseFPXX() argument
7310 bool UseFPXX = isFPXXDefault(Triple, CPUName, ABIName, FloatABI); in shouldUseFPXX()
7321 llvm::Triple::ArchType darwin::getArchTypeForMachOArchName(StringRef Str) { in getArchTypeForMachOArchName()
7334 return llvm::StringSwitch<llvm::Triple::ArchType>(Str) in getArchTypeForMachOArchName()
7335 .Cases("ppc", "ppc601", "ppc603", "ppc604", "ppc604e", llvm::Triple::ppc) in getArchTypeForMachOArchName()
7336 .Cases("ppc750", "ppc7400", "ppc7450", "ppc970", llvm::Triple::ppc) in getArchTypeForMachOArchName()
7337 .Case("ppc64", llvm::Triple::ppc64) in getArchTypeForMachOArchName()
7338 .Cases("i386", "i486", "i486SX", "i586", "i686", llvm::Triple::x86) in getArchTypeForMachOArchName()
7340 llvm::Triple::x86) in getArchTypeForMachOArchName()
7341 .Cases("x86_64", "x86_64h", llvm::Triple::x86_64) in getArchTypeForMachOArchName()
7343 .Cases("arm", "armv4t", "armv5", "armv6", "armv6m", llvm::Triple::arm) in getArchTypeForMachOArchName()
7344 .Cases("armv7", "armv7em", "armv7k", "armv7m", llvm::Triple::arm) in getArchTypeForMachOArchName()
7345 .Cases("armv7s", "xscale", llvm::Triple::arm) in getArchTypeForMachOArchName()
7346 .Case("arm64", llvm::Triple::aarch64) in getArchTypeForMachOArchName()
7347 .Case("r600", llvm::Triple::r600) in getArchTypeForMachOArchName()
7348 .Case("amdgcn", llvm::Triple::amdgcn) in getArchTypeForMachOArchName()
7349 .Case("nvptx", llvm::Triple::nvptx) in getArchTypeForMachOArchName()
7350 .Case("nvptx64", llvm::Triple::nvptx64) in getArchTypeForMachOArchName()
7351 .Case("amdil", llvm::Triple::amdil) in getArchTypeForMachOArchName()
7352 .Case("spir", llvm::Triple::spir) in getArchTypeForMachOArchName()
7353 .Default(llvm::Triple::UnknownArch); in getArchTypeForMachOArchName()
7356 void darwin::setTripleTypeForMachOArchName(llvm::Triple &T, StringRef Str) { in setTripleTypeForMachOArchName()
7357 const llvm::Triple::ArchType Arch = getArchTypeForMachOArchName(Str); in setTripleTypeForMachOArchName()
7363 T.setOS(llvm::Triple::UnknownOS); in setTripleTypeForMachOArchName()
7364 T.setObjectFormat(llvm::Triple::MachO); in setTripleTypeForMachOArchName()
7488 const llvm::Triple &T(getToolChain().getTriple()); in ConstructJob()
7506 if (getToolChain().getArch() == llvm::Triple::x86 || in ConstructJob()
7507 getToolChain().getArch() == llvm::Triple::x86_64 || in ConstructJob()
7511 if (getToolChain().getArch() != llvm::Triple::x86_64 && in ConstructJob()
8077 case llvm::Triple::x86: in ConstructJob()
8083 case llvm::Triple::ppc: in ConstructJob()
8088 case llvm::Triple::sparc: in ConstructJob()
8089 case llvm::Triple::sparcel: { in ConstructJob()
8097 case llvm::Triple::sparcv9: { in ConstructJob()
8105 case llvm::Triple::mips64: in ConstructJob()
8106 case llvm::Triple::mips64el: { in ConstructJob()
8114 if (getToolChain().getArch() == llvm::Triple::mips64) in ConstructJob()
8155 if (getToolChain().getArch() == llvm::Triple::mips64) in ConstructJob()
8157 else if (getToolChain().getArch() == llvm::Triple::mips64el) in ConstructJob()
8206 std::string Triple = getToolChain().getTripleString(); in ConstructJob() local
8207 if (Triple.substr(0, 6) == "x86_64") in ConstructJob()
8208 Triple.replace(0, 6, "amd64"); in ConstructJob()
8210 Args.MakeArgString("-L/usr/lib/gcc-lib/" + Triple + "/4.2.1")); in ConstructJob()
8362 case llvm::Triple::arm: in ConstructJob()
8365 case llvm::Triple::x86: in ConstructJob()
8368 case llvm::Triple::x86_64: in ConstructJob()
8403 case llvm::Triple::x86: in ConstructJob()
8406 case llvm::Triple::ppc: in ConstructJob()
8409 case llvm::Triple::mips: in ConstructJob()
8410 case llvm::Triple::mipsel: in ConstructJob()
8411 case llvm::Triple::mips64: in ConstructJob()
8412 case llvm::Triple::mips64el: { in ConstructJob()
8423 if (getToolChain().getArch() == llvm::Triple::mips || in ConstructJob()
8424 getToolChain().getArch() == llvm::Triple::mips64) in ConstructJob()
8438 case llvm::Triple::arm: in ConstructJob()
8439 case llvm::Triple::armeb: in ConstructJob()
8440 case llvm::Triple::thumb: in ConstructJob()
8441 case llvm::Triple::thumbeb: { in ConstructJob()
8450 case llvm::Triple::GNUEABIHF: in ConstructJob()
8451 case llvm::Triple::GNUEABI: in ConstructJob()
8452 case llvm::Triple::EABI: in ConstructJob()
8461 case llvm::Triple::sparc: in ConstructJob()
8462 case llvm::Triple::sparcel: in ConstructJob()
8463 case llvm::Triple::sparcv9: { in ConstructJob()
8491 const llvm::Triple::ArchType Arch = ToolChain.getArch(); in ConstructJob()
8524 if (Arch == llvm::Triple::arm || Arch == llvm::Triple::sparc || in ConstructJob()
8525 Arch == llvm::Triple::x86 || Arch == llvm::Triple::x86_64) { in ConstructJob()
8534 if (Arch == llvm::Triple::x86) { in ConstructJob()
8539 if (Arch == llvm::Triple::ppc) { in ConstructJob()
8545 if (ToolChain.getArch() == llvm::Triple::mips || in ConstructJob()
8546 ToolChain.getArch() == llvm::Triple::mipsel || in ConstructJob()
8547 ToolChain.getArch() == llvm::Triple::mips64 || in ConstructJob()
8548 ToolChain.getArch() == llvm::Triple::mips64el) { in ConstructJob()
8684 case llvm::Triple::x86: in ConstructJob()
8687 case llvm::Triple::arm: in ConstructJob()
8688 case llvm::Triple::armeb: in ConstructJob()
8689 case llvm::Triple::thumb: in ConstructJob()
8690 case llvm::Triple::thumbeb: { in ConstructJob()
8699 case llvm::Triple::mips: in ConstructJob()
8700 case llvm::Triple::mipsel: in ConstructJob()
8701 case llvm::Triple::mips64: in ConstructJob()
8702 case llvm::Triple::mips64el: { in ConstructJob()
8713 if (getToolChain().getArch() == llvm::Triple::mips || in ConstructJob()
8714 getToolChain().getArch() == llvm::Triple::mips64) in ConstructJob()
8723 case llvm::Triple::sparc: in ConstructJob()
8724 case llvm::Triple::sparcel: { in ConstructJob()
8732 case llvm::Triple::sparcv9: { in ConstructJob()
8785 case llvm::Triple::x86: in ConstructJob()
8789 case llvm::Triple::arm: in ConstructJob()
8790 case llvm::Triple::thumb: in ConstructJob()
8793 case llvm::Triple::EABI: in ConstructJob()
8794 case llvm::Triple::GNUEABI: in ConstructJob()
8797 case llvm::Triple::EABIHF: in ConstructJob()
8798 case llvm::Triple::GNUEABIHF: in ConstructJob()
8806 case llvm::Triple::armeb: in ConstructJob()
8807 case llvm::Triple::thumbeb: in ConstructJob()
8810 llvm::Triple(getToolChain().ComputeEffectiveClangTriple(Args))); in ConstructJob()
8813 case llvm::Triple::EABI: in ConstructJob()
8814 case llvm::Triple::GNUEABI: in ConstructJob()
8817 case llvm::Triple::EABIHF: in ConstructJob()
8818 case llvm::Triple::GNUEABIHF: in ConstructJob()
8826 case llvm::Triple::mips64: in ConstructJob()
8827 case llvm::Triple::mips64el: in ConstructJob()
8830 if (getToolChain().getArch() == llvm::Triple::mips64) in ConstructJob()
8836 if (getToolChain().getArch() == llvm::Triple::mips64) in ConstructJob()
8842 case llvm::Triple::ppc: in ConstructJob()
8847 case llvm::Triple::ppc64: in ConstructJob()
8848 case llvm::Triple::ppc64le: in ConstructJob()
8853 case llvm::Triple::sparc: in ConstructJob()
8858 case llvm::Triple::sparcv9: in ConstructJob()
8905 case llvm::Triple::aarch64: in ConstructJob()
8906 case llvm::Triple::arm: in ConstructJob()
8907 case llvm::Triple::armeb: in ConstructJob()
8908 case llvm::Triple::thumb: in ConstructJob()
8909 case llvm::Triple::thumbeb: in ConstructJob()
8910 case llvm::Triple::ppc: in ConstructJob()
8911 case llvm::Triple::ppc64: in ConstructJob()
8912 case llvm::Triple::ppc64le: in ConstructJob()
8913 case llvm::Triple::sparc: in ConstructJob()
8914 case llvm::Triple::sparcv9: in ConstructJob()
8915 case llvm::Triple::x86: in ConstructJob()
8916 case llvm::Triple::x86_64: in ConstructJob()
8975 llvm::Triple Triple = llvm::Triple(TripleStr); in ConstructJob() local
8983 ParsePICArgs(getToolChain(), Triple, Args); in ConstructJob()
8990 case llvm::Triple::x86: in ConstructJob()
8993 case llvm::Triple::x86_64: in ConstructJob()
8994 if (getToolChain().getTriple().getEnvironment() == llvm::Triple::GNUX32) in ConstructJob()
8999 case llvm::Triple::ppc: in ConstructJob()
9004 case llvm::Triple::ppc64: in ConstructJob()
9009 case llvm::Triple::ppc64le: in ConstructJob()
9015 case llvm::Triple::sparc: in ConstructJob()
9016 case llvm::Triple::sparcel: { in ConstructJob()
9023 case llvm::Triple::sparcv9: { in ConstructJob()
9030 case llvm::Triple::arm: in ConstructJob()
9031 case llvm::Triple::armeb: in ConstructJob()
9032 case llvm::Triple::thumb: in ConstructJob()
9033 case llvm::Triple::thumbeb: { in ConstructJob()
9034 const llvm::Triple &Triple2 = getToolChain().getTriple(); in ConstructJob()
9036 case llvm::Triple::ARMSubArch_v7: in ConstructJob()
9039 case llvm::Triple::ARMSubArch_v8: in ConstructJob()
9073 case llvm::Triple::mips: in ConstructJob()
9074 case llvm::Triple::mipsel: in ConstructJob()
9075 case llvm::Triple::mips64: in ConstructJob()
9076 case llvm::Triple::mips64el: { in ConstructJob()
9097 if (getToolChain().getArch() == llvm::Triple::mips || in ConstructJob()
9098 getToolChain().getArch() == llvm::Triple::mips64) in ConstructJob()
9155 case llvm::Triple::systemz: { in ConstructJob()
9185 static void AddLibgcc(const llvm::Triple &Triple, const Driver &D, in AddLibgcc() argument
9187 bool isAndroid = Triple.isAndroid(); in AddLibgcc()
9188 bool isCygMing = Triple.isOSCygMing(); in AddLibgcc()
9189 bool IsIAMCU = Triple.isOSIAMCU(); in AddLibgcc()
9230 case llvm::Triple::Win32: in AddRunTimeLibs()
9231 case llvm::Triple::Linux: in AddRunTimeLibs()
9251 static const char *getLDMOption(const llvm::Triple &T, const ArgList &Args) { in getLDMOption()
9253 case llvm::Triple::x86: in getLDMOption()
9257 case llvm::Triple::aarch64: in getLDMOption()
9259 case llvm::Triple::aarch64_be: in getLDMOption()
9261 case llvm::Triple::arm: in getLDMOption()
9262 case llvm::Triple::thumb: in getLDMOption()
9264 case llvm::Triple::armeb: in getLDMOption()
9265 case llvm::Triple::thumbeb: in getLDMOption()
9267 case llvm::Triple::ppc: in getLDMOption()
9269 case llvm::Triple::ppc64: in getLDMOption()
9271 case llvm::Triple::ppc64le: in getLDMOption()
9273 case llvm::Triple::sparc: in getLDMOption()
9274 case llvm::Triple::sparcel: in getLDMOption()
9276 case llvm::Triple::sparcv9: in getLDMOption()
9278 case llvm::Triple::mips: in getLDMOption()
9280 case llvm::Triple::mipsel: in getLDMOption()
9282 case llvm::Triple::mips64: in getLDMOption()
9286 case llvm::Triple::mips64el: in getLDMOption()
9290 case llvm::Triple::systemz: in getLDMOption()
9292 case llvm::Triple::x86_64: in getLDMOption()
9293 if (T.getEnvironment() == llvm::Triple::GNUX32) in getLDMOption()
9311 llvm::Triple Triple = llvm::Triple(TripleStr); in ConstructJob() local
9313 const llvm::Triple::ArchType Arch = ToolChain.getArch(); in ConstructJob()
9321 (ToolChain.getTriple().getVendor() != llvm::Triple::MipsTechnologies); in ConstructJob()
9353 if (Arch == llvm::Triple::armeb || Arch == llvm::Triple::thumbeb) in ConstructJob()
9354 arm::appendEBLinkFlags(Args, CmdArgs, Triple); in ConstructJob()
9367 if (Arch == llvm::Triple::arm || Arch == llvm::Triple::armeb || in ConstructJob()
9368 Arch == llvm::Triple::thumb || Arch == llvm::Triple::thumbeb) in ConstructJob()
9580 const llvm::Triple::ArchType Arch = ToolChain.getArch(); in ConstructJob()
9611 if (Arch == llvm::Triple::x86) in ConstructJob()
9613 else if (Arch == llvm::Triple::arm) in ConstructJob()
9615 else if (Arch == llvm::Triple::x86_64) in ConstructJob()
9617 else if (Arch == llvm::Triple::mipsel) in ConstructJob()
9680 if (getToolChain().getArch() == llvm::Triple::mipsel) in ConstructJob()
9697 if (getToolChain().getArch() == llvm::Triple::mipsel) in ConstructJob()
9804 if (getToolChain().getArch() == llvm::Triple::x86) in ConstructJob()
9848 if (getToolChain().getArch() == llvm::Triple::x86) { in ConstructJob()
9990 case llvm::Triple::x86: in ConstructJob()
9993 case llvm::Triple::x86_64: in ConstructJob()
9996 case llvm::Triple::arm: in ConstructJob()
10267 if (getToolChain().getArch() == llvm::Triple::x86) { in ConstructJob()
10269 } else if (getToolChain().getArch() == llvm::Triple::x86_64) { in ConstructJob()
10353 if (TC.getArch() == llvm::Triple::x86) in ConstructJob()
10355 if (TC.getArch() == llvm::Triple::x86_64) in ConstructJob()
10357 if (TC.getArch() == llvm::Triple::arm) in ConstructJob()
10378 if (TC.getArch() == llvm::Triple::x86) in ConstructJob()
10557 case llvm::Triple::arm: in ConstructJob()
10558 case llvm::Triple::thumb: in ConstructJob()
10560 case llvm::Triple::x86: in ConstructJob()
10563 case llvm::Triple::x86_64: in ConstructJob()
10589 const llvm::Triple &T = TC.getTriple(); in ConstructJob()
10617 case llvm::Triple::arm: in ConstructJob()
10618 case llvm::Triple::thumb: in ConstructJob()
10622 case llvm::Triple::x86: in ConstructJob()
10626 case llvm::Triple::x86_64: in ConstructJob()
10635 case llvm::Triple::arm: in ConstructJob()
10636 case llvm::Triple::thumb: in ConstructJob()
10637 case llvm::Triple::x86_64: in ConstructJob()
10640 case llvm::Triple::x86: in ConstructJob()
10722 CmdArgs.push_back(Args.MakeArgString(TC.getArch() == llvm::Triple::x86 in ConstructJob()
10832 const llvm::Triple &T = TC.getTriple(); in ConstructJob()
10839 if (T.getArch() == llvm::Triple::sparc) in ConstructJob()
10877 if (T.getOS() == llvm::Triple::RTEMS) { in ConstructJob()