[clang] [AMDGPU][Clang] use ScopeModel to translate integer scopes [NFC] (PR #198250)
Shilei Tian via cfe-commits
cfe-commits at lists.llvm.org
Tue May 19 09:49:09 PDT 2026
================
@@ -383,6 +383,30 @@ static llvm::AtomicOrdering mapCABIAtomicOrdering(unsigned AO) {
llvm_unreachable("Unknown AtomicOrderingCABI enum");
}
+// Map a __MEMORY_SCOPE_* integer constant to the AMDGPU-specific syncscope.
+// Invalid scope values are mapped to system scope (empty string).
----------------
shiltian wrote:
I understand this is the current behavior, though I wonder whether we should error out instead,
https://github.com/llvm/llvm-project/pull/198250
More information about the cfe-commits
mailing list