Skip to content

Implement AoSoA padding and swizzling - #1373

Merged
godofecht merged 1 commit into
mainfrom
fix-667-aosoa-2580765514093792106
Oct 5, 2026
Merged

godofecht merged 1 commit into
mainfrom
fix-667-aosoa-2580765514093792106

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Closes #667. Supersedes #1331.


PR created automatically by Jules for task 2580765514093792106 started by @godofecht

Implemented Array of Structs of Arrays (AoSoA) memory layout transformations with compile-time conflict-free memory padding and swizzled indexing for the MLIR backend.

- Added `--aosoa-pad` and `--aosoa-pad-auto` for power-of-two extent padding.
- Added `--aosoa-bank-count` to customize automatic padding behavior.
- Added `--aosoa-swizzle` and `--aosoa-swizzle-width` for swizzled indexing generation via bitwise shifts and xor logic.
- Generated updated `flowc_stage_a.c` to reflect modified compilation routines.
- Expanded `mlir_aosoa` test suite covering bounds validation, edge cases, and CLI bindings.

Co-authored-by: godofecht <[email protected]>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@godofecht
godofecht merged commit ba25179 into main Oct 5, 2026
41 checks passed
@godofecht
godofecht deleted the fix-667-aosoa-2580765514093792106 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.

[MLIR Opt] Automatic memory layout transformations (AoSoA and conflict padding)

1 participant