[clang] [NFC][clang][AMDGPU] Build fence scope triple from enums (PR #237228)

Arseniy Obolenskiy via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 3 01:10:39 PST 2026


================
@@ -385,7 +385,9 @@ static Value *emitFPIntBuiltin(CodeGenFunction &CGF,
 // target by parsing as AMDGPU and re-emitting it.
 static inline StringRef mapScopeToSPIRV(const llvm::Triple &TargetTriple,
                                         StringRef AMDGCNScope) {
-  static const llvm::Triple AMDGPU("amdgcn-amd-amdhsa");
+  static const llvm::Triple AMDGPU(llvm::Triple::amdgpu,
----------------
aobolensk wrote:

Done, both codegen paths now use the new parseAMDGPUAtomicScopeIRString helper instead of a triple

https://github.com/llvm/llvm-project/pull/237228


More information about the cfe-commits mailing list