Skip to content

[Codegen] Remove deprecated transform.iree.match_callback tests - #24500

Merged
benvanik merged 1 commit into
iree-org:mainfrom
Alex-Wengg:alex-wengg/24466-remove-match-callback-tests
May 15, 2026
Merged

benvanik merged 1 commit into
iree-org:mainfrom
Alex-Wengg:alex-wengg/24466-remove-match-callback-tests

Conversation

@Alex-Wengg

Copy link
Copy Markdown
Contributor

Part of #24466 (sub-task: remove deprecated tests under compiler/src/iree/compiler/Codegen/Common/test/).

Removes 10 lit tests that depend on the retired transform.iree.match_callback op and its supporting machinery (register_match_callbacks, take_first, emit_remark) from llvm-external-projects/iree-dialects.

  • 7 files use the deprecated op directly
  • 3 driver tests (batch_matmuls.mlir, convolutions.mlir, reductions.mlir) have RUN lines that only invoke the deleted *_spec.mlir files
  • BUILD.bazel and CMakeLists.txt updated to drop matching srcs/exclude/data entries
  • Net diff: 12 files changed, 933 deletions(-), 0 insertions(+)
  • No remaining source-tree references to the deleted files

Removes 10 deprecated lit tests in
compiler/src/iree/compiler/Codegen/Common/test/ that rely on the retired
transform.iree.match_callback op (and the register_match_callbacks /
take_first / emit_remark machinery in llvm-external-projects/iree-dialects)
which is being retired per iree-org#24466.

Deleted files:
  - transform_ops_invalid.mlir
  - transform_match_partial_reduction.mlir
  - repeated_matcher_use.mlir
  - reductions_match_spec.mlir
  - reductions_codegen_spec.mlir
  - convolution_match_spec.mlir
  - batch_matmul_match_spec.mlir
  - batch_matmuls.mlir        (only RUN line invoked the deleted spec)
  - convolutions.mlir         (only RUN line invoked the deleted spec)
  - reductions.mlir           (only RUN lines invoked the deleted specs)

Updated BUILD.bazel and CMakeLists.txt to drop the corresponding srcs,
exclude, and data entries.

Part of iree-org#24466.

Signed-off-by: Alex-Wengg <[email protected]>
@Alex-Wengg
Alex-Wengg marked this pull request as draft May 15, 2026 18:10
@Alex-Wengg
Alex-Wengg marked this pull request as ready for review May 15, 2026 18:13
@benvanik
benvanik merged commit 3f160df into iree-org:main May 15, 2026
62 of 63 checks passed
RattataKing pushed a commit to RattataKing/iree that referenced this pull request May 27, 2026
…-org#24500)

Part of iree-org#24466 (sub-task: remove deprecated tests under
`compiler/src/iree/compiler/Codegen/Common/test/`).

Removes 10 lit tests that depend on the retired
`transform.iree.match_callback` op and its supporting machinery
(`register_match_callbacks`, `take_first`, `emit_remark`) from
`llvm-external-projects/iree-dialects`.

- 7 files use the deprecated op directly
- 3 driver tests (`batch_matmuls.mlir`, `convolutions.mlir`,
`reductions.mlir`) have RUN lines that only invoke the deleted
`*_spec.mlir` files
- `BUILD.bazel` and `CMakeLists.txt` updated to drop matching
srcs/exclude/data entries
- Net diff: 12 files changed, 933 deletions(-), 0 insertions(+)
- No remaining source-tree references to the deleted files

Signed-off-by: Alex-Wengg <[email protected]>
Alex-Wengg added a commit to Alex-Wengg/iree that referenced this pull request May 27, 2026
…ee-org#24466)

Relocate ErrorCheckingTrackingListener into Codegen/Common (namespace mlir::iree_compiler) and repoint its users in the Common and LLVMGPU transform extensions.

Drop the StructuredTransformOpsExtension registration and includes from CommonDialectRegistration and Interfaces: its transform ops (transform.iree.register_match_callbacks/match_callback/take_first/emit_remark) have no production users and their tests were removed in iree-org#24500. Build deps are updated accordingly.

Progress toward retiring the iree-dialects dependency.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Alex-Wengg added a commit to Alex-Wengg/iree that referenced this pull request May 28, 2026
…ee-org#24466)

Relocate ErrorCheckingTrackingListener into Codegen/Common (namespace mlir::iree_compiler) and repoint its users in the Common and LLVMGPU transform extensions.

Drop the StructuredTransformOpsExtension registration and includes from CommonDialectRegistration and Interfaces: its transform ops (transform.iree.register_match_callbacks/match_callback/take_first/emit_remark) have no production users and their tests were removed in iree-org#24500. Build deps are updated accordingly.

Progress toward retiring the iree-dialects dependency.
Alex-Wengg added a commit to Alex-Wengg/iree that referenced this pull request May 28, 2026
…ee-org#24466)

Relocate ErrorCheckingTrackingListener into Codegen/Common (namespace mlir::iree_compiler) and repoint its users in the Common and LLVMGPU transform extensions.

Drop the StructuredTransformOpsExtension registration and includes from CommonDialectRegistration and Interfaces: its transform ops (transform.iree.register_match_callbacks/match_callback/take_first/emit_remark) have no production users and their tests were removed in iree-org#24500. Build deps are updated accordingly.

Progress toward retiring the iree-dialects dependency.

Signed-off-by: Han || Alex <[email protected]>
Alex-Wengg added a commit to Alex-Wengg/iree that referenced this pull request May 28, 2026
…ee-org#24466)

Relocate ErrorCheckingTrackingListener into Codegen/Common (namespace mlir::iree_compiler) and repoint its users in the Common and LLVMGPU transform extensions.

Drop the StructuredTransformOpsExtension registration and includes from CommonDialectRegistration and Interfaces: its transform ops (transform.iree.register_match_callbacks/match_callback/take_first/emit_remark) have no production users and their tests were removed in iree-org#24500. Build deps are updated accordingly.

Progress toward retiring the iree-dialects dependency.

Signed-off-by: Han || Alex <[email protected]>
Alex-Wengg added a commit to Alex-Wengg/iree that referenced this pull request Jun 5, 2026
…ee-org#24466)

Relocate ErrorCheckingTrackingListener into Codegen/Common (namespace mlir::iree_compiler) and repoint its users in the Common and LLVMGPU transform extensions.

Drop the StructuredTransformOpsExtension registration and includes from CommonDialectRegistration and Interfaces: its transform ops (transform.iree.register_match_callbacks/match_callback/take_first/emit_remark) have no production users and their tests were removed in iree-org#24500. Build deps are updated accordingly.

Progress toward retiring the iree-dialects dependency.

Signed-off-by: Han || Alex <[email protected]>
AGindinson pushed a commit that referenced this pull request Jun 19, 2026
…alects (#24466) (#24543)

Closes #24466 (retire the
`llvm-external-projects/iree-dialects`
dependency). Relocates the last two pieces of code that still depended
on the NFC directory. Finishing Tasks 1 & 4.

- **[GlobalOpt] Reimplements the softmax matcher within
`GlobalOptimization/`. Adds `arith.maximumf` support to account for SHLO decompositions.
- **[Codegen] Move ErrorCheckingTrackingListener** into
`Codegen/Common/` and de-register `StructuredTransformOpsExtension` from
`CommonDialectRegistration` and `Interfaces`. Continuation of #24500.
- Removes llvm-external-projects/iree-dialects as a whole

## Testing

Built and lit tested locally on Windows 11 + MSVC 14.44 (VS 2022
Community), Ninja, CMake 3.29, Release with assertions,
`IREE_TARGET_BACKEND_LLVM_CPU=ON`. All changed files compile cleanly.
The softmax lit test
`compiler/src/iree/compiler/GlobalOptimization/test/raise_special_ops.mlir`
passed. all three variants (`@softmax`, `@softmax_no_rcp`,
`@softmax_broadcast`) match correctly through the relocated
`makeSoftmaxMatcher`.

---------

Signed-off-by: Han || Alex <[email protected]>
Signed-off-by: Alex-Wengg <[email protected]>
@devtbi devtbi mentioned this pull request Oct 5, 2026
9 tasks done
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.

2 participants