|
11 | 11 |
|
12 | 12 | include "mlir/Pass/PassBase.td"
|
13 | 13 |
|
14 |
| -def OutlineShapeComputation : Pass<"outline-shape-computation", "ModuleOp"> { |
| 14 | +def OutlineShapeComputationPass |
| 15 | + : Pass<"outline-shape-computation", "ModuleOp"> { |
15 | 16 | let summary = "Using shape.func to preserve shape computation";
|
16 | 17 | let description = [{
|
17 | 18 | This pass outlines the shape computation part in high level IR by adding
|
@@ -89,18 +90,16 @@ def OutlineShapeComputation : Pass<"outline-shape-computation", "ModuleOp"> {
|
89 | 90 | // - Shape for: %1 = "test.concat"(%0, %arg1) {axis = 0 : i64} : (tensor<?x4x?xf32>, tensor<2x4x?xf32>) -> tensor<?x4x?xf32> :: @shape_cal_1(<block argument> of type 'tensor<?x4x?xf32>' at index: 0)
|
90 | 91 | ```
|
91 | 92 | }];
|
92 |
| - let constructor = "mlir::createOutlineShapeComputationPass()"; |
93 | 93 | let dependentDialects = ["shape::ShapeDialect"];
|
94 | 94 | }
|
95 | 95 |
|
96 |
| -def RemoveShapeConstraints : Pass<"remove-shape-constraints", "func::FuncOp"> { |
| 96 | +def RemoveShapeConstraintsPass |
| 97 | + : Pass<"remove-shape-constraints", "func::FuncOp"> { |
97 | 98 | let summary = "Replace all cstr_ ops with a true witness";
|
98 |
| - let constructor = "mlir::createRemoveShapeConstraintsPass()"; |
99 | 99 | }
|
100 | 100 |
|
101 |
| -def ShapeToShapeLowering : Pass<"shape-to-shape-lowering", "func::FuncOp"> { |
| 101 | +def ShapeToShapeLoweringPass : Pass<"shape-to-shape-lowering", "func::FuncOp"> { |
102 | 102 | let summary = "Legalize Shape dialect to be convertible to Arith";
|
103 |
| - let constructor = "mlir::createShapeToShapeLowering()"; |
104 | 103 | }
|
105 | 104 |
|
106 | 105 | #endif // MLIR_DIALECT_SHAPE_TRANSFORMS_PASSES
|
0 commit comments