Skip to content

feat: expose affine emitter controls - #1332

Merged
godofecht merged 8 commits into
mainfrom
codex/affine-emitter-cli
Oct 6, 2026
Merged

godofecht merged 8 commits into
mainfrom
codex/affine-emitter-cli

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Wires the existing compiler affine lowering controls into flow-to-mlir: --affine, --tile-size, and --tile-l2-size. Adds validation and an end-to-end Flow test proving affine.for emission and two-level tiling. Part of #665.

godofecht and others added 2 commits October 5, 2026 11:41
Forward --affine, --tile-size, and --tile-l2-size from flow mlir to
flow-to-mlir, reject out-of-range tiles before emission, and keep
command-line values ahead of inherited FLOWC_MLIR_* environment
variables. Document the flags and cover the user-facing path.

Co-authored-by: Abhishek Shivakumar <[email protected]>
@cursor
cursor Bot force-pushed the codex/affine-emitter-cli branch from 923de7e to 252b085 Compare October 5, 2026 11:43
flow mlir requires the program first and still checks for mlir-opt
before emission. Prove the new flags are parsed, and keep the
end-to-end IR check for runners that have the tools.

Co-authored-by: Abhishek Shivakumar <[email protected]>
tools/flow_cli/mlir_tools.flow: kept main's --register-tile-intrinsics,
--aosoa-bank-count and --aosoa-swizzle-width flags (and its
parse_bounded_decimal helper) next to this branch's --affine,
--tile-size and --tile-l2-size; valid_positive_bounded now uses
parse_bounded_decimal. mlir_affine 7/7, mlir_pipeline 32/32,
mlir_register_tiles 11/11 pass.
@godofecht
godofecht merged commit 6525d81 into main Oct 6, 2026
42 checks passed
@godofecht
godofecht deleted the codex/affine-emitter-cli branch October 12, 2026 23:02
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