[clang] [Clang][AMDGPU] Stop defaulting to `one-as` for all atomic scopes (PR #120095)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 16 17:07:04 PST 2024


================
@@ -537,7 +537,8 @@ AMDGPUTargetCodeGenInfo::getLLVMSyncScopeID(const LangOptions &LangOpts,
     break;
   }
 
-  if (Ordering != llvm::AtomicOrdering::SequentiallyConsistent) {
+  if (LangOpts.OpenCL &&
----------------
arsenm wrote:

If OpenCL wants this funny behavior, they should need to use a different builtin. That said, is OpenCL even using the generic builtin? 

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


More information about the cfe-commits mailing list