[clang] [clang][CodeGen] Preserve addrspace of enqueue_kernel builtin. (PR #148062)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 10 14:47:16 PDT 2025
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 HEAD~1 HEAD --extensions cl,cpp -- clang/lib/CodeGen/CGBuiltin.cpp clang/test/CodeGenOpenCL/amdgpu-enqueue-kernel.cl
``````````
</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 760842d5c..5f2eb76e7 100644
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/lib/CodeGen/CGBuiltin.cpp
@@ -5987,8 +5987,8 @@ RValue CodeGenFunction::EmitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID,
auto *Zero = llvm::ConstantInt::get(IntTy, 0);
for (unsigned I = First; I < NumArgs; ++I) {
auto *Index = llvm::ConstantInt::get(IntTy, I - First);
- auto *GEP = Builder.CreateGEP(Tmp.getElementType(), Alloca,
- {Zero, Index});
+ auto *GEP =
+ Builder.CreateGEP(Tmp.getElementType(), Alloca, {Zero, Index});
if (I == First)
ElemPtr = GEP;
auto *V =
``````````
</details>
https://github.com/llvm/llvm-project/pull/148062
More information about the cfe-commits
mailing list