[clang] [CIR] Upstream AtomicFenceOp and signal/thread fence builtins (PR #168346)

Sirui Mu via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 22 06:14:54 PST 2025


================
@@ -58,6 +58,28 @@ static RValue emitBuiltinBitOp(CIRGenFunction &cgf, const CallExpr *e,
   return RValue::get(result);
 }
 
+static mlir::Value makeAtomicFenceValue(CIRGenFunction &cgf,
+                                        const CallExpr *expr,
+                                        cir::SyncScopeKind syncScope) {
+  auto &builder = cgf.getBuilder();
----------------
Lancern wrote:

```suggestion
  CIRGenBuilderTy &builder = cgf.getBuilder();
```

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


More information about the cfe-commits mailing list