Lines Matching refs:FloatABI

745 arm::FloatABI arm::getARMFloatABI(const ToolChain &TC, const ArgList &Args) {  in getARMFloatABI()
749 arm::FloatABI ABI = FloatABI::Invalid; in getARMFloatABI()
754 ABI = FloatABI::Soft; in getARMFloatABI()
756 ABI = FloatABI::Hard; in getARMFloatABI()
758 ABI = llvm::StringSwitch<arm::FloatABI>(A->getValue()) in getARMFloatABI()
759 .Case("soft", FloatABI::Soft) in getARMFloatABI()
760 .Case("softfp", FloatABI::SoftFP) in getARMFloatABI()
761 .Case("hard", FloatABI::Hard) in getARMFloatABI()
762 .Default(FloatABI::Invalid); in getARMFloatABI()
763 if (ABI == FloatABI::Invalid && !StringRef(A->getValue()).empty()) { in getARMFloatABI()
765 ABI = FloatABI::Soft; in getARMFloatABI()
772 ABI == FloatABI::Hard) { in getARMFloatABI()
779 if (ABI == FloatABI::Invalid) { in getARMFloatABI()
786 ABI = (SubArch == 6 || SubArch == 7) ? FloatABI::SoftFP : FloatABI::Soft; in getARMFloatABI()
787 ABI = Triple.isWatchABI() ? FloatABI::Hard : ABI; in getARMFloatABI()
791 ABI = FloatABI::Hard; in getARMFloatABI()
796 ABI = FloatABI::Hard; in getARMFloatABI()
802 ABI = FloatABI::Hard; in getARMFloatABI()
806 ABI = FloatABI::Soft; in getARMFloatABI()
816 ABI = FloatABI::Hard; in getARMFloatABI()
822 ABI = FloatABI::SoftFP; in getARMFloatABI()
825 ABI = (SubArch == 7) ? FloatABI::SoftFP : FloatABI::Soft; in getARMFloatABI()
831 ABI = FloatABI::Hard; in getARMFloatABI()
833 ABI = FloatABI::Soft; in getARMFloatABI()
843 assert(ABI != FloatABI::Invalid && "must select an ABI"); in getARMFloatABI()
856 arm::FloatABI ABI = arm::getARMFloatABI(TC, Args); in getARMTargetFeatures()
874 if (ABI == arm::FloatABI::Soft) in getARMTargetFeatures()
878 if (ABI != arm::FloatABI::Hard) in getARMTargetFeatures()
962 if (ABI == arm::FloatABI::Soft) { in getARMTargetFeatures()
1085 arm::FloatABI ABI = arm::getARMFloatABI(getToolChain(), Args); in AddARMTargetArgs()
1086 if (ABI == arm::FloatABI::Soft) { in AddARMTargetArgs()
1092 } else if (ABI == arm::FloatABI::SoftFP) { in AddARMTargetArgs()
1098 assert(ABI == arm::FloatABI::Hard && "Invalid float abi!"); in AddARMTargetArgs()
1313 static mips::FloatABI getMipsFloatABI(const Driver &D, const ArgList &Args) { in getMipsFloatABI()
1314 mips::FloatABI ABI = mips::FloatABI::Invalid; in getMipsFloatABI()
1319 ABI = mips::FloatABI::Soft; in getMipsFloatABI()
1321 ABI = mips::FloatABI::Hard; in getMipsFloatABI()
1323 ABI = llvm::StringSwitch<mips::FloatABI>(A->getValue()) in getMipsFloatABI()
1324 .Case("soft", mips::FloatABI::Soft) in getMipsFloatABI()
1325 .Case("hard", mips::FloatABI::Hard) in getMipsFloatABI()
1326 .Default(mips::FloatABI::Invalid); in getMipsFloatABI()
1327 if (ABI == mips::FloatABI::Invalid && !StringRef(A->getValue()).empty()) { in getMipsFloatABI()
1329 ABI = mips::FloatABI::Hard; in getMipsFloatABI()
1335 if (ABI == mips::FloatABI::Invalid) { in getMipsFloatABI()
1339 ABI = mips::FloatABI::Hard; in getMipsFloatABI()
1342 assert(ABI != mips::FloatABI::Invalid && "must select an ABI"); in getMipsFloatABI()
1369 mips::FloatABI FloatABI = getMipsFloatABI(D, Args); in getMIPSTargetFeatures() local
1370 if (FloatABI == mips::FloatABI::Soft) { in getMIPSTargetFeatures()
1423 } else if (mips::shouldUseFPXX(Args, Triple, CPUName, ABIName, FloatABI)) { in getMIPSTargetFeatures()
1446 mips::FloatABI ABI = getMipsFloatABI(D, Args); in AddMIPSTargetArgs()
1447 if (ABI == mips::FloatABI::Soft) { in AddMIPSTargetArgs()
1454 assert(ABI == mips::FloatABI::Hard && "Invalid float abi!"); in AddMIPSTargetArgs()
1574 ppc::FloatABI FloatABI = ppc::getPPCFloatABI(D, Args); in getPPCTargetFeatures() local
1575 if (FloatABI == ppc::FloatABI::Soft && in getPPCTargetFeatures()
1579 else if (FloatABI == ppc::FloatABI::Soft && in getPPCTargetFeatures()
1590 ppc::FloatABI ppc::getPPCFloatABI(const Driver &D, const ArgList &Args) { in getPPCFloatABI()
1591 ppc::FloatABI ABI = ppc::FloatABI::Invalid; in getPPCFloatABI()
1596 ABI = ppc::FloatABI::Soft; in getPPCFloatABI()
1598 ABI = ppc::FloatABI::Hard; in getPPCFloatABI()
1600 ABI = llvm::StringSwitch<ppc::FloatABI>(A->getValue()) in getPPCFloatABI()
1601 .Case("soft", ppc::FloatABI::Soft) in getPPCFloatABI()
1602 .Case("hard", ppc::FloatABI::Hard) in getPPCFloatABI()
1603 .Default(ppc::FloatABI::Invalid); in getPPCFloatABI()
1604 if (ABI == ppc::FloatABI::Invalid && !StringRef(A->getValue()).empty()) { in getPPCFloatABI()
1606 ABI = ppc::FloatABI::Hard; in getPPCFloatABI()
1612 if (ABI == ppc::FloatABI::Invalid) { in getPPCFloatABI()
1613 ABI = ppc::FloatABI::Hard; in getPPCFloatABI()
1655 ppc::FloatABI FloatABI = in AddPPCTargetArgs() local
1658 if (FloatABI == ppc::FloatABI::Soft) { in AddPPCTargetArgs()
1665 assert(FloatABI == ppc::FloatABI::Hard && "Invalid float abi!"); in AddPPCTargetArgs()
1705 sparc::FloatABI sparc::getSparcFloatABI(const Driver &D, in getSparcFloatABI()
1707 sparc::FloatABI ABI = sparc::FloatABI::Invalid; in getSparcFloatABI()
1712 ABI = sparc::FloatABI::Soft; in getSparcFloatABI()
1714 ABI = sparc::FloatABI::Hard; in getSparcFloatABI()
1716 ABI = llvm::StringSwitch<sparc::FloatABI>(A->getValue()) in getSparcFloatABI()
1717 .Case("soft", sparc::FloatABI::Soft) in getSparcFloatABI()
1718 .Case("hard", sparc::FloatABI::Hard) in getSparcFloatABI()
1719 .Default(sparc::FloatABI::Invalid); in getSparcFloatABI()
1720 if (ABI == sparc::FloatABI::Invalid && in getSparcFloatABI()
1723 ABI = sparc::FloatABI::Hard; in getSparcFloatABI()
1733 if (ABI == sparc::FloatABI::Invalid) { in getSparcFloatABI()
1734 ABI = sparc::FloatABI::Hard; in getSparcFloatABI()
1742 sparc::FloatABI FloatABI = sparc::getSparcFloatABI(D, Args); in getSparcTargetFeatures() local
1743 if (FloatABI == sparc::FloatABI::Soft) in getSparcTargetFeatures()
1749 sparc::FloatABI FloatABI = in AddSparcTargetArgs() local
1752 if (FloatABI == sparc::FloatABI::Soft) { in AddSparcTargetArgs()
1759 assert(FloatABI == sparc::FloatABI::Hard && "Invalid float abi!"); in AddSparcTargetArgs()
7286 StringRef ABIName, mips::FloatABI FloatABI) { in isFPXXDefault() argument
7297 if (FloatABI == mips::FloatABI::Soft) in isFPXXDefault()
7309 mips::FloatABI FloatABI) { in shouldUseFPXX() argument
7310 bool UseFPXX = isFPXXDefault(Triple, CPUName, ABIName, FloatABI); in shouldUseFPXX()
8442 arm::FloatABI ABI = arm::getARMFloatABI(getToolChain(), Args); in ConstructJob()
8444 if (ABI == arm::FloatABI::Hard) in ConstructJob()
9047 case arm::FloatABI::Invalid: llvm_unreachable("must have an ABI!"); in ConstructJob()
9048 case arm::FloatABI::Soft: in ConstructJob()
9051 case arm::FloatABI::SoftFP: in ConstructJob()
9054 case arm::FloatABI::Hard: in ConstructJob()