Skip to content

[NFC] Refactor reduction emitter to be macro-based#320

Merged
IanWood1 merged 2 commits intoiree-org:mainfrom
IanWood1:refactor_reduction_emitter
Apr 8, 2026
Merged

[NFC] Refactor reduction emitter to be macro-based#320
IanWood1 merged 2 commits intoiree-org:mainfrom
IanWood1:refactor_reduction_emitter

Conversation

@IanWood1
Copy link
Copy Markdown
Member

@IanWood1 IanWood1 commented Apr 7, 2026

Extract schema templates and dispatch macros for the reduction ASM emitter, matching the pattern used by the pointwise emitter. Also reformats the integration test GENERATE list to one mode per line, matching the pointwise cleanup in #296.

Extract schema templates and dispatch macros for the reduction ASM
emitter, matching the pattern used by the pointwise emitter. This
makes adding new reduction modes a one-line change.

Also reformats the integration test GENERATE list to one mode per line
with clang-format guards, matching the pointwise cleanup in
iree-org#296.

No behavior change — emitted MLIR is byte-identical.

Signed-off-by: Ian Wood <ianwood@u.northwestern.edu>
@IanWood1
Copy link
Copy Markdown
Member Author

IanWood1 commented Apr 8, 2026

#325

@IanWood1 IanWood1 closed this Apr 8, 2026
@rsuderman rsuderman reopened this Apr 8, 2026
@IanWood1 IanWood1 enabled auto-merge (squash) April 8, 2026 18:38
@IanWood1 IanWood1 merged commit 8e95c34 into iree-org:main Apr 8, 2026
10 checks passed
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