Skip to content

Commit 07ec461

Browse files
committed
add unsupported AArch64
1 parent a72a40a commit 07ec461

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

mlir/lib/ExecutionEngine/ExecutionEngine.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@ ExecutionEngine::ExecutionEngine(bool enableObjectDump,
220220

221221
ExecutionEngine::~ExecutionEngine() {
222222
// Execute the global destructors from the module being processed.
223-
if (jit)
223+
// TODO: Allow JIT deinitialize for AArch64. Currently there's a bug causing a
224+
// crash for AArch64 see related issue #71963.
225+
if (jit && !jit->getTargetTriple().isAArch64())
224226
llvm::consumeError(jit->deinitialize(jit->getMainJITDylib()));
225227
// Run all dynamic library destroy callbacks to prepare for the shutdown.
226228
for (LibraryDestroyFn destroy : destroyFns)
@@ -400,7 +402,10 @@ ExecutionEngine::create(Operation *m, const ExecutionEngineOptions &options,
400402
engine->registerSymbols(runtimeSymbolMap);
401403

402404
// Execute the global constructors from the module being processed.
403-
cantFail(engine->jit->initialize(engine->jit->getMainJITDylib()));
405+
// TODO: Allow JIT initialize for AArch64. Currently there's a bug causing a
406+
// crash for AArch64 see related issue #71963.
407+
if (!engine->jit->getTargetTriple().isAArch64())
408+
cantFail(engine->jit->initialize(engine->jit->getMainJITDylib()));
404409

405410
return std::move(engine);
406411
}

mlir/test/mlir-cpu-runner/global-constructors.mlir

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// UNSUPPORTED: target=aarch64{{.*}}
12
// RUN: mlir-cpu-runner %s -e entry -entry-point-result=void \
23
// RUN: -shared-libs=%mlir_c_runner_utils | \
34
// RUN: FileCheck %s

0 commit comments

Comments
 (0)