[all-commits] [llvm/llvm-project] c5ccb0: [CIR][CMake] Configure MLIR as a dependency-only p...
Mehdi Amini via All-commits
all-commits at lists.llvm.org
Wed Sep 9 07:44:35 PDT 2026
Branch: refs/heads/users/mamini/clang-cir-dependent-mlir
Home: https://github.com/llvm/llvm-project
Commit: c5ccb0569bfc36059120592c23766d4832c1616b
https://github.com/llvm/llvm-project/commit/c5ccb0569bfc36059120592c23766d4832c1616b
Author: Mehdi Amini <joker.eph at gmail.com>
Date: 2026-09-09 (Wed, 09 Sep 2026)
Changed paths:
M clang/CMakeLists.txt
M clang/cmake/modules/CMakeLists.txt
M clang/cmake/modules/ClangConfig.cmake.in
M llvm/CMakeLists.txt
M mlir/CMakeLists.txt
Log Message:
-----------
[CIR][CMake] Configure MLIR as a dependency-only project
ClangIR requires MLIR, but enabling CIR currently requires users to list MLIR
explicitly in LLVM_ENABLE_PROJECTS. That also attaches unrelated MLIR build,
install, unit-test, and lit targets to LLVM aggregates.
When Clang and CIR are selected, append MLIR to the effective project list
and mark it dependency-only. An explicit MLIR selection retains its normal
build, test, and install behavior.
Export and install only MLIR targets reachable from the Clang SDK, together
with the headers needed by those targets. Enable MLIR test-support libraries
when CIR tests need them without registering the MLIR test suite.
Keep the existing standalone ClangIR restriction, and leave MLIR disabled
when CIR is disabled.
Validation:
- Configured Clang with CIR and implicit dependency-only MLIR.
- Configured Clang and MLIR explicitly with CIR enabled.
- Configured Clang without CIR and verified that MLIR remains disabled.
- Verified the implicit graph omits standalone MLIR tools and its test suite.
Assisted-by: Codex
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list