[clang] [AMDGPU] Lower __builtin_read_exec_hi to use amdgcn_ballot (PR #69567)

via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 19 00:36:38 PDT 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 e63ab13c82e78f65baca48d5b5e4f6ea8d55dbc7 340e633da9e3ab10efc0c0d430b9546cd2f19cfe -- 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 d60826f293f0..4c167fccb619 100644
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/lib/CodeGen/CGBuiltin.cpp
@@ -8004,7 +8004,7 @@ static Value *EmitAMDGCNBallotForExec(CodeGenFunction &CGF, const CallExpr *E,
   llvm::Type *ResultType = CGF.ConvertType(E->getType());
   llvm::Value *Call;
   Function *F;
-  
+
   if (isExecHi) {
     F = CGM.getIntrinsic(Intrinsic::amdgcn_ballot, {RegisterType});
     Call = Builder.CreateCall(F, {Builder.getInt1(true)});

``````````

</details>


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


More information about the cfe-commits mailing list