================ @@ -766,8 +766,17 @@ static void EmitAtomicOp(CodeGenFunction &CGF, AtomicExpr *Expr, Address Dest, // LLVM atomic instructions always have synch scope. If clang atomic // expression has no scope operand, use default LLVM synch scope. if (!ScopeModel) { + llvm::SyncScope::ID SS = CGF.getLLVMContext().getOrInsertSyncScopeID(""); + if (CGF.getLangOpts().OpenCL) + // OpenCL approach is: "The functions that do not have memory_scope ---------------- arsenm wrote:
Which flavor of atomic operations does this function correspond to? https://github.com/llvm/llvm-project/pull/106429 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits