[clang] [AMDGPU][SPIRV] Use SPIR-V syncscopes for some AMDGCN BIs (PR #154867)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 10 06:57:31 PDT 2025
================
@@ -227,6 +235,8 @@ void CodeGenFunction::ProcessOrderScopeAMDGCN(Value *Order, Value *Scope,
// Some of the atomic builtins take the scope as a string name.
StringRef scp;
if (llvm::getConstantStringInfo(Scope, scp)) {
+ if (getTarget().getTriple().isSPIRV())
----------------
grantchen08 wrote:
can we switch to a table-like approach to make this part of code more readable?
or just call the mapping function just once after the original switch statement?
https://github.com/llvm/llvm-project/pull/154867
More information about the cfe-commits
mailing list