[all-commits] [llvm/llvm-project] 3f0f23: [CIR][CMake] Configure MLIR as a dependency-only p...
Mehdi Amini via All-commits
all-commits at lists.llvm.org
Tue Sep 8 01:12:03 PDT 2026
Branch: refs/heads/users/mamini/clang-cir-dependent-mlir
Home: https://github.com/llvm/llvm-project
Commit: 3f0f235b91b1a3929eaed1fd040a0075fecb72ba
https://github.com/llvm/llvm-project/commit/3f0f235b91b1a3929eaed1fd040a0075fecb72ba
Author: Mehdi Amini <joker.eph at gmail.com>
Date: 2026-09-08 (Tue, 08 Sep 2026)
Changed paths:
M clang/CMakeLists.txt
M llvm/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 all MLIR build, install,
unit-test, and lit targets to the corresponding LLVM aggregates.
When Clang is selected and CLANG_ENABLE_CIR is enabled, append MLIR to the
effective LLVM_ENABLE_PROJECTS list. The common project setup compares that
list with the cached user selection, so an explicit MLIR selection retains its
normal behavior while an implicit selection is configured with EXCLUDE_FROM_ALL.
This makes MLIR targets available for CIR dependency resolution without adding
MLIR's aggregate targets. Keep the existing standalone ClangIR restriction and
do not configure MLIR when CIR is disabled.
Validation:
- Configured Clang with CIR and implicit MLIR test support.
- Configured Clang and MLIR explicitly with CIR and tests enabled.
- Configured Clang without CIR and verified that MLIR remains disabled.
- Verified implicit mode omits MLIR unit and lit test-suite targets.
- Verified explicit mode retains check-mlir and MLIRUnitTests.
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