Skip to content

Removing shapex.tie_shape and its use in flow.dispatch.workgroups.#7745

Merged
benvanik merged 2 commits intomainfrom
benvanik-flow-ergo-1
Nov 29, 2021
Merged

Removing shapex.tie_shape and its use in flow.dispatch.workgroups.#7745
benvanik merged 2 commits intomainfrom
benvanik-flow-ergo-1

Conversation

@benvanik
Copy link
Copy Markdown
Collaborator

@benvanik benvanik commented Nov 24, 2021

This makes it possible to query the original source/target tensor dims
from the flow.dispatch.tensor.load/store ops and removes the need to
add magic operands that get tied via more magic. Now all shape dimensions
that may be captured are passed as any other operand would be meaning
that the order is now not load-bearing and operand deduplication/elision
all work as expected.

Future changes will clean up the flow.dispatch.tensor type now that it does
not need the shape information and remove the remaining shape ops that
get inserted via the ShapeCarryingOpInterface. This is just part 1/N in
decoupling things so we can iterate on the ergonomics.

@benvanik benvanik added compiler/dialects Relating to the IREE compiler dialects (flow, hal, vm) cleanup 🧹 labels Nov 24, 2021
@google-cla google-cla bot added the cla: yes label Nov 24, 2021
This makes it possible to query the original source/target tensor dims
from the flow.dispatch.tensor.load/store ops and removes the need to
add magic operands that get tied via more magic. Now all shape dimensions
that may be captured are passed as with any other operand would be.
@benvanik benvanik force-pushed the benvanik-flow-ergo-1 branch from a283611 to 6091f98 Compare November 24, 2021 21:59
@benvanik benvanik marked this pull request as ready for review November 24, 2021 22:20
@benvanik benvanik enabled auto-merge November 24, 2021 22:55
@benvanik benvanik disabled auto-merge November 24, 2021 22:55
@benvanik benvanik enabled auto-merge November 24, 2021 22:56
@benvanik benvanik requested a review from ScottTodd November 29, 2021 16:38
@benvanik benvanik merged commit 6d58018 into main Nov 29, 2021
@benvanik benvanik deleted the benvanik-flow-ergo-1 branch November 29, 2021 16:51
@NatashaKnk NatashaKnk mentioned this pull request Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup 🧹 compiler/dialects Relating to the IREE compiler dialects (flow, hal, vm)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants