Skip to content

[NFC] Remove the llvm-external-projects/iree-dialects directory (#24466)#24612

Open
Alex-Wengg wants to merge 2 commits into
iree-org:mainfrom
Alex-Wengg:retire-iree-dialects-final
Open

[NFC] Remove the llvm-external-projects/iree-dialects directory (#24466)#24612
Alex-Wengg wants to merge 2 commits into
iree-org:mainfrom
Alex-Wengg:retire-iree-dialects-final

Conversation

@Alex-Wengg

@Alex-Wengg Alex-Wengg commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Overview

Removes the llvm-external-projects/iree-dialects directory now that nothing in the compiler or runtime depends on it.

This is the final step of #24466. The production dependencies were retired in #24543 and predecessors:

  • the softmax matcher was reimplemented natively in GlobalOptimization/RaiseSpecialOps,
  • ErrorCheckingTrackingListener was moved into Codegen/Common/,
  • DropSchedulePass was moved into Codegen/Common/,
  • the callback-matcher transform ops (transform.iree.register_match_callbacks / match_callback / take_first / emit_remark) and their tests were dropped.

Changes

  • Delete llvm-external-projects/iree-dialects/.
  • Drop the iree_llvm_add_external_project(mlir-iree-dialects ...) call from the top-level CMakeLists.txt.
  • Remove the dead iree-dialects target conversion from bazel_to_cmake.
  • Drop the IREEDialects* Python sources + include path from compiler/bindings/python/CMakeLists.txt, the _ireeDialects CMakeExtension from compiler/setup.py, and the iree_dialects.rst API doc.
  • Remove the iree-dialects-doc build step from the website doc generator.
  • Remove the "Test iree-dialects" CI steps and the check-iree-dialects targets from the ASan/UBSan scripts (and the now-unused test_iree_dialects.sh).

Testing

  • Local (Windows + MSVC, Ninja, Release): CMake configure is clean after the external-project removal only stablehlo remains as an external LLVM project and a full-tree grep finds zero dangling references. The full iree-opt target builds, links, and runs (iree-opt --version → LLVM 23.0.0git).

…4466)

All production code paths that depended on iree-dialects have been retired
(iree-org#24543 and predecessors): the softmax matcher and ErrorCheckingTrackingListener
were reimplemented in-tree, DropSchedulePass was moved into Codegen/Common, and
the callback-matcher transform ops and their tests were dropped. Nothing in the
compiler or runtime references iree-dialects any longer.

This removes the now-empty shell directory and unwires it from the build:

- delete llvm-external-projects/iree-dialects/ (standalone iree-dialects-opt
  tool, Python bindings, lit test harness, build files)
- drop the iree_llvm_add_external_project(mlir-iree-dialects ...) call in the
  top-level CMakeLists.txt
- remove the dead iree-dialects target conversion from bazel_to_cmake
- drop the IREEDialects* Python sources and include path from the compiler
  Python bindings, and the iree_dialects.rst API doc
- remove the iree-dialects-doc build step from the website doc generator
- remove the "Test iree-dialects" CI steps and the check-iree-dialects targets
  from the ASan/UBSan scripts (and the now-unused test_iree_dialects.sh)
- drop the CODEOWNERS, .gitignore, and README references

Signed-off-by: Alex-Wengg <hanweng9@gmail.com>
@Alex-Wengg Alex-Wengg marked this pull request as ready for review June 19, 2026 18:25
@Alex-Wengg Alex-Wengg changed the title Remove the llvm-external-projects/iree-dialects directory (#24466) [NFC] Remove the llvm-external-projects/iree-dialects directory (#24466) Jun 19, 2026
@Alex-Wengg Alex-Wengg force-pushed the retire-iree-dialects-final branch from 23d73e0 to 108dadf Compare June 19, 2026 18:35
compiler/setup.py still declared the iree.compiler._mlir_libs._ireeDialects
CMakeExtension after this PR removed the sources that built it. With
IREE_BUILD_PYTHON_BINDINGS=ON the wheel build iterates ext_modules and tries
to link _ireeDialects with no inputs, so gcc fails ("no input files") and the
iree-base-compiler wheel build errors out. Remove the dead extension entry.

Signed-off-by: Alex-Wengg <hanweng9@gmail.com>
@Alex-Wengg Alex-Wengg force-pushed the retire-iree-dialects-final branch from 108dadf to e11559a Compare June 19, 2026 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant