[clang] [AMDGPU] Allow overload of __builtin_amdgcn_mov/update_dpp (PR #112447)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 15 15:30:39 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 b0a25468faca32d9db4d35e56fb120ed4eaeec09 761b3e21748dd3a7b53cd0ead745943213317eb4 --extensions cpp -- clang/lib/CodeGen/CGBuiltin.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 22e707ca55..ee12fbc66a 100644
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/lib/CodeGen/CGBuiltin.cpp
@@ -19041,8 +19041,7 @@ Value *CodeGenFunction::EmitAMDGPUBuiltinExpr(unsigned BuiltinID,
llvm::Type *DataTy = ConvertType(E->getArg(0)->getType());
llvm::Type *IntTy = llvm::IntegerType::get(
Builder.getContext(), DataTy->getPrimitiveSizeInBits());
- Function *F =
- CGM.getIntrinsic(Intrinsic::amdgcn_update_dpp, IntTy);
+ Function *F = CGM.getIntrinsic(Intrinsic::amdgcn_update_dpp, IntTy);
assert(E->getNumArgs() == 5 || E->getNumArgs() == 6);
bool InsertOld = E->getNumArgs() == 5;
if (InsertOld)
``````````
</details>
https://github.com/llvm/llvm-project/pull/112447
More information about the cfe-commits
mailing list