[libcxx] [clang] [PowerPC] Emit libcall to frexpl for calls to frexp(ppcDoublDouble) (PR #75226)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 12 17:39:24 PST 2023


================
@@ -149,6 +153,11 @@ llvm::Constant *CodeGenModule::getBuiltinLibFunction(const FunctionDecl *FD,
         &getTarget().getLongDoubleFormat() == &llvm::APFloat::IEEEquad() &&
         F128Builtins.contains(BuiltinID))
       Name = F128Builtins[BuiltinID];
+    else if (getTriple().isPPC() && getTriple().isOSLinux() &&
+             &getTarget().getLongDoubleFormat() ==
+                 &llvm::APFloat::PPCDoubleDouble() &&
+             PPCDoubleDoubleBuiltins.contains(BuiltinID))
+      Name = PPCDoubleDoubleBuiltins[BuiltinID];
----------------
efriedma-quic wrote:

Does adding this codepath actually change the computed name here?  The default codepath should just chop off the beginning of the string "__builtin_frexpl" to produce the same thing.

https://github.com/llvm/llvm-project/pull/75226


More information about the cfe-commits mailing list