Skip to content

[NFC] Rename load_from/store_to_memref to load_from/store_to_buffer - #20897

Merged
Max191 merged 1 commit into
iree-org:mainfrom
Max191-agents:load-from-store-to-memref-to-buffer
May 27, 2025
Merged

Max191 merged 1 commit into
iree-org:mainfrom
Max191-agents:load-from-store-to-memref-to-buffer

Conversation

@Max191

@Max191 Max191 commented May 23, 2025

Copy link
Copy Markdown
Contributor

Renames iree_codegen.load_from_memref to iree_codegen.load_from_buffer, and iree_codegen.store_to_memref to iree_codegen.store_to_buffer for consistency with the op definition.

@qedawkins qedawkins left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why not just update the op description? memref is very clear to me.

@Max191

Max191 commented May 23, 2025

Copy link
Copy Markdown
Contributor Author

Why not just update the op description? memref is very clear to me.

This is more consistent with recent changes upstream: llvm/llvm-project@8f91b10

@hanhanW hanhanW left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I may make a bad suggestion in the previous review because I did not fully follow the upstream RFC: #20874 (review) I threw out the question because I recently saw the change.

I don't have a strong opinion about if it should be memref or buffer. People can have their custom buffer type system that does not use memref, and I think it is the idea of the upstream change. We might not have a real use case, so it may be an over-design idea. I think I'm more like looking for consistency, so I had the second comment about it: #20874 (comment)

It can be either memref or buffer, and I'll let you make the call.

@Max191

Max191 commented May 27, 2025

Copy link
Copy Markdown
Contributor Author

I like the consistency with upstream, so I will make the change from memref to buffer.

@Max191
Max191 merged commit b3128ba into iree-org:main May 27, 2025
@Max191
Max191 deleted the load-from-store-to-memref-to-buffer branch May 27, 2025 18:42
AWoloszyn pushed a commit that referenced this pull request Dec 1, 2025
…20897)

Renames `iree_codegen.load_from_memref` to
`iree_codegen.load_from_buffer`, and `iree_codegen.store_to_memref` to
`iree_codegen.store_to_buffer` for consistency with the op definition.

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