================ @@ -157,6 +157,19 @@ class CIRBaseBuilderTy : public mlir::OpBuilder { return create<cir::ComplexImagOp>(loc, operandTy.getElementType(), operand); } + cir::LoadOp createLoad(mlir::Location loc, mlir::Value ptr, + uint64_t alignment = 0) { + mlir::IntegerAttr alignmentAttr = getAlignmentAttr(alignment); + assert(!cir::MissingFeatures::opLoadStoreVolatile()); + assert(!cir::MissingFeatures::opLoadStoreMemOrder()); + return create<cir::LoadOp>(loc, ptr, /*isDeref=*/false, alignmentAttr); ---------------- erichkeane wrote:
Since you bugged me about it before, should this be `cir::LoadOp::Create`? https://github.com/llvm/llvm-project/pull/153893 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits