[Mlir-commits] [mlir] [MLIR] Split ExecutionEngine Initialization out of ctor into an explicit method call (PR #153524)
Mehdi Amini
llvmlistbot at llvm.org
Sun Aug 17 02:07:50 PDT 2025
================
@@ -322,4 +322,55 @@ TEST(NativeMemRefJit, MAYBE_JITCallback) {
ASSERT_EQ(elt, coefficient * count++);
}
+static int initCnt = 0;
+// A helper function that will be called during the JIT's initialization.
+static void initCallback() { initCnt += 1; }
+
+TEST(MLIRExecutionEngine, MAYBE_JITCallbackInGlobalCtor) {
+ // TODO: Allow JIT initialize for AArch64. Currently there's a bug causing a
+ // crash for AArch64 see related issue #71963.
+ auto tmBuilderOrError = llvm::orc::JITTargetMachineBuilder::detectHost();
+ ASSERT_TRUE(!!tmBuilderOrError);
+ if (tmBuilderOrError->getTargetTriple().isAArch64()) {
+ return;
----------------
joker-eph wrote:
```suggestion
GTEST_SKIP() << "Skipping global ctor initialization test on Aarch64 because of bug #71963";
return;
```
https://github.com/llvm/llvm-project/pull/153524
More information about the Mlir-commits
mailing list