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

via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 12 09:51:48 PST 2023


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 142e567cf00815f7d1b3d72aaf298212a3f83ab2 b815b9b0a369f308cf24406fa9606cb6e3b1c7e3 -- clang/lib/CodeGen/CGBuiltin.cpp libcxx/test/libcxx/numerics/c.math/constexpr-cxx23-clang.pass.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp
index 7a70015514..b9c752d8d0 100644
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/lib/CodeGen/CGBuiltin.cpp
@@ -154,8 +154,9 @@ llvm::Constant *CodeGenModule::getBuiltinLibFunction(const FunctionDecl *FD,
         F128Builtins.contains(BuiltinID))
       Name = F128Builtins[BuiltinID];
     else if (getTriple().isPPC() && getTriple().isOSLinux() &&
-        &getTarget().getLongDoubleFormat() == &llvm::APFloat::PPCDoubleDouble()
-        && PPCDoubleDoubleBuiltins.contains(BuiltinID))
+             &getTarget().getLongDoubleFormat() ==
+                 &llvm::APFloat::PPCDoubleDouble() &&
+             PPCDoubleDoubleBuiltins.contains(BuiltinID))
       Name = PPCDoubleDoubleBuiltins[BuiltinID];
     else if (getTriple().isOSAIX() &&
              &getTarget().getLongDoubleFormat() ==

``````````

</details>


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


More information about the cfe-commits mailing list