14 #ifndef MLIR_DIALECT_SHAPE_TRANSFORMS_PASSES_H_
15 #define MLIR_DIALECT_SHAPE_TRANSFORMS_PASSES_H_
20 class ConversionTarget;
31 #include "mlir/Dialect/Shape/Transforms/Passes.h.inc"
59 #define GEN_PASS_REGISTRATION
60 #include "mlir/Dialect/Shape/Transforms/Passes.h.inc"
Include the generated interface declarations.
std::unique_ptr< Pass > createShapeToShapeLowering()
Creates an instance of the ShapeToShapeLowering pass that legalizes Shape dialect to be convertible t...
void populateShapeRewritePatterns(RewritePatternSet &patterns)
Collects a set of patterns to rewrite ops within the Shape dialect.
std::unique_ptr< OperationPass< ModuleOp > > createOutlineShapeComputationPass()
Outline the shape computation part by adding shape.func and populate conrresponding mapping infomatio...
const FrozenRewritePatternSet & patterns
void populateRemoveShapeConstraintsPatterns(RewritePatternSet &patterns)
std::unique_ptr< OperationPass< func::FuncOp > > createRemoveShapeConstraintsPass()