Skip to content

Commit 436c6c9

Browse files
NFC: Break up the mlir python bindings into individual sources.
* IRModules.cpp -> (IRCore.cpp, IRAffine.cpp, IRAttributes.cpp, IRTypes.cpp). * The individual pieces now compile in the 5-15s range whereas IRModules.cpp was starting to approach a minute (didn't capture a before time). * More fine grained splitting is possible, but this represents the most obvious. Differential Revision: https://reviews.llvm.org/D98978
1 parent 94c269b commit 436c6c9

File tree

9 files changed

+2394
-2318
lines changed

9 files changed

+2394
-2318
lines changed

mlir/lib/Bindings/Python/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ add_mlir_python_extension(MLIRCoreBindingsPythonExtension _mlir
7070
python
7171
SOURCES
7272
MainModule.cpp
73-
IRModules.cpp
73+
IRAffine.cpp
74+
IRAttributes.cpp
75+
IRCore.cpp
76+
IRTypes.cpp
7477
PybindUtils.cpp
7578
Pass.cpp
7679
ExecutionEngine.cpp

mlir/lib/Bindings/Python/ExecutionEngine.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#include "ExecutionEngine.h"
1010

11-
#include "IRModules.h"
11+
#include "IRModule.h"
1212
#include "mlir-c/Bindings/Python/Interop.h"
1313
#include "mlir-c/ExecutionEngine.h"
1414

0 commit comments

Comments
 (0)