Skip to content

mlir: automatic AoSoA memory layout transformation (#667) - #891

Merged
godofecht merged 1 commit into
mainfrom
harvest/667-aosoa
Sep 12, 2026
Merged

godofecht merged 1 commit into
mainfrom
harvest/667-aosoa

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Advances #667. Adds an AoSoA layout canonicalization (mlir_canonicalize.py) that rewrites struct-of-arrays access patterns structurally in the IR, wired through the generator with a --no-aosoa opt-out. Ships a benchmark and unit tests; 210 MLIR/transpiler tests pass. The spurious regenerated bootstrap C was dropped (only Python-host files changed). Conflict-padding remains, so the issue stays open.

Add an AoSoA layout canonicalization in mlir_canonicalize.py that rewrites
struct-of-arrays access patterns structurally in the IR (not by editing
emitted text), wired through the generator with a --no-aosoa opt-out.
Ships a benchmark and unit tests; 210 MLIR/transpiler tests pass.
Incremental step on the memory-layout-transforms issue.

Co-Authored-By: Claude <[email protected]>
@godofecht
godofecht merged commit 121bf59 into main Sep 12, 2026
2 checks passed
@godofecht
godofecht deleted the harvest/667-aosoa branch October 1, 2026 12:49
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