[llvm] CodeGen: Fix libcall names for exp10 on the various darwins (PR #92520)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon May 20 11:52:12 PDT 2024
================
@@ -227,6 +227,34 @@ void TargetLoweringBase::InitLibcalls(const Triple &TT) {
CallingConv::ARM_AAPCS_VFP);
}
}
+
+ switch (TT.getOS()) {
+ case Triple::MacOSX:
+ if (TT.isMacOSXVersionLT(10, 9)) {
+ setLibcallName(RTLIB::EXP10_F32, nullptr);
+ setLibcallName(RTLIB::EXP10_F64, nullptr);
+ } else {
+ setLibcallName(RTLIB::EXP10_F32, "__exp10f");
+ setLibcallName(RTLIB::EXP10_F64, "__exp10");
+ }
+ break;
+ case Triple::IOS:
+ case Triple::TvOS:
+ case Triple::WatchOS:
+ case Triple::XROS:
+ if (!TT.isWatchOS() &&
+ (TT.isOSVersionLT(7, 0) || (TT.isOSVersionLT(9, 0) && TT.isX86()))) {
----------------
fhahn wrote:
Can those checks be simplified? Looking at `math.h`, it looks like they should be available on iOS from 7.0 and for any version of tvOS, watchOS and xrOS?
https://github.com/llvm/llvm-project/pull/92520
More information about the llvm-commits
mailing list