mirror of https://github.com/llvm/torch-mlir
eaeb4011e6
This uses an approach inspired by what is done in IREE. See comments on LowerRankedShapes.cpp for how it works. The basic gist is that we have an op that creates a !shape.shape from a set of SSA values representing the extents, and then iteratively replace any op producing a !shape.shape with instances of that op. |
||
---|---|---|
.. | ||
basic.mlir | ||
lower-linalg-tensor-to-memref.mlir | ||
lower-ranked-shapes.mlir | ||
rank1.mlir | ||
resolve-shape-of-ops.mlir | ||
resolve-tensor-load-store-ops.mlir | ||
starting-from-linalg.mlir |