================
@@ -60,9 +60,9 @@ static RValue emitBuiltinBitOp(CIRGenFunction &cgf, const 
CallExpr *e,
   return RValue::get(result);
 }
 
-static mlir::Value makeAtomicFenceValue(CIRGenFunction &cgf,
-                                        const CallExpr *expr,
-                                        cir::SyncScopeKind syncScope) {
+static mlir::Value makeAtomicFenceOpValue(CIRGenFunction &cgf,
----------------
Luhaocong wrote:

What do you think of this adjustment?
```
// Define:
static RValue emitAtomicFenceOp(xxxx) {
  ......
  return RValue::get(nullptr);
}
```

```
// Reference:
  case Builtin::BI__atomic_thread_fence:
    return emitAtomicFenceOp(*this, e, cir::SyncScopeKind::System);
  case Builtin::BI__atomic_signal_fence:
    return emitAtomicFenceOp(*this, e, cir::SyncScopeKind::SingleThread);
```

https://github.com/llvm/llvm-project/pull/171248
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to