[clang] [CIR] Add scoped atomic load operation (PR #171134)

Sirui Mu via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 9 05:45:32 PST 2025


================
@@ -399,20 +399,14 @@ static void emitAtomicCmpXchgFailureSet(CIRGenFunction &cgf, AtomicExpr *e,
 static void emitAtomicOp(CIRGenFunction &cgf, AtomicExpr *expr, Address dest,
                          Address ptr, Address val1, Address val2,
                          Expr *isWeakExpr, Expr *failureOrderExpr, int64_t size,
-                         cir::MemOrder order) {
-  std::unique_ptr<AtomicScopeModel> scopeModel = expr->getScopeModel();
-  if (scopeModel) {
----------------
Lancern wrote:

Updated. Aligned CIRGen code structure with the classic CG.

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


More information about the cfe-commits mailing list