[clang] [AMDGPU][Clang] use ScopeModel to translate integer scopes [NFC] (PR #198250)
Sameer Sahasrabuddhe via cfe-commits
cfe-commits at lists.llvm.org
Wed May 20 01:00:32 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).
----------------
ssahasra wrote:
I really haven't thought about it much. It's just a refactor that establishes a consistent handling of scopes for now.
https://github.com/llvm/llvm-project/pull/198250
More information about the cfe-commits
mailing list