[clang] [AMDGPU][Clang] Support for type inferring extended image builtins for AMDGPU (PR #164358)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 24 22:48:20 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 origin/main HEAD --extensions cl,cpp,c -- clang/test/CodeGen/builtins-extended-image.c clang/test/SemaOpenCL/builtins-extended-image-param-gfx1100-err.cl clang/test/SemaOpenCL/builtins-extended-image-param-gfx942-err.cl clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp clang/lib/Sema/SemaAMDGPU.cpp clang/test/CodeGen/builtins-image-load.c clang/test/CodeGen/builtins-image-store.c clang/test/SemaOpenCL/builtins-image-load-param-gfx1100-err.cl clang/test/SemaOpenCL/builtins-image-load-param-gfx942-err.cl clang/test/SemaOpenCL/builtins-image-store-param-gfx1100-err.cl clang/test/SemaOpenCL/builtins-image-store-param-gfx942-err.cl --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp b/clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp
index 81daf046e..9eab70955 100644
--- a/clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp
+++ b/clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp
@@ -655,7 +655,7 @@ Value *CodeGenFunction::EmitAMDGPUBuiltinExpr(unsigned BuiltinID,
llvm::Value *Src = EmitScalarExpr(E->getArg(0));
Function *F =
CGM.getIntrinsic(Intrinsic::amdgcn_inverse_ballot, {Src->getType()});
- return Builder.CreateCall(F, { Src });
+ return Builder.CreateCall(F, {Src});
}
case AMDGPU::BI__builtin_amdgcn_tanhf:
case AMDGPU::BI__builtin_amdgcn_tanhh:
``````````
</details>
https://github.com/llvm/llvm-project/pull/164358
More information about the cfe-commits
mailing list