Lines Matching refs:Triple
477 static bool isSignedCharDefault(const llvm::Triple &Triple) { in isSignedCharDefault() argument
478 switch (Triple.getArch()) { in isSignedCharDefault()
482 case llvm::Triple::aarch64: in isSignedCharDefault()
483 case llvm::Triple::aarch64_be: in isSignedCharDefault()
484 case llvm::Triple::arm: in isSignedCharDefault()
485 case llvm::Triple::armeb: in isSignedCharDefault()
486 case llvm::Triple::thumb: in isSignedCharDefault()
487 case llvm::Triple::thumbeb: in isSignedCharDefault()
488 if (Triple.isOSDarwin() || Triple.isOSWindows()) in isSignedCharDefault()
492 case llvm::Triple::ppc: in isSignedCharDefault()
493 case llvm::Triple::ppc64: in isSignedCharDefault()
494 if (Triple.isOSDarwin()) in isSignedCharDefault()
498 case llvm::Triple::ppc64le: in isSignedCharDefault()
499 case llvm::Triple::systemz: in isSignedCharDefault()
500 case llvm::Triple::xcore: in isSignedCharDefault()
505 static bool isNoCommonDefault(const llvm::Triple &Triple) { in isNoCommonDefault() argument
506 switch (Triple.getArch()) { in isNoCommonDefault()
510 case llvm::Triple::xcore: in isNoCommonDefault()
619 const llvm::Triple &Triple) { in getARMFloatABI() argument
640 switch (Triple.getOS()) { in getARMFloatABI()
641 case llvm::Triple::Darwin: in getARMFloatABI()
642 case llvm::Triple::MacOSX: in getARMFloatABI()
643 case llvm::Triple::IOS: { in getARMFloatABI()
648 arm::getLLVMArchSuffixForARM(arm::getARMTargetCPU(Args, Triple)); in getARMFloatABI()
658 case llvm::Triple::Win32: in getARMFloatABI()
662 case llvm::Triple::FreeBSD: in getARMFloatABI()
663 switch(Triple.getEnvironment()) { in getARMFloatABI()
664 case llvm::Triple::GNUEABIHF: in getARMFloatABI()
675 switch(Triple.getEnvironment()) { in getARMFloatABI()
676 case llvm::Triple::GNUEABIHF: in getARMFloatABI()
679 case llvm::Triple::GNUEABI: in getARMFloatABI()
682 case llvm::Triple::EABIHF: in getARMFloatABI()
685 case llvm::Triple::EABI: in getARMFloatABI()
689 case llvm::Triple::Android: { in getARMFloatABI()
691 arm::getLLVMArchSuffixForARM(arm::getARMTargetCPU(Args, Triple)); in getARMFloatABI()
701 if (Triple.getOS() != llvm::Triple::UnknownOS || in getARMFloatABI()
702 !Triple.isOSBinFormatMachO()) in getARMFloatABI()
712 static void getARMTargetFeatures(const Driver &D, const llvm::Triple &Triple, in getARMTargetFeatures() argument
716 StringRef FloatABI = tools::arm::getARMFloatABI(D, Args, Triple); in getARMTargetFeatures()
768 llvm::Triple Triple(TripleStr); in AddARMTargetArgs() local
769 std::string CPUName = arm::getARMTargetCPU(Args, Triple); in AddARMTargetArgs()
778 } else if (Triple.isOSBinFormatMachO()) { in AddARMTargetArgs()
781 if (Triple.getEnvironment() == llvm::Triple::EABI || in AddARMTargetArgs()
782 Triple.getOS() == llvm::Triple::UnknownOS || in AddARMTargetArgs()
788 } else if (Triple.isOSWindows()) { in AddARMTargetArgs()
793 switch(Triple.getEnvironment()) { in AddARMTargetArgs()
794 case llvm::Triple::Android: in AddARMTargetArgs()
795 case llvm::Triple::GNUEABI: in AddARMTargetArgs()
796 case llvm::Triple::GNUEABIHF: in AddARMTargetArgs()
799 case llvm::Triple::EABIHF: in AddARMTargetArgs()
800 case llvm::Triple::EABI: in AddARMTargetArgs()
804 if (Triple.getOS() == llvm::Triple::NetBSD) in AddARMTargetArgs()
815 StringRef FloatABI = tools::arm::getARMFloatABI(D, Args, Triple); in AddARMTargetArgs()
836 if (!Triple.isiOS() || Triple.isOSVersionLT(6)) { in AddARMTargetArgs()
857 if (Triple.getSubArch() == llvm::Triple::SubArchType::ARMSubArch_v6m) in AddARMTargetArgs()
918 llvm::Triple Triple(TripleStr); in AddAArch64TargetArgs() local
932 else if (Triple.isOSDarwin()) in AddAArch64TargetArgs()
956 } else if (Triple.getEnvironment() == llvm::Triple::Android) { in AddAArch64TargetArgs()
981 const llvm::Triple &Triple, in getMipsCPUAndABI() argument
989 if (Triple.getVendor() == llvm::Triple::ImaginationTechnologies && in getMipsCPUAndABI()
990 Triple.getEnvironment() == llvm::Triple::GNU) { in getMipsCPUAndABI()
996 if (Triple.getOS() == llvm::Triple::OpenBSD) in getMipsCPUAndABI()
1015 switch (Triple.getArch()) { in getMipsCPUAndABI()
1018 case llvm::Triple::mips: in getMipsCPUAndABI()
1019 case llvm::Triple::mipsel: in getMipsCPUAndABI()
1022 case llvm::Triple::mips64: in getMipsCPUAndABI()
1023 case llvm::Triple::mips64el: in getMipsCPUAndABI()
1031 if (Triple.getArch() == llvm::Triple::mips || in getMipsCPUAndABI()
1032 Triple.getArch() == llvm::Triple::mipsel) in getMipsCPUAndABI()
1100 static void getMIPSTargetFeatures(const Driver &D, const llvm::Triple &Triple, in getMIPSTargetFeatures() argument
1105 mips::getMipsCPUAndABI(Args, Triple, CPUName, ABIName); in getMIPSTargetFeatures()
1164 } else if (mips::isFPXXDefault(Triple, CPUName, ABIName)) { in getMIPSTargetFeatures()
1178 const llvm::Triple &Triple = getToolChain().getTriple(); in AddMIPSTargetArgs() local
1179 mips::getMipsCPUAndABI(Args, Triple, CPUName, ABIName); in AddMIPSTargetArgs()
1333 case llvm::Triple::ppc64: { in AddPPCTargetArgs()
1349 case llvm::Triple::ppc64le: in AddPPCTargetArgs()
1447 const llvm::Triple &Triple) { in getX86TargetCPU() argument
1450 if (Triple.isOSDarwin() && Triple.getArchName() == "x86_64h") in getX86TargetCPU()
1468 if (Triple.getArch() != llvm::Triple::x86_64 && in getX86TargetCPU()
1469 Triple.getArch() != llvm::Triple::x86) in getX86TargetCPU()
1472 bool Is64Bit = Triple.getArch() == llvm::Triple::x86_64; in getX86TargetCPU()
1475 if (Triple.isOSDarwin()) { in getX86TargetCPU()
1476 if (Triple.getArchName() == "x86_64h") in getX86TargetCPU()
1482 if (Triple.isPS4CPU()) in getX86TargetCPU()
1486 if (Triple.getEnvironment() == llvm::Triple::Android) in getX86TargetCPU()
1493 switch (Triple.getOS()) { in getX86TargetCPU()
1494 case llvm::Triple::FreeBSD: in getX86TargetCPU()
1495 case llvm::Triple::NetBSD: in getX86TargetCPU()
1496 case llvm::Triple::OpenBSD: in getX86TargetCPU()
1498 case llvm::Triple::Haiku: in getX86TargetCPU()
1500 case llvm::Triple::Bitrig: in getX86TargetCPU()
1508 static std::string getCPUName(const ArgList &Args, const llvm::Triple &T) { in getCPUName()
1513 case llvm::Triple::aarch64: in getCPUName()
1514 case llvm::Triple::aarch64_be: in getCPUName()
1517 case llvm::Triple::arm: in getCPUName()
1518 case llvm::Triple::armeb: in getCPUName()
1519 case llvm::Triple::thumb: in getCPUName()
1520 case llvm::Triple::thumbeb: in getCPUName()
1523 case llvm::Triple::mips: in getCPUName()
1524 case llvm::Triple::mipsel: in getCPUName()
1525 case llvm::Triple::mips64: in getCPUName()
1526 case llvm::Triple::mips64el: { in getCPUName()
1533 case llvm::Triple::ppc: in getCPUName()
1534 case llvm::Triple::ppc64: in getCPUName()
1535 case llvm::Triple::ppc64le: { in getCPUName()
1541 if (T.getArch() == llvm::Triple::ppc64) in getCPUName()
1543 else if (T.getArch() == llvm::Triple::ppc64le) in getCPUName()
1551 case llvm::Triple::sparc: in getCPUName()
1552 case llvm::Triple::sparcv9: in getCPUName()
1557 case llvm::Triple::x86: in getCPUName()
1558 case llvm::Triple::x86_64: in getCPUName()
1561 case llvm::Triple::hexagon: in getCPUName()
1564 case llvm::Triple::systemz: in getCPUName()
1567 case llvm::Triple::r600: in getCPUName()
1568 case llvm::Triple::amdgcn: in getCPUName()
1591 static void getX86TargetFeatures(const Driver &D, const llvm::Triple &Triple, in getX86TargetFeatures() argument
1605 if (Triple.getArchName() == "x86_64h") { in getX86TargetFeatures()
1617 if (Triple.getEnvironment() == llvm::Triple::Android) { in getX86TargetFeatures()
1618 if (Triple.getArch() == llvm::Triple::x86_64) { in getX86TargetFeatures()
1630 if (Triple.getArch() == llvm::Triple::x86_64 || in getX86TargetFeatures()
1631 Triple.getArch() == llvm::Triple::x86) { in getX86TargetFeatures()
1638 if (Triple.getArch() == llvm::Triple::x86) { in getX86TargetFeatures()
1903 static void getTargetFeatures(const Driver &D, const llvm::Triple &Triple, in getTargetFeatures() argument
1907 switch (Triple.getArch()) { in getTargetFeatures()
1910 case llvm::Triple::mips: in getTargetFeatures()
1911 case llvm::Triple::mipsel: in getTargetFeatures()
1912 case llvm::Triple::mips64: in getTargetFeatures()
1913 case llvm::Triple::mips64el: in getTargetFeatures()
1914 getMIPSTargetFeatures(D, Triple, Args, Features); in getTargetFeatures()
1917 case llvm::Triple::arm: in getTargetFeatures()
1918 case llvm::Triple::armeb: in getTargetFeatures()
1919 case llvm::Triple::thumb: in getTargetFeatures()
1920 case llvm::Triple::thumbeb: in getTargetFeatures()
1921 getARMTargetFeatures(D, Triple, Args, Features, ForAS); in getTargetFeatures()
1924 case llvm::Triple::ppc: in getTargetFeatures()
1925 case llvm::Triple::ppc64: in getTargetFeatures()
1926 case llvm::Triple::ppc64le: in getTargetFeatures()
1929 case llvm::Triple::sparc: in getTargetFeatures()
1930 case llvm::Triple::sparcv9: in getTargetFeatures()
1933 case llvm::Triple::systemz: in getTargetFeatures()
1936 case llvm::Triple::aarch64: in getTargetFeatures()
1937 case llvm::Triple::aarch64_be: in getTargetFeatures()
1940 case llvm::Triple::x86: in getTargetFeatures()
1941 case llvm::Triple::x86_64: in getTargetFeatures()
1942 getX86TargetFeatures(D, Triple, Args, Features); in getTargetFeatures()
1970 const llvm::Triple &Triple) { in shouldUseExceptionTablesForObjCExceptions() argument
1977 if (!Triple.isMacOSX()) in shouldUseExceptionTablesForObjCExceptions()
1980 return (!Triple.isMacOSXVersionLT(10,5) && in shouldUseExceptionTablesForObjCExceptions()
1981 (Triple.getArch() == llvm::Triple::x86_64 || in shouldUseExceptionTablesForObjCExceptions()
1982 Triple.getArch() == llvm::Triple::arm)); in shouldUseExceptionTablesForObjCExceptions()
1987 static bool exceptionSettings(const ArgList &Args, const llvm::Triple &Triple) { in exceptionSettings() argument
2005 const llvm::Triple &Triple = TC.getTriple(); in addExceptionArgs() local
2020 bool EH = exceptionSettings(Args, Triple); in addExceptionArgs()
2030 EH |= shouldUseExceptionTablesForObjCExceptions(objcRuntime, Triple); in addExceptionArgs()
2035 Triple.getArch() != llvm::Triple::xcore && !Triple.isPS4CPU(); in addExceptionArgs()
2045 if (Triple.isPS4CPU()) { in addExceptionArgs()
2197 if (TC.getArch() == llvm::Triple::arm || TC.getArch() == llvm::Triple::armeb) in getArchNameForCompilerRTLib()
2205 const llvm::Triple &Triple = TC.getTriple(); in getCompilerRTLibDir() local
2208 (Triple.getOS() == llvm::Triple::FreeBSD) ? "freebsd" : TC.getOS(); in getCompilerRTLibDir()
2215 const char *Env = TC.getTriple().getEnvironment() == llvm::Triple::Android in getCompilerRT()
2294 if (TC.getTriple().getOS() != llvm::Triple::FreeBSD) in linkSanitizerRuntimeDeps()
2311 (TC.getTriple().getEnvironment() == llvm::Triple::Android)) { in collectSanitizerRuntimes()
2372 const llvm::Triple &Triple) { in shouldUseFramePointerForTarget() argument
2374 if (Triple.getArch() == llvm::Triple::xcore) { in shouldUseFramePointerForTarget()
2378 if (Triple.isOSLinux()) { in shouldUseFramePointerForTarget()
2379 switch (Triple.getArch()) { in shouldUseFramePointerForTarget()
2381 case llvm::Triple::mips64: in shouldUseFramePointerForTarget()
2382 case llvm::Triple::mips64el: in shouldUseFramePointerForTarget()
2383 case llvm::Triple::mips: in shouldUseFramePointerForTarget()
2384 case llvm::Triple::mipsel: in shouldUseFramePointerForTarget()
2385 case llvm::Triple::systemz: in shouldUseFramePointerForTarget()
2386 case llvm::Triple::x86: in shouldUseFramePointerForTarget()
2387 case llvm::Triple::x86_64: in shouldUseFramePointerForTarget()
2394 if (Triple.isOSWindows()) { in shouldUseFramePointerForTarget()
2395 switch (Triple.getArch()) { in shouldUseFramePointerForTarget()
2396 case llvm::Triple::x86: in shouldUseFramePointerForTarget()
2409 const llvm::Triple &Triple) { in shouldUseFramePointer() argument
2414 return shouldUseFramePointerForTarget(Args, Triple); in shouldUseFramePointer()
2418 const llvm::Triple &Triple) { in shouldUseLeafFramePointer() argument
2423 if (Triple.isPS4CPU()) in shouldUseLeafFramePointer()
2426 return shouldUseFramePointerForTarget(Args, Triple); in shouldUseLeafFramePointer()
2610 const llvm::Triple TT(TripleStr); in ConstructJob()
2611 if (TT.isOSWindows() && (TT.getArch() == llvm::Triple::arm || in ConstructJob()
2612 TT.getArch() == llvm::Triple::thumb)) { in ConstructJob()
2613 unsigned Offset = TT.getArch() == llvm::Triple::arm ? 4 : 6; in ConstructJob()
2736 if (getToolChain().getTriple().getVendor() == llvm::Triple::Apple) in ConstructJob()
2778 if (getToolChain().getTriple().getEnvironment() == llvm::Triple::Android) { in ConstructJob()
2780 case llvm::Triple::arm: in ConstructJob()
2781 case llvm::Triple::armeb: in ConstructJob()
2782 case llvm::Triple::thumb: in ConstructJob()
2783 case llvm::Triple::thumbeb: in ConstructJob()
2784 case llvm::Triple::aarch64: in ConstructJob()
2785 case llvm::Triple::mips: in ConstructJob()
2786 case llvm::Triple::mipsel: in ConstructJob()
2787 case llvm::Triple::mips64: in ConstructJob()
2788 case llvm::Triple::mips64el: in ConstructJob()
2792 case llvm::Triple::x86: in ConstructJob()
2793 case llvm::Triple::x86_64: in ConstructJob()
2804 if (getToolChain().getTriple().getOS() == llvm::Triple::OpenBSD) { in ConstructJob()
2806 case llvm::Triple::mips64: in ConstructJob()
2807 case llvm::Triple::mips64el: in ConstructJob()
2808 case llvm::Triple::sparc: in ConstructJob()
2809 case llvm::Triple::x86: in ConstructJob()
2810 case llvm::Triple::x86_64: in ConstructJob()
2814 case llvm::Triple::ppc: in ConstructJob()
2815 case llvm::Triple::sparcv9: in ConstructJob()
2863 llvm::Triple Triple(TripleStr); in ConstructJob() local
2864 if (KernelOrKext && (!Triple.isiOS() || Triple.isOSVersionLT(6))) in ConstructJob()
2945 if (getToolChain().getArch() != llvm::Triple::x86) { in ConstructJob()
3199 llvm::Triple ETriple(ETripleStr); in ConstructJob()
3219 case llvm::Triple::arm: in ConstructJob()
3220 case llvm::Triple::armeb: in ConstructJob()
3221 case llvm::Triple::thumb: in ConstructJob()
3222 case llvm::Triple::thumbeb: in ConstructJob()
3226 case llvm::Triple::aarch64: in ConstructJob()
3227 case llvm::Triple::aarch64_be: in ConstructJob()
3231 case llvm::Triple::mips: in ConstructJob()
3232 case llvm::Triple::mipsel: in ConstructJob()
3233 case llvm::Triple::mips64: in ConstructJob()
3234 case llvm::Triple::mips64el: in ConstructJob()
3238 case llvm::Triple::ppc: in ConstructJob()
3239 case llvm::Triple::ppc64: in ConstructJob()
3240 case llvm::Triple::ppc64le: in ConstructJob()
3244 case llvm::Triple::sparc: in ConstructJob()
3245 case llvm::Triple::sparcv9: in ConstructJob()
3249 case llvm::Triple::x86: in ConstructJob()
3250 case llvm::Triple::x86_64: in ConstructJob()
3254 case llvm::Triple::hexagon: in ConstructJob()
3279 getToolChain().getArch() == llvm::Triple::x86) { in ConstructJob()
3313 const llvm::Triple &Triple = getToolChain().getTriple(); in ConstructJob() local
3314 if (Triple.isOSDarwin() || Triple.getOS() == llvm::Triple::OpenBSD || in ConstructJob()
3315 Triple.getOS() == llvm::Triple::FreeBSD || in ConstructJob()
3316 Triple.getOS() == llvm::Triple::Solaris) in ConstructJob()
3327 const llvm::Triple &Triple = getToolChain().getTriple(); in ConstructJob() local
3328 if (Triple.isOSDarwin() || Triple.getOS() == llvm::Triple::OpenBSD || in ConstructJob()
3329 Triple.getOS() == llvm::Triple::FreeBSD || in ConstructJob()
3330 Triple.getOS() == llvm::Triple::Solaris) in ConstructJob()
3374 bool UseSeparateSections = Triple.getOS() == llvm::Triple::CloudABI; in ConstructJob()
3780 if (!(getToolChain().getArch() == llvm::Triple::ppc || in ConstructJob()
3781 getToolChain().getArch() == llvm::Triple::ppc64 || in ConstructJob()
3782 getToolChain().getArch() == llvm::Triple::ppc64le)) in ConstructJob()
3895 if (getToolChain().getTriple().getArch() == llvm::Triple::aarch64 || in ConstructJob()
3896 getToolChain().getTriple().getArch() == llvm::Triple::aarch64_be) in ConstructJob()
3908 } else if (TT.isOSWindows() && (TT.getArch() == llvm::Triple::arm || in ConstructJob()
3909 TT.getArch() == llvm::Triple::thumb)) { in ConstructJob()
3915 if (TT.getArch() == llvm::Triple::arm || in ConstructJob()
3916 TT.getArch() == llvm::Triple::thumb) { in ConstructJob()
4113 llvm::Triple::hexagon)) in ConstructJob()
4125 getToolChain().getArch() != llvm::Triple::hexagon && in ConstructJob()
4126 getToolChain().getArch() != llvm::Triple::xcore) || in ConstructJob()
4238 if (getToolChain().getTriple().getArch() == llvm::Triple::x86 && in ConstructJob()
4561 if (getToolChain().getArch() == llvm::Triple::le32) { in ConstructJob()
4570 (getToolChain().getArch() == llvm::Triple::arm || in ConstructJob()
4571 getToolChain().getArch() == llvm::Triple::thumb)) { in ConstructJob()
4967 if (getToolChain().getTriple().getArch() == llvm::Triple::x86_64 || in AddClangCLArgs()
4968 getToolChain().getTriple().getArch() == llvm::Triple::x86) in AddClangCLArgs()
5027 const llvm::Triple &Triple = getToolChain().getTriple(); in AddMIPSTargetArgs() local
5028 mips::getMipsCPUAndABI(Args, Triple, CPUName, ABIName); in AddMIPSTargetArgs()
5073 const llvm::Triple &Triple = getToolChain().getTriple(); in ConstructJob() local
5074 std::string CPU = getCPUName(Args, Triple); in ConstructJob()
5082 getTargetFeatures(D, Triple, Args, CmdArgs, true); in ConstructJob()
5146 case llvm::Triple::mips: in ConstructJob()
5147 case llvm::Triple::mipsel: in ConstructJob()
5148 case llvm::Triple::mips64: in ConstructJob()
5149 case llvm::Triple::mips64el: in ConstructJob()
5233 llvm::Triple::ArchType Arch = getToolChain().getArch(); in ConstructJob()
5234 if (Arch == llvm::Triple::x86 || Arch == llvm::Triple::ppc) in ConstructJob()
5236 else if (Arch == llvm::Triple::x86_64 || Arch == llvm::Triple::ppc64 || in ConstructJob()
5237 Arch == llvm::Triple::ppc64le) in ConstructJob()
5580 const llvm::Triple &Triple) { in getARMCPUForMArch() argument
5587 MArch = Triple.getArchName(); in getARMCPUForMArch()
5600 return Triple.getARMCPUForArch(MArch); in getARMCPUForMArch()
5605 const llvm::Triple &Triple) { in getARMTargetCPU() argument
5617 return getARMCPUForMArch(Args, Triple); in getARMTargetCPU()
5652 void arm::appendEBLinkFlags(const ArgList &Args, ArgStringList &CmdArgs, const llvm::Triple &Triple… in appendEBLinkFlags() argument
5656 StringRef Suffix = getLLVMArchSuffixForARM(getARMCPUForMArch(Args, Triple)); in appendEBLinkFlags()
5696 bool mips::isNaN2008(const ArgList &Args, const llvm::Triple &Triple) { in isNaN2008() argument
5704 return llvm::StringSwitch<bool>(getCPUName(Args, Triple)) in isNaN2008()
5711 bool mips::isFPXXDefault(const llvm::Triple &Triple, StringRef CPUName, in isFPXXDefault() argument
5713 if (Triple.getVendor() != llvm::Triple::ImaginationTechnologies && in isFPXXDefault()
5714 Triple.getVendor() != llvm::Triple::MipsTechnologies) in isFPXXDefault()
5727 llvm::Triple::ArchType darwin::getArchTypeForMachOArchName(StringRef Str) { in getArchTypeForMachOArchName()
5740 return llvm::StringSwitch<llvm::Triple::ArchType>(Str) in getArchTypeForMachOArchName()
5741 .Cases("ppc", "ppc601", "ppc603", "ppc604", "ppc604e", llvm::Triple::ppc) in getArchTypeForMachOArchName()
5742 .Cases("ppc750", "ppc7400", "ppc7450", "ppc970", llvm::Triple::ppc) in getArchTypeForMachOArchName()
5743 .Case("ppc64", llvm::Triple::ppc64) in getArchTypeForMachOArchName()
5744 .Cases("i386", "i486", "i486SX", "i586", "i686", llvm::Triple::x86) in getArchTypeForMachOArchName()
5746 llvm::Triple::x86) in getArchTypeForMachOArchName()
5747 .Cases("x86_64", "x86_64h", llvm::Triple::x86_64) in getArchTypeForMachOArchName()
5749 .Cases("arm", "armv4t", "armv5", "armv6", "armv6m", llvm::Triple::arm) in getArchTypeForMachOArchName()
5750 .Cases("armv7", "armv7em", "armv7k", "armv7m", llvm::Triple::arm) in getArchTypeForMachOArchName()
5751 .Cases("armv7s", "xscale", llvm::Triple::arm) in getArchTypeForMachOArchName()
5752 .Case("arm64", llvm::Triple::aarch64) in getArchTypeForMachOArchName()
5753 .Case("r600", llvm::Triple::r600) in getArchTypeForMachOArchName()
5754 .Case("amdgcn", llvm::Triple::amdgcn) in getArchTypeForMachOArchName()
5755 .Case("nvptx", llvm::Triple::nvptx) in getArchTypeForMachOArchName()
5756 .Case("nvptx64", llvm::Triple::nvptx64) in getArchTypeForMachOArchName()
5757 .Case("amdil", llvm::Triple::amdil) in getArchTypeForMachOArchName()
5758 .Case("spir", llvm::Triple::spir) in getArchTypeForMachOArchName()
5759 .Default(llvm::Triple::UnknownArch); in getArchTypeForMachOArchName()
5762 void darwin::setTripleTypeForMachOArchName(llvm::Triple &T, StringRef Str) { in setTripleTypeForMachOArchName()
5763 llvm::Triple::ArchType Arch = getArchTypeForMachOArchName(Str); in setTripleTypeForMachOArchName()
5769 T.setOS(llvm::Triple::UnknownOS); in setTripleTypeForMachOArchName()
5770 T.setObjectFormat(llvm::Triple::MachO); in setTripleTypeForMachOArchName()
5897 const llvm::Triple &T(getToolChain().getTriple()); in ConstructJob()
5915 if (getToolChain().getArch() == llvm::Triple::x86 || in ConstructJob()
5916 getToolChain().getArch() == llvm::Triple::x86_64 || in ConstructJob()
5920 if (getToolChain().getArch() != llvm::Triple::x86_64 && in ConstructJob()
6412 const llvm::Triple &T = getToolChain().getTriple(); in ConstructJob()
6414 llvm::Triple::ArchType Arch = T.getArch(); in ConstructJob()
6416 case llvm::Triple::x86: in ConstructJob()
6420 case llvm::Triple::x86_64: in ConstructJob()
6520 case llvm::Triple::x86: in ConstructJob()
6526 case llvm::Triple::ppc: in ConstructJob()
6531 case llvm::Triple::sparc: in ConstructJob()
6536 case llvm::Triple::sparcv9: in ConstructJob()
6542 case llvm::Triple::mips64: in ConstructJob()
6543 case llvm::Triple::mips64el: { in ConstructJob()
6551 if (getToolChain().getArch() == llvm::Triple::mips64) in ConstructJob()
6597 if (getToolChain().getArch() == llvm::Triple::mips64) in ConstructJob()
6599 else if (getToolChain().getArch() == llvm::Triple::mips64el) in ConstructJob()
6650 std::string Triple = getToolChain().getTripleString(); in ConstructJob() local
6651 if (Triple.substr(0, 6) == "x86_64") in ConstructJob()
6652 Triple.replace(0, 6, "amd64"); in ConstructJob()
6653 CmdArgs.push_back(Args.MakeArgString("-L/usr/lib/gcc-lib/" + Triple + in ConstructJob()
6820 case llvm::Triple::arm: in ConstructJob()
6823 case llvm::Triple::x86: in ConstructJob()
6826 case llvm::Triple::x86_64: in ConstructJob()
6860 if (getToolChain().getArch() == llvm::Triple::x86) in ConstructJob()
6862 else if (getToolChain().getArch() == llvm::Triple::ppc) in ConstructJob()
6864 else if (getToolChain().getArch() == llvm::Triple::mips || in ConstructJob()
6865 getToolChain().getArch() == llvm::Triple::mipsel || in ConstructJob()
6866 getToolChain().getArch() == llvm::Triple::mips64 || in ConstructJob()
6867 getToolChain().getArch() == llvm::Triple::mips64el) { in ConstructJob()
6878 if (getToolChain().getArch() == llvm::Triple::mips || in ConstructJob()
6879 getToolChain().getArch() == llvm::Triple::mips64) in ConstructJob()
6885 } else if (getToolChain().getArch() == llvm::Triple::arm || in ConstructJob()
6886 getToolChain().getArch() == llvm::Triple::armeb || in ConstructJob()
6887 getToolChain().getArch() == llvm::Triple::thumb || in ConstructJob()
6888 getToolChain().getArch() == llvm::Triple::thumbeb) { in ConstructJob()
6890 const llvm::Triple &Triple = getToolChain().getTriple(); in ConstructJob() local
6891 StringRef FloatABI = arm::getARMFloatABI(D, Args, Triple); in ConstructJob()
6900 case llvm::Triple::GNUEABIHF: in ConstructJob()
6901 case llvm::Triple::GNUEABI: in ConstructJob()
6902 case llvm::Triple::EABI: in ConstructJob()
6909 } else if (getToolChain().getArch() == llvm::Triple::sparc || in ConstructJob()
6910 getToolChain().getArch() == llvm::Triple::sparcv9) { in ConstructJob()
6911 if (getToolChain().getArch() == llvm::Triple::sparc) in ConstructJob()
6972 llvm::Triple::ArchType Arch = ToolChain.getArch(); in ConstructJob()
6973 if (Arch == llvm::Triple::arm || Arch == llvm::Triple::sparc || in ConstructJob()
6974 Arch == llvm::Triple::x86 || Arch == llvm::Triple::x86_64) { in ConstructJob()
6983 if (ToolChain.getArch() == llvm::Triple::x86) { in ConstructJob()
6988 if (ToolChain.getArch() == llvm::Triple::ppc) { in ConstructJob()
7127 case llvm::Triple::x86: in ConstructJob()
7130 case llvm::Triple::arm: in ConstructJob()
7131 case llvm::Triple::armeb: in ConstructJob()
7132 case llvm::Triple::thumb: in ConstructJob()
7133 case llvm::Triple::thumbeb: { in ConstructJob()
7139 case llvm::Triple::mips: in ConstructJob()
7140 case llvm::Triple::mipsel: in ConstructJob()
7141 case llvm::Triple::mips64: in ConstructJob()
7142 case llvm::Triple::mips64el: { in ConstructJob()
7153 if (getToolChain().getArch() == llvm::Triple::mips || in ConstructJob()
7154 getToolChain().getArch() == llvm::Triple::mips64) in ConstructJob()
7163 case llvm::Triple::sparc: in ConstructJob()
7168 case llvm::Triple::sparcv9: in ConstructJob()
7219 case llvm::Triple::x86: in ConstructJob()
7223 case llvm::Triple::arm: in ConstructJob()
7224 case llvm::Triple::thumb: in ConstructJob()
7227 case llvm::Triple::EABI: in ConstructJob()
7228 case llvm::Triple::GNUEABI: in ConstructJob()
7231 case llvm::Triple::EABIHF: in ConstructJob()
7232 case llvm::Triple::GNUEABIHF: in ConstructJob()
7240 case llvm::Triple::armeb: in ConstructJob()
7241 case llvm::Triple::thumbeb: in ConstructJob()
7245 case llvm::Triple::EABI: in ConstructJob()
7246 case llvm::Triple::GNUEABI: in ConstructJob()
7249 case llvm::Triple::EABIHF: in ConstructJob()
7250 case llvm::Triple::GNUEABIHF: in ConstructJob()
7258 case llvm::Triple::mips64: in ConstructJob()
7259 case llvm::Triple::mips64el: in ConstructJob()
7262 if (getToolChain().getArch() == llvm::Triple::mips64) in ConstructJob()
7268 if (getToolChain().getArch() == llvm::Triple::mips64) in ConstructJob()
7274 case llvm::Triple::ppc: in ConstructJob()
7279 case llvm::Triple::ppc64: in ConstructJob()
7280 case llvm::Triple::ppc64le: in ConstructJob()
7285 case llvm::Triple::sparc: in ConstructJob()
7290 case llvm::Triple::sparcv9: in ConstructJob()
7338 case llvm::Triple::aarch64: in ConstructJob()
7339 case llvm::Triple::arm: in ConstructJob()
7340 case llvm::Triple::armeb: in ConstructJob()
7341 case llvm::Triple::thumb: in ConstructJob()
7342 case llvm::Triple::thumbeb: in ConstructJob()
7343 case llvm::Triple::ppc: in ConstructJob()
7344 case llvm::Triple::ppc64: in ConstructJob()
7345 case llvm::Triple::ppc64le: in ConstructJob()
7346 case llvm::Triple::x86: in ConstructJob()
7347 case llvm::Triple::x86_64: in ConstructJob()
7415 case llvm::Triple::x86: in ConstructJob()
7418 case llvm::Triple::x86_64: in ConstructJob()
7419 if (getToolChain().getTriple().getEnvironment() == llvm::Triple::GNUX32) in ConstructJob()
7424 case llvm::Triple::ppc: in ConstructJob()
7429 case llvm::Triple::ppc64: in ConstructJob()
7434 case llvm::Triple::ppc64le: in ConstructJob()
7440 case llvm::Triple::sparc: in ConstructJob()
7445 case llvm::Triple::sparcv9: in ConstructJob()
7450 case llvm::Triple::arm: in ConstructJob()
7451 case llvm::Triple::armeb: in ConstructJob()
7452 case llvm::Triple::thumb: in ConstructJob()
7453 case llvm::Triple::thumbeb: { in ConstructJob()
7454 const llvm::Triple &Triple = getToolChain().getTriple(); in ConstructJob() local
7455 switch (Triple.getSubArch()) { in ConstructJob()
7456 case llvm::Triple::ARMSubArch_v7: in ConstructJob()
7459 case llvm::Triple::ARMSubArch_v8: in ConstructJob()
7468 llvm::Triple(getToolChain().ComputeEffectiveClangTriple(Args))); in ConstructJob()
7485 case llvm::Triple::mips: in ConstructJob()
7486 case llvm::Triple::mipsel: in ConstructJob()
7487 case llvm::Triple::mips64: in ConstructJob()
7488 case llvm::Triple::mips64el: { in ConstructJob()
7520 if (getToolChain().getArch() == llvm::Triple::mips || in ConstructJob()
7521 getToolChain().getArch() == llvm::Triple::mips64) in ConstructJob()
7574 case llvm::Triple::systemz: { in ConstructJob()
7607 static void AddLibgcc(const llvm::Triple &Triple, const Driver &D, in AddLibgcc() argument
7609 bool isAndroid = Triple.getEnvironment() == llvm::Triple::Android; in AddLibgcc()
7642 if (ToolChain.getTriple().getEnvironment() == llvm::Triple::Android) { in getLinuxDynamicLinker()
7647 } else if (ToolChain.getArch() == llvm::Triple::x86 || in getLinuxDynamicLinker()
7648 ToolChain.getArch() == llvm::Triple::sparc) in getLinuxDynamicLinker()
7650 else if (ToolChain.getArch() == llvm::Triple::aarch64) in getLinuxDynamicLinker()
7652 else if (ToolChain.getArch() == llvm::Triple::aarch64_be) in getLinuxDynamicLinker()
7654 else if (ToolChain.getArch() == llvm::Triple::arm || in getLinuxDynamicLinker()
7655 ToolChain.getArch() == llvm::Triple::thumb) { in getLinuxDynamicLinker()
7656 if (ToolChain.getTriple().getEnvironment() == llvm::Triple::GNUEABIHF) in getLinuxDynamicLinker()
7660 } else if (ToolChain.getArch() == llvm::Triple::armeb || in getLinuxDynamicLinker()
7661 ToolChain.getArch() == llvm::Triple::thumbeb) { in getLinuxDynamicLinker()
7662 if (ToolChain.getTriple().getEnvironment() == llvm::Triple::GNUEABIHF) in getLinuxDynamicLinker()
7666 } else if (ToolChain.getArch() == llvm::Triple::mips || in getLinuxDynamicLinker()
7667 ToolChain.getArch() == llvm::Triple::mipsel || in getLinuxDynamicLinker()
7668 ToolChain.getArch() == llvm::Triple::mips64 || in getLinuxDynamicLinker()
7669 ToolChain.getArch() == llvm::Triple::mips64el) { in getLinuxDynamicLinker()
7687 } else if (ToolChain.getArch() == llvm::Triple::ppc) in getLinuxDynamicLinker()
7689 else if (ToolChain.getArch() == llvm::Triple::ppc64) { in getLinuxDynamicLinker()
7693 } else if (ToolChain.getArch() == llvm::Triple::ppc64le) { in getLinuxDynamicLinker()
7697 } else if (ToolChain.getArch() == llvm::Triple::systemz) in getLinuxDynamicLinker()
7699 else if (ToolChain.getArch() == llvm::Triple::sparcv9) in getLinuxDynamicLinker()
7701 else if (ToolChain.getArch() == llvm::Triple::x86_64 && in getLinuxDynamicLinker()
7702 ToolChain.getTriple().getEnvironment() == llvm::Triple::GNUX32) in getLinuxDynamicLinker()
7717 case llvm::Triple::Win32: in AddRunTimeLibs()
7718 case llvm::Triple::Linux: in AddRunTimeLibs()
7729 static const char *getLDMOption(const llvm::Triple &T, const ArgList &Args) { in getLDMOption()
7731 case llvm::Triple::x86: in getLDMOption()
7733 case llvm::Triple::aarch64: in getLDMOption()
7735 case llvm::Triple::aarch64_be: in getLDMOption()
7737 case llvm::Triple::arm: in getLDMOption()
7738 case llvm::Triple::thumb: in getLDMOption()
7740 case llvm::Triple::armeb: in getLDMOption()
7741 case llvm::Triple::thumbeb: in getLDMOption()
7743 case llvm::Triple::ppc: in getLDMOption()
7745 case llvm::Triple::ppc64: in getLDMOption()
7747 case llvm::Triple::ppc64le: in getLDMOption()
7749 case llvm::Triple::sparc: in getLDMOption()
7751 case llvm::Triple::sparcv9: in getLDMOption()
7753 case llvm::Triple::mips: in getLDMOption()
7755 case llvm::Triple::mipsel: in getLDMOption()
7757 case llvm::Triple::mips64: in getLDMOption()
7761 case llvm::Triple::mips64el: in getLDMOption()
7765 case llvm::Triple::systemz: in getLDMOption()
7767 case llvm::Triple::x86_64: in getLDMOption()
7768 if (T.getEnvironment() == llvm::Triple::GNUX32) in getLDMOption()
7785 ToolChain.getTriple().getEnvironment() == llvm::Triple::Android; in ConstructJob()
7813 if (ToolChain.getArch() == llvm::Triple::armeb || in ConstructJob()
7814 ToolChain.getArch() == llvm::Triple::thumbeb) in ConstructJob()
7828 if (ToolChain.getArch() == llvm::Triple::arm || in ConstructJob()
7829 ToolChain.getArch() == llvm::Triple::armeb || in ConstructJob()
7830 ToolChain.getArch() == llvm::Triple::thumb || in ConstructJob()
7831 ToolChain.getArch() == llvm::Triple::thumbeb) in ConstructJob()
7839 if (ToolChain.getArch() == llvm::Triple::arm || in ConstructJob()
7840 ToolChain.getArch() == llvm::Triple::armeb || in ConstructJob()
7841 ToolChain.getArch() == llvm::Triple::thumb || in ConstructJob()
7842 ToolChain.getArch() == llvm::Triple::thumbeb || in ConstructJob()
8054 if (ToolChain.getArch() == llvm::Triple::x86) in ConstructJob()
8056 else if (ToolChain.getArch() == llvm::Triple::arm) in ConstructJob()
8058 else if (ToolChain.getArch() == llvm::Triple::x86_64) in ConstructJob()
8242 if (getToolChain().getArch() == llvm::Triple::x86) in ConstructJob()
8286 if (getToolChain().getArch() == llvm::Triple::x86) { in ConstructJob()
8452 case llvm::Triple::x86: in ConstructJob()
8455 case llvm::Triple::x86_64: in ConstructJob()
8458 case llvm::Triple::arm: in ConstructJob()
8741 case llvm::Triple::arm: in ConstructJob()
8742 case llvm::Triple::thumb: in ConstructJob()
8744 case llvm::Triple::x86: in ConstructJob()
8747 case llvm::Triple::x86_64: in ConstructJob()
8773 const llvm::Triple &T = TC.getTriple(); in ConstructJob()
8800 case llvm::Triple::arm: in ConstructJob()
8801 case llvm::Triple::thumb: in ConstructJob()
8805 case llvm::Triple::x86: in ConstructJob()
8809 case llvm::Triple::x86_64: in ConstructJob()
8817 case llvm::Triple::arm: in ConstructJob()
8818 case llvm::Triple::thumb: in ConstructJob()
8819 case llvm::Triple::x86_64: in ConstructJob()
8822 case llvm::Triple::x86: in ConstructJob()