[clang] [clang][HLSL] Add radians intrinsic (PR #110802)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 2 12:46:46 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 4980f2177e5c1b68afc8249c52523cc0a38ecf1c 8776e6033a64350426e7d7ef05ce0a504357446c --extensions h,cpp -- clang/lib/CodeGen/CGBuiltin.cpp clang/lib/CodeGen/CGHLSLRuntime.h clang/lib/Headers/hlsl/hlsl_intrinsics.h clang/lib/Sema/SemaHLSL.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 6c24c66a81..6a02363bee 100644
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/lib/CodeGen/CGBuiltin.cpp
@@ -18857,8 +18857,9 @@ case Builtin::BI__builtin_hlsl_elementwise_isinf: {
if (!E->getArg(0)->getType()->hasFloatingRepresentation())
llvm_unreachable("radians operand must have a float representation");
return Builder.CreateIntrinsic(
- /*ReturnType=*/Op0->getType(), CGM.getHLSLRuntime().getRadiansIntrinsic(),
- ArrayRef<Value *>{Op0}, nullptr, "hlsl.radians");
+ /*ReturnType=*/Op0->getType(),
+ CGM.getHLSLRuntime().getRadiansIntrinsic(), ArrayRef<Value *>{Op0},
+ nullptr, "hlsl.radians");
}
}
return nullptr;
``````````
</details>
https://github.com/llvm/llvm-project/pull/110802
More information about the cfe-commits
mailing list