================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits