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

Commit 3c855a8

Browse files
authored
Revert "[MLIR] Split ExecutionEngine Initialization out of ctor into an explicit method call" (#153477)
Reverts llvm/llvm-project#153373 Sanitizer bot is broken
1 parent c06f412 commit 3c855a8

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

ExecutionEngineModule.cpp

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "mlir-c/ExecutionEngine.h"
10-
#include "mlir/Bindings/Python/Nanobind.h"
1110
#include "mlir/Bindings/Python/NanobindAdaptors.h"
11+
#include "mlir/Bindings/Python/Nanobind.h"
1212

1313
namespace nb = nanobind;
1414
using namespace mlir;
@@ -124,17 +124,6 @@ NB_MODULE(_mlirExecutionEngine, m) {
124124
},
125125
nb::arg("name"), nb::arg("callback"),
126126
"Register `callback` as the runtime symbol `name`.")
127-
.def(
128-
"initialize",
129-
[](PyExecutionEngine &executionEngine) {
130-
mlirExecutionEngineInitialize(executionEngine.get());
131-
},
132-
"Initialize the ExecutionEngine. Global constructors specified by "
133-
"`llvm.mlir.global_ctors` will be run. One common scenario is that "
134-
"kernel binary compiled from `gpu.module` gets loaded during "
135-
"initialization. Make sure all symbols are resolvable before "
136-
"initialization by calling `raw_register_runtime` or including "
137-
"shared libraries.")
138127
.def(
139128
"dump_to_object_file",
140129
[](PyExecutionEngine &executionEngine, const std::string &fileName) {

0 commit comments

Comments
 (0)