File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
include/mlir/Dialect/StandardOps/IR
lib/Dialect/StandardOps/IR Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1772,7 +1772,9 @@ def Log2Op : FloatUnaryOp<"log2"> {
1772
1772
// MemRefCastOp
1773
1773
//===----------------------------------------------------------------------===//
1774
1774
1775
- def MemRefCastOp : CastOp<"memref_cast"> {
1775
+ def MemRefCastOp : CastOp<"memref_cast", [
1776
+ DeclareOpInterfaceMethods<ViewLikeOpInterface>
1777
+ ]> {
1776
1778
let summary = "memref cast operation";
1777
1779
let description = [{
1778
1780
Syntax:
Original file line number Diff line number Diff line change @@ -1822,6 +1822,8 @@ OpFoldResult LoadOp::fold(ArrayRef<Attribute> cstOperands) {
1822
1822
// MemRefCastOp
1823
1823
// ===----------------------------------------------------------------------===//
1824
1824
1825
+ Value MemRefCastOp::getViewSource () { return source (); }
1826
+
1825
1827
bool MemRefCastOp::areCastCompatible (Type a, Type b) {
1826
1828
auto aT = a.dyn_cast <MemRefType>();
1827
1829
auto bT = b.dyn_cast <MemRefType>();
You can’t perform that action at this time.
0 commit comments