Repository navigation
[Encoding] Rename testing purpose encodings to follow the convention. - #21144
Merged
hanhanW merged 7 commits intoJun 24, 2025
Merged
Conversation
Signed-off-by: hanhanW <[email protected]>
Signed-off-by: hanhanW <[email protected]>
Signed-off-by: hanhanW <[email protected]>
Signed-off-by: hanhanW <[email protected]>
Signed-off-by: hanhanW <[email protected]>
hanhanW
marked this pull request as ready for review
June 19, 2025 22:09
hanhanW
requested review from
IanWood1,
MaheshRavishankar,
benvanik and
bjacob
as code owners
June 19, 2025 22:09
Signed-off-by: hanhanW <[email protected]>
jtuyls
approved these changes
Jun 20, 2025
jtuyls
left a comment
Contributor
There was a problem hiding this comment.
LGTM, just one comment/question
| // CHECK-SAME: %[[ARG1:.[a-zA-Z0-9]+]] | ||
| #encoding = #iree_encoding.unspecialized_encoding<123> | ||
| #encoding1 = #iree_encoding.unspecialized_encoding<456> | ||
| #encoding = #iree_encoding.specialized<123> |
Contributor
There was a problem hiding this comment.
Didn't you rename #iree_encoding.unspecialized_encoding to #iree_encoding.specialization_resolver?
Contributor
Author
There was a problem hiding this comment.
It's a misuse. I identified it when I did the replacements. Let me reflect the change in the PR description, I missed it. (I only had a separate commit mentioned it.)
hanhanW
enabled auto-merge (squash)
June 24, 2025 15:34
AWoloszyn
pushed a commit
that referenced
this pull request
Dec 1, 2025
…#21144) As discussed in #20742, the resolvers should end with `_resolver` suffix, and the encoding is redundant for encoding type attributes. The revision updates the names for testing purpose encodings. Resolver changes: - iree_encoding.identity_encoding -> iree_encoding.identity_resolver - iree_encoding.unsupported_encoding -> iree_encoding.unsupported_resolver - iree_encoding.unspecialized_encoding -> iree_encoding.specialization_resolver Encoding type attribute changes: - iree_encoding.specialized_encoding -> iree_encoding.specialized - iree_encoding.unknown_encoding -> iree_encoding.unknown - iree_encoding.testing_encoding -> iree_encoding.testing The revision also fixes a misuse for `flow.tensor.encode` roundtrip tests in `flow_ops.mlir`, which should use encoding type attributes but not resolvers. It is a step towards #20742 --------- Signed-off-by: hanhanW <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As discussed in #20742, the resolvers should end with
_resolversuffix, and the encoding is redundant for encoding type attributes. The revision updates the names for testing purpose encodings.Resolver changes:
Encoding type attribute changes:
The revision also fixes a misuse for
flow.tensor.encoderoundtrip tests inflow_ops.mlir, which should use encoding type attributes but not resolvers.It is a step towards #20742