Skip to content

[NFC][Codegen] Rename early bufferization op operands - #20874

Merged
Max191 merged 1 commit into
iree-org:mainfrom
Max191-agents:rename-early-bufferization-op-operands
May 21, 2025
Merged

Max191 merged 1 commit into
iree-org:mainfrom
Max191-agents:rename-early-bufferization-op-operands

Conversation

@Max191

@Max191 Max191 commented May 21, 2025 •

Copy link
Copy Markdown
Contributor

Rename the operands of the iree_codegen.load_from_memref/store_to_memref ops to make them more aligned with each other. This improves readability, and makes writing templated patterns easier.

  • iree_codegen.load_from_memref: rename source -> buffer, and result -> tensor
  • iree_codegen.store_to_memref: rename target -> buffer, and value -> tensor

@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.

Is buffer better than memref? I think recently upstream had a similar change.

llvm/llvm-project@8f91b10

@Max191

Max191 commented May 21, 2025

Copy link
Copy Markdown
Contributor Author

Is buffer better than memref? I think recently upstream had a similar change.

llvm/llvm-project@8f91b10

I like that idea, I'll change it to buffer!

@Max191
Max191 force-pushed the rename-early-bufferization-op-operands branch from 7739902 to 37655aa Compare May 21, 2025 19:30

@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.

Please update the PR description before you land it. LGTM!

@Max191
Max191 merged commit 9789fe6 into iree-org:main May 21, 2025
@Max191
Max191 deleted the rename-early-bufferization-op-operands branch May 21, 2025 20:35
ziereis pushed a commit to ziereis/iree that referenced this pull request May 22, 2025
Rename the operands of the iree_codegen.load_from_memref/store_to_memref
ops to make them more aligned with each other. This improves
readability, and makes writing templated patterns easier.
- `iree_codegen.load_from_memref`: rename `source -> buffer`, and
`result -> tensor`
- `iree_codegen.store_to_memref`: rename `target -> buffer`, and `value
-> tensor`

Signed-off-by: Max Dawkins <[email protected]>
Signed-off-by: Thomas Ziereis <[email protected]>
@hanhanW

hanhanW commented May 22, 2025

Copy link
Copy Markdown
Contributor

I have a second thought after I saw that you land the PR. Do we rename the operation name for consistency?

  • load_from_memref -> load_from_buffer
  • store_to_memref -> store_to_buffer

@Max191

Max191 commented May 22, 2025

Copy link
Copy Markdown
Contributor Author

Do we rename the operation name for consistency?

Sure, I can send a followup.

AWoloszyn pushed a commit that referenced this pull request Dec 1, 2025
Rename the operands of the iree_codegen.load_from_memref/store_to_memref
ops to make them more aligned with each other. This improves
readability, and makes writing templated patterns easier.
- `iree_codegen.load_from_memref`: rename `source -> buffer`, and
`result -> tensor`
- `iree_codegen.store_to_memref`: rename `target -> buffer`, and `value
-> tensor`

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.

2 participants