[clang] [llvm] [SPIRV][RFC] Rework / extend support for memory scopes (PR #106429)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 28 21:47:54 PDT 2024
================
@@ -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("");
----------------
arsenm wrote:
Don't query this just to reassign it?
https://github.com/llvm/llvm-project/pull/106429
More information about the cfe-commits
mailing list