Skip to content

Migrate IREE dialects to strict properties - #24983

Merged
jschuhmacher merged 11 commits into
mainfrom
users/jschuhmacher/strict-properties
Oct 7, 2026
Merged

jschuhmacher merged 11 commits into
mainfrom
users/jschuhmacher/strict-properties

Conversation

@jschuhmacher

Copy link
Copy Markdown
Contributor

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

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
Seed upstream builders with the complete property struct while regenerating scalar bodies for converted operands.

Assisted-by: Codex

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

A few notes

@jschuhmacher

Copy link
Copy Markdown
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 krzysz00 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.

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) {

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.

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);
}

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.

I'm saving this as an example for why we need a generic API for this

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

Looks fine to me

@jschuhmacher

Copy link
Copy Markdown
Contributor Author

@krzysz00 Thanks for the help!

@jschuhmacher
jschuhmacher merged commit 1d34a28 into main Oct 7, 2026
54 of 61 checks passed
@jschuhmacher
jschuhmacher deleted the users/jschuhmacher/strict-properties branch October 7, 2026 11:21
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]>
@devtbi devtbi mentioned this pull request Oct 19, 2026
7 of 8 tasks
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