Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework LLVM into Find module and enact new component policy. #8379

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

alexreinking
Copy link
Member

Refactor dependencies/llvm into a find module, FindHalide_LLVM.cmake, that encapsulates the way we use LLVM.

As per discussion at the dev meeting and offline with @steven-johnson and @abadams we now always include the GPU backends and all LLVM backends we support. At a minimum, we require WebAssembly and X86, as required by #8344.

The dependencies/ directory is now exclusively for private, optionally vendored dependencies. Going forward, if we need to take a dependency on a project that does not provide a CMake package (and upstream will not agree to a contribution of one), we will write a Find module in cmake/.

In keeping with the pattern of standardizing the names of our configuration points, the Halide_LLVM find module accepts Halide_LLVM_SHARED_LIBS as an argument for picking libLLVM.so/.dylib on Linux/macOS. This replaced the old Halide_SHARED_LLVM option, which is still accepted with a deprecation message.

Note: this commit temporarily breaks Halide_BUNDLE_LLVM, which will be replaced by Halide_BUNDLE_STATIC in the next few CMake advancement PRs.

Our usage of LLVM now requires at least the X86 and WebAssembly
backends. We also now unconditionally enable all backends supported
by the LLVM we found.
@alexreinking alexreinking added the release_notes For changes that may warrant a note in README for official releases. label Aug 9, 2024
@alexreinking
Copy link
Member Author

python_tutorial_lesson_10_aot_compilation_run failure is caused by having Numpy 2 installed on mac-x86-worker-2. The code is wrong anyway. Opened as #8380

Not going to let this block the PR.

@alexreinking alexreinking merged commit 0058528 into main Aug 9, 2024
15 of 16 checks passed
@alexreinking alexreinking deleted the build/find-llvm branch August 9, 2024 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_notes For changes that may warrant a note in README for official releases.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants