Skip to content

[Codegen] Support early bufferization ops in ConvertToDPS - #21136

Merged
Max191 merged 2 commits into
iree-org:mainfrom
Max191-agents:early-bufferization-convert-to-dps
Jun 24, 2025
Merged

Max191 merged 2 commits into
iree-org:mainfrom
Max191-agents:early-bufferization-convert-to-dps

Conversation

@Max191

@Max191 Max191 commented Jun 19, 2025

Copy link
Copy Markdown
Contributor

Adds support for iree_codegen.store_to_buffer and iree_codegen.load_from_buffer in ConvertToDestinationPassingStylePass. This is necessary for enabling early bufferization and layout transformation combination in data tiling e2e tests, because scalar dispatches will go down the LLVMGPUBaseLowering pipeline, which uses this pass.

@Max191
Max191 requested a review from hanhanW as a code owner June 19, 2025 13:18
@Max191
Max191 requested a review from MaheshRavishankar June 19, 2025 13:19

@MaheshRavishankar MaheshRavishankar left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, where do we even use this pass. On any of our normal pipelines we shouldnt be needing this. Anyway, if it helps, I can stamp!

@Max191

Max191 commented Jun 24, 2025

Copy link
Copy Markdown
Contributor Author

Wow, where do we even use this pass

It's in the base lowering pipeline. This is only needed for scalar dispatches lol

@MaheshRavishankar

Copy link
Copy Markdown
Collaborator

We probably don't need to use it there

@Max191
Max191 merged commit 9d9880e into iree-org:main Jun 24, 2025
@Max191
Max191 deleted the early-bufferization-convert-to-dps branch June 24, 2025 16:30
AWoloszyn pushed a commit that referenced this pull request Dec 1, 2025
Adds support for `iree_codegen.store_to_buffer` and
`iree_codegen.load_from_buffer` in
`ConvertToDestinationPassingStylePass`. This is necessary for enabling
early bufferization and layout transformation combination in data tiling
e2e tests, because scalar dispatches will go down the
LLVMGPUBaseLowering pipeline, which uses this pass.

---------

Signed-off-by: Max Dawkins <[email protected]>
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.

3 participants