diff --git a/include/mlir-hlo/Dialect/mhlo/IR/lhlo_ops.td b/include/mlir-hlo/Dialect/mhlo/IR/lhlo_ops.td index 9225d02..6e6af20 100644 --- a/include/mlir-hlo/Dialect/mhlo/IR/lhlo_ops.td +++ b/include/mlir-hlo/Dialect/mhlo/IR/lhlo_ops.td @@ -477,7 +477,8 @@ def ReshapeMemRefCastOp: Op(); } + BaseMemRefType getType() { + return getResult().getType().cast(); } }]; let verifier = [{ return Verify(*this); }];