[clang] [AMDGPU][SPIRV] Use SPIR-V syncscopes for some AMDGCN BIs (PR #154867)
Alex Voicu via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 22 08:18:31 PDT 2025
================
@@ -227,6 +227,12 @@ 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()) {
+ if (scp == "agent")
+ scp = "device";
+ else if (scp == "wavefront")
+ scp = "subgroup";
+ }
----------------
AlexVlx wrote:
Done, thank you.
https://github.com/llvm/llvm-project/pull/154867
More information about the cfe-commits
mailing list