From 2449fa0294ab761dbc7df1359a6bb61407001a25 Mon Sep 17 00:00:00 2001 From: "halide-ci[bot]" <266445882+halide-ci[bot]@users.noreply.github.com> Date: Sun, 19 Apr 2026 06:39:53 +0000 Subject: [PATCH 1/2] Upgrade halide-llvm to 23.0.0.dev89730+g2c6ce151 --- uv.lock | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/uv.lock b/uv.lock index 5378521336cd..7e56cb2c3ed2 100644 --- a/uv.lock +++ b/uv.lock @@ -178,7 +178,7 @@ ci-llvm-22 = [ ] ci-llvm-main = [ { name = "cmake" }, - { name = "halide-llvm", version = "23.0.0.dev89217+g8a69fb09", source = { registry = "https://pypi.halide-lang.org/simple" } }, + { name = "halide-llvm", version = "23.0.0.dev89730+g2c6ce151", source = { registry = "https://pypi.halide-lang.org/simple" } }, { name = "ninja" }, { name = "onnx", marker = "platform_machine != 'armv7l' and platform_machine != 'armv8l'" }, { name = "pre-commit" }, @@ -346,7 +346,7 @@ wheels = [ [[package]] name = "halide-llvm" -version = "23.0.0.dev89217+g8a69fb09" +version = "23.0.0.dev89730+g2c6ce151" source = { registry = "https://pypi.halide-lang.org/simple" } resolution-markers = [ "(python_full_version >= '3.11' and platform_machine == 'armv7l' and sys_platform != 'armv7l' and sys_platform != 'armv8l') or (python_full_version >= '3.11' and platform_machine == 'armv8l' and sys_platform != 'armv7l' and sys_platform != 'armv8l')", @@ -363,14 +363,14 @@ resolution-markers = [ "(python_full_version < '3.11' and platform_machine != 'armv7l' and platform_machine != 'armv8l' and sys_platform == 'armv7l') or (python_full_version < '3.11' and platform_machine != 'armv7l' and platform_machine != 'armv8l' and sys_platform == 'armv8l')", ] wheels = [ - { url = "https://pypi.halide-lang.org/packages/halide_llvm-23.0.0.dev89217+g8a69fb09-py3-none-macosx_11_0_arm64.whl", hash = "sha256:39fd54cfc1eacdacc7f2340d6c72788bef3f1de5a495f3788b7fe4de04892dc0" }, - { url = "https://pypi.halide-lang.org/packages/halide_llvm-23.0.0.dev89217+g8a69fb09-py3-none-macosx_11_0_x86_64.whl", hash = "sha256:3ceb15870f757a80d5a9a707e1ff85623a922c11a21e2ec4a0cd481afd73f3d3" }, - { url = "https://pypi.halide-lang.org/packages/halide_llvm-23.0.0.dev89217+g8a69fb09-py3-none-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2a6b2aeb7191d35a919f6bab170661c8a306ebcb7aa62cbf3f60038128a3ccb9" }, - { url = "https://pypi.halide-lang.org/packages/halide_llvm-23.0.0.dev89217+g8a69fb09-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f44ab0f7a173e26a61b2054d6e0f7e43aa1b7dc372919b0afc3b1dbcfd5d6a08" }, - { url = "https://pypi.halide-lang.org/packages/halide_llvm-23.0.0.dev89217+g8a69fb09-py3-none-manylinux_2_28_i686.whl", hash = "sha256:9557dcef263a1a1706f3bed440e045a79e0ecf1dc8e68d9762306417921bfb94" }, - { url = "https://pypi.halide-lang.org/packages/halide_llvm-23.0.0.dev89217+g8a69fb09-py3-none-manylinux_2_31_armv7l.whl", hash = "sha256:72243af4a271e0e912417f30d66bad1c7b52a266bba7be246015d6fd9939a2c1" }, - { url = "https://pypi.halide-lang.org/packages/halide_llvm-23.0.0.dev89217+g8a69fb09-py3-none-win32.whl", hash = "sha256:123743f8c0c48d4385e50f1ad3c1b529073767d1e541e051540c6375751c6753" }, - { url = "https://pypi.halide-lang.org/packages/halide_llvm-23.0.0.dev89217+g8a69fb09-py3-none-win_amd64.whl", hash = "sha256:ee71dac300f76f07c4505525d2fd790b9b4371a013d2979c2f1bb446fcc3f077" }, + { url = "https://pypi.halide-lang.org/packages/halide_llvm-23.0.0.dev89730+g2c6ce151-py3-none-macosx_11_0_arm64.whl", hash = "sha256:c8209c90fbeb76ff9cadf329447a243726d068043d82d6351776e7f5de7073e1" }, + { url = "https://pypi.halide-lang.org/packages/halide_llvm-23.0.0.dev89730+g2c6ce151-py3-none-macosx_11_0_x86_64.whl", hash = "sha256:bf53b3d856433a33df6d95b7ee069ba91635f88aab9eff23326deec19cfb3dec" }, + { url = "https://pypi.halide-lang.org/packages/halide_llvm-23.0.0.dev89730+g2c6ce151-py3-none-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:750d69ed2e4185b3ae56aeb7da0367d24e934ffaface33dc157ae32a56254c37" }, + { url = "https://pypi.halide-lang.org/packages/halide_llvm-23.0.0.dev89730+g2c6ce151-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1859feb7a1f90a4e549ef417e2d5e9524361e4c8ced613f93a99f2edd7dba5f3" }, + { url = "https://pypi.halide-lang.org/packages/halide_llvm-23.0.0.dev89730+g2c6ce151-py3-none-manylinux_2_28_i686.whl", hash = "sha256:64c423914d306f74bbb911706c80bb38c0d274fbea8ecbde6fea4b5e6f08da90" }, + { url = "https://pypi.halide-lang.org/packages/halide_llvm-23.0.0.dev89730+g2c6ce151-py3-none-manylinux_2_31_armv7l.whl", hash = "sha256:960b7dc83f00e9d6b38f1a292c10367ecb85bba6e60a5f816d81d6e0e992b0e2" }, + { url = "https://pypi.halide-lang.org/packages/halide_llvm-23.0.0.dev89730+g2c6ce151-py3-none-win32.whl", hash = "sha256:601dc0301699857e9a89c57825532441dad56f5e01ce7e866b8006afcd2219cb" }, + { url = "https://pypi.halide-lang.org/packages/halide_llvm-23.0.0.dev89730+g2c6ce151-py3-none-win_amd64.whl", hash = "sha256:f96fbc968b363169d76b599bd5321b7d09b725d0f90e8704a6c6d7ccc39ded95" }, ] [[package]] From 2a291bbb6d4666eb6448a521d7ea2193789fe42d Mon Sep 17 00:00:00 2001 From: Alex Reinking Date: Tue, 21 Apr 2026 17:50:27 -0400 Subject: [PATCH 2/2] Fix JITModule build against LLVM 23 ObjectLinkingLayerCreator LLVM 23 threads a jitlink::JITLinkMemoryManager& argument through LLJITBuilderState::ObjectLinkingLayerCreator (llvm-project b78e9faa7026). Add the new parameter to both linker builder lambdas, gated on LLVM_VERSION >= 230. --- src/JITModule.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/JITModule.cpp b/src/JITModule.cpp index cc88e69a7dbc..586f8f1b0052 100644 --- a/src/JITModule.cpp +++ b/src/JITModule.cpp @@ -408,13 +408,23 @@ void compile_module_impl( // i386: "JIT session error: Unsupported i386 relocation:4" (R_386_PLT32) // ARM 32bit: Unsupported target machine architecture in ELF object shared runtime-jitted-objectbuffer // Windows 64-bit: JIT session error: could not register eh-frame: __register_frame function not found - linkerBuilder = [&](llvm::orc::ExecutionSession &session) { + linkerBuilder = [&](llvm::orc::ExecutionSession &session +#if LLVM_VERSION >= 230 + , + llvm::jitlink::JITLinkMemoryManager & +#endif + ) { return std::make_unique(session, [&](const llvm::MemoryBuffer &) { return std::make_unique(dependencies); }); }; } else { - linkerBuilder = [](llvm::orc::ExecutionSession &session) { + linkerBuilder = [](llvm::orc::ExecutionSession &session +#if LLVM_VERSION >= 230 + , + llvm::jitlink::JITLinkMemoryManager & +#endif + ) { return std::make_unique(session); }; }