@@ -22,8 +22,6 @@ def TosaLayerwiseConstantFoldPass : Pass<"tosa-layerwise-constant-fold", "func::
22
22
Pass that enables folding of full-layer operations on constant tensors.
23
23
}];
24
24
25
- let constructor = "createTosaLayerwiseConstantFoldPass()";
26
-
27
25
let options = [
28
26
Option<"aggressiveReduceConstant", "aggressive-reduce-constant", "bool",
29
27
/*default=*/"false",
@@ -32,22 +30,22 @@ def TosaLayerwiseConstantFoldPass : Pass<"tosa-layerwise-constant-fold", "func::
32
30
];
33
31
}
34
32
35
- def TosaInferShapes : Pass<"tosa-infer-shapes", "func::FuncOp"> {
33
+ def TosaInferShapesPass : Pass<"tosa-infer-shapes", "func::FuncOp"> {
36
34
let summary = "Propagate shapes across TOSA operations";
37
35
let description = [{
38
36
Pass that uses operand types and propagates shapes to TOSA operations.
39
37
This includes legalizing rankless and dynamic shapes towards static.
40
38
}];
41
39
42
- let constructor = "createTosaInferShapesPass()";
43
40
let dependentDialects = [
44
41
"func::FuncDialect",
45
42
"tensor::TensorDialect",
46
43
"tosa::TosaDialect",
47
44
];
48
45
}
49
46
50
- def TosaMakeBroadcastable : Pass<"tosa-make-broadcastable", "func::FuncOp"> {
47
+ def TosaMakeBroadcastablePass
48
+ : Pass<"tosa-make-broadcastable", "func::FuncOp"> {
51
49
let summary = "TOSA rank Reshape to enable Broadcasting";
52
50
let description = [{
53
51
Pass that enables broadcast by making all input arrays have the same
@@ -56,19 +54,15 @@ def TosaMakeBroadcastable : Pass<"tosa-make-broadcastable", "func::FuncOp"> {
56
54
approach similar to step 1 of Numpy 4-step broadcasting:
57
55
https://numpy.org/doc/stable/reference/ufuncs.html#broadcasting
58
56
}];
59
-
60
- let constructor = "createTosaMakeBroadcastablePass()";
61
57
}
62
58
63
- def TosaOptionalDecompositions
64
- : Pass<"tosa-optional-decompositions", "func::FuncOp"> {
59
+ def TosaOptionalDecompositionsPass
60
+ : Pass<"tosa-optional-decompositions", "func::FuncOp"> {
65
61
let summary = "Applies Tosa operations optional decompositions";
66
62
let description = [{
67
63
Pass to apply the Tosa operations decompositions
68
64
exposed as populate functions in include/mlir/Dialect/Tosa/Transforms/Passes.h
69
65
}];
70
-
71
- let constructor = "tosa::createTosaOptionalDecompositions()";
72
66
}
73
67
74
68
def TosaLevelType : I32EnumAttr<"TosaLevelEnum", "Tosa level",
0 commit comments