Skip to content

[Codegen] Teach MaterializeEncodingIntoPadding about resolved layouts. - #20393

Merged
hanhanW merged 4 commits into
iree-org:mainfrom
hanhanW:rework-resolved-padding-attribute
Mar 31, 2025
Merged

hanhanW merged 4 commits into
iree-org:mainfrom
hanhanW:rework-resolved-padding-attribute

Conversation

@hanhanW

@hanhanW hanhanW commented Mar 26, 2025 •

Copy link
Copy Markdown
Contributor

The revision updates the converted type for MaterializePadEncodingTypeConverter because it should always return the final type of the dialect conversion. In this context, the padding encoding should be dropped for any tensor type, and the binding type should get padded type. Thus, it implements MaterializeInterfaceBindingEncoding pattern for the pass.

It is a step towards #20160, since we now have better understanding about the abstraction.

Fixes #20362

The revision updates the converted type for
MaterializePadEncodingTypeConverter because it should always return the
final types of the dialect conversion. In this context, the padding
encoding should be dropped for any tensor type, and the binding type
should get padded type. Thus, it implements
`MaterializeInterfaceBindingEncoding` pattern for the pass.

It is a step towards iree-org#20160,
since we now have better understanding about the abstraction.

Signed-off-by: hanhanW <[email protected]>
Signed-off-by: hanhanW <[email protected]>
@hanhanW
hanhanW merged commit 5100d36 into iree-org:main Mar 31, 2025
@hanhanW
hanhanW deleted the rework-resolved-padding-attribute branch March 31, 2025 22:21
AWoloszyn pushed a commit that referenced this pull request Dec 1, 2025
#20393)

The revision updates the converted type for
MaterializePadEncodingTypeConverter because it should always return the
final type of the dialect conversion. In this context, the padding
encoding should be dropped for any tensor type, and the binding type
should get padded type. Thus, it implements
`MaterializeInterfaceBindingEncoding` pattern for the pass.

It is a step towards #20160,
since we now have better understanding about the abstraction.

Fixes #20362

---------

Signed-off-by: hanhanW <[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.

[GPU] Failed to materialize encodings for a dispatch in padding approach

2 participants