[clang] [AMDGPU][Clang] add __builtin_amdgcn_av_(load|store)_b128 (PR #199176)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 2 04:29:26 PDT 2026
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 cpp,cl,h -- clang/test/CodeGenOpenCL/builtins-amdgcn-global-load-store.cl clang/test/SemaOpenCL/builtins-amdgcn-global-load-store-error.cl clang/test/SemaOpenCL/builtins-amdgcn-global-load-store-target-error.cl clang/include/clang/Sema/SemaAMDGPU.h clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp clang/lib/Sema/SemaAMDGPU.cpp --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/Sema/SemaAMDGPU.cpp b/clang/lib/Sema/SemaAMDGPU.cpp
index cf412a94c..328a12d5e 100644
--- a/clang/lib/Sema/SemaAMDGPU.cpp
+++ b/clang/lib/Sema/SemaAMDGPU.cpp
@@ -475,13 +475,13 @@ static bool checkScopeAsInt(SemaAMDGPU &S, Expr *Scope) {
return false;
auto ScopeModel = AtomicScopeModel::create(AtomicScopeModelKind::Generic);
if (std::optional<llvm::APSInt> Result =
- Scope->getIntegerConstantExpr(S.SemaRef.Context)) {
+ Scope->getIntegerConstantExpr(S.SemaRef.Context)) {
if (!ScopeModel->isValid(Result->getZExtValue())) {
return S.Diag(Scope->getBeginLoc(),
diag::err_atomic_op_has_invalid_sync_scope)
<< Scope->getSourceRange();
}
- }
+ }
return false;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/199176
More information about the cfe-commits
mailing list