[clang] Emit constrained atan2 intrinsic for clang builtin (PR #113636)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 24 19:58:41 PDT 2024
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 c03d09ce3eed336fea4d9283232383f6d4d4057d b5a4c777280873e9827bb812b95cad32fbf6b7f4 --extensions cpp,c -- clang/lib/CodeGen/CGBuiltin.cpp clang/test/CodeGen/X86/math-builtins.c clang/test/CodeGen/constrained-math-builtins.c clang/test/CodeGen/libcalls.c clang/test/CodeGen/math-libcalls.c clang/test/CodeGenCXX/builtin-calling-conv.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 0bec8f3255..c420b473b1 100644
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/lib/CodeGen/CGBuiltin.cpp
@@ -2733,7 +2733,8 @@ RValue CodeGenFunction::EmitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID,
case Builtin::BI__builtin_atan2l:
case Builtin::BI__builtin_atan2f128:
return RValue::get(emitBinaryMaybeConstrainedFPBuiltin(
- *this, E, Intrinsic::atan2, Intrinsic::experimental_constrained_atan2));
+ *this, E, Intrinsic::atan2,
+ Intrinsic::experimental_constrained_atan2));
case Builtin::BIceil:
case Builtin::BIceilf:
``````````
</details>
https://github.com/llvm/llvm-project/pull/113636
More information about the cfe-commits
mailing list