================
@@ -72,19 +71,19 @@ static mlir::Value makeAtomicFenceValue(CIRGenFunction &cgf,
// TODO(cir): Emit code to switch on `orderingVal`,
// and creating the fence op for valid values.
cgf.cgm.errorNYI("Variable atomic fence ordering");
- return {};
+ return;
}
auto constOrderingAttr = constOrdering.getValueAttr<cir::IntAttr>();
assert(constOrderingAttr && "Expected integer constant for ordering");
auto ordering = static_cast<cir::MemOrder>(constOrderingAttr.getUInt());
- cir::AtomicFence::create(
+ cir::AtomicFenceOp::create(
builder, cgf.getLoc(expr->getSourceRange()), ordering,
cir::SyncScopeKindAttr::get(&cgf.getMLIRContext(), syncScope));
- return {};
+ return;
----------------
Luhaocong wrote:
done
https://github.com/llvm/llvm-project/pull/171248
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits