File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ void mlir::python::populatePassManagerSubmodule(nb::module_ &m) {
160
160
" Add textual pipeline elements to the pass manager. Throws a "
161
161
" ValueError if the pipeline can't be parsed." )
162
162
.def (
163
- " add_python_pass " ,
163
+ " add " ,
164
164
[](PyPassManager &passManager, const nb::callable &run,
165
165
std::optional<std::string> &name, const std::string &argument,
166
166
const std::string &description, const std::string &opName) {
Original file line number Diff line number Diff line change @@ -78,10 +78,10 @@ def __call__(self, m):
78
78
79
79
# CHECK: hello from pass 1!!!
80
80
# CHECK-LABEL: Dump After custom_pass_1
81
- pm .add_python_pass (custom_pass_1 )
81
+ pm .add (custom_pass_1 )
82
82
# CHECK-LABEL: Dump After CustomPass2
83
83
# CHECK: arith.muli
84
- pm .add_python_pass (custom_pass_2 , "CustomPass2" )
84
+ pm .add (custom_pass_2 , "CustomPass2" )
85
85
# CHECK-LABEL: Dump After ArithToLLVMConversionPass
86
86
# CHECK: llvm.mul
87
87
pm .add ("convert-arith-to-llvm" )
You can’t perform that action at this time.
0 commit comments