Repository navigation
Migrate IREE dialects to strict properties - #24983
Merged
Merged
Conversation
Migrate Codegen, VectorExt, Flow, HAL, LinalgExt, Stream, Util, and VM following llvm/llvm-project@c495a9b796c4. Keep inherent properties separate from discardable attributes in assembly, fixtures, and generators, with custom and generic roundtrip coverage. Assisted-by: Codex
Retain native properties during generic reconstruction and equivalence checks. Preserve contraction casts and indexing, attention configuration, PCF synchronization, and LLVM function metadata through rewrites. Add regressions for properties that were silently dropped or ignored. Assisted-by: Codex
Let MLIR clone properties, attributes, regions, and successors before applying type-conversion changes. Use its native property comparator for cast-compatible matching. Retain IREE's symbol-name exceptions and cast-compatible type semantics. Assisted-by: Codex
Assisted-by: Codex
Seed upstream builders with the complete property struct while regenerating scalar bodies for converted operands. Assisted-by: Codex
jschuhmacher
requested review from
AGindinson,
Groverkss,
Manewing,
Yu-Zhewen,
benvanik,
chrsmcgrr,
devtbi,
egebeysel,
hanhanW,
jtuyls,
krzysz00,
kuhar,
maxbartel,
mbknust,
phemashekar,
rsuderman,
schuermans-roofline,
sommerlukas,
ziereis and
zjgarvey
as code owners
October 1, 2026 20:03
krzysz00
reviewed
Oct 1, 2026
Contributor
Author
|
Thanks for the hints @krzysz00! I went over the upstream migration issue llvm/llvm-project#155475 and the linked documents, I think it should be properly migrated now. |
krzysz00
reviewed
Oct 3, 2026
krzysz00
left a comment
Contributor
There was a problem hiding this comment.
Minor notes, but my reviews of the .cpp changes look reasonable
Will come back next week for more if no one's chimed in.
This is a weak approve
| return attr; | ||
| } | ||
| Type newType = converter.convertType(typedAttr.getType()); | ||
| if (!newType) { |
Contributor
There was a problem hiding this comment.
I'm not sure this is the logic you're wanting? I think you want return attr for float attributes, non-integer attributes, shaped attributes that don't contain integers, and so on.
| } | ||
| if (auto noInline = stdFuncOp.getNoInlineAttr()) { | ||
| llvmFuncOp.setNoInlineAttr(noInline); | ||
| } |
Contributor
There was a problem hiding this comment.
I'm saving this as an example for why we need a generic API for this
Signed-off-by: Jelle Schühmacher <[email protected]>
Contributor
Author
|
@krzysz00 Thanks for the help! |
ziereis
added a commit
that referenced
this pull request
Oct 12, 2026
The IREE dialects moved to strict properties in #24983, so the parser no longer accepts the inherent attributes of quantize_affine and dequantize_affine in an attribute dictionary. Rewrite the test inputs and CHECK patterns to the <...> property syntax. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Thomas Ziereis <[email protected]>
TMahlatini
added a commit
to TMahlatini/iree
that referenced
this pull request
Oct 15, 2026
…sts. Write the RVV f16 inner_tiled test ops with the `<...>` inherent-attribute syntax from iree-org#24983 so they parse. Signed-off-by: Terence <[email protected]> Co-authored-by: Cursor <[email protected]>
7 of 8 tasks
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.
LLVM deprecated the legacy assembly treatment of attributes in llvm/llvm-project@c495a9b796c4. IREE temporarily opted eight dialects out during the LLVM integrate; this change removes those opt-outs and migrates them to strict properties.
Update Codegen, VectorExt, Flow, HAL, LinalgExt, Stream, Util, and VM assembly formats, fixtures, examples, and generators. Add roundtrip coverage distinguishing properties from discardable attributes.
Assisted-by: Codex