[clang] [CIR] Add support for calling virtual functions (PR #153893)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 18 06:56:35 PDT 2025
================
@@ -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
More information about the cfe-commits
mailing list