Skip to content

Commit b502ab6

Browse files
committed
[mlir][python] source line info
1 parent 4775b96 commit b502ab6

File tree

6 files changed

+1116
-0
lines changed

6 files changed

+1116
-0
lines changed

mlir/lib/Bindings/Python/MainModule.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "NanobindUtils.h"
1313
#include "Pass.h"
1414
#include "Rewrite.h"
15+
#include "Traceback.h"
1516
#include "mlir/Bindings/Python/Nanobind.h"
1617

1718
namespace nb = nanobind;
@@ -105,6 +106,7 @@ NB_MODULE(_mlir, m) {
105106
"typeid"_a, nb::kw_only(), "replace"_a = false,
106107
"Register a value caster for casting MLIR values to custom user values.");
107108

109+
BuildTracebackSubmodule(m);
108110
// Define and populate IR submodule.
109111
auto irModule = m.def_submodule("ir", "MLIR IR Bindings");
110112
populateIRCore(irModule);

0 commit comments

Comments
 (0)