Skip to content
This repository was archived by the owner on Oct 11, 2025. It is now read-only.

Commit 96ca718

Browse files
authored
[mlir] Add Python bindings to enable default passmanager timing (#149087)
1 parent d8be6d0 commit 96ca718

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Pass.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ void mlir::python::populatePassManagerSubmodule(nb::module_ &m) {
112112
mlirPassManagerEnableVerifier(passManager.get(), enable);
113113
},
114114
"enable"_a, "Enable / disable verify-each.")
115+
.def(
116+
"enable_timing",
117+
[](PyPassManager &passManager) {
118+
mlirPassManagerEnableTiming(passManager.get());
119+
},
120+
"Enable pass timing.")
115121
.def_static(
116122
"parse",
117123
[](const std::string &pipeline, DefaultingPyMlirContext context) {

0 commit comments

Comments
 (0)