Skip to content

Comments

Implement Hash for attributes and types#778

Merged
raviqqe merged 2 commits intomlir-rs:mainfrom
0xddom:hash-attrs-types
Jan 1, 2026
Merged

Implement Hash for attributes and types#778
raviqqe merged 2 commits intomlir-rs:mainfrom
0xddom:hash-attrs-types

Conversation

@0xddom
Copy link
Contributor

@0xddom 0xddom commented Jan 1, 2026

This PR adds implementations for std::hash::Hash for Attribute, Type and their corresponding subtypes. Since attributes and types are uniquely stored in the MLIR context it should be enough to hash the pointer to them.

Edit: For some reason, commits from a previous PR I did (#753) popped up here. Fixing it.

@0xddom 0xddom force-pushed the hash-attrs-types branch 2 times, most recently from 758420a to 5e08fc9 Compare January 1, 2026 10:19
@raviqqe
Copy link
Member

raviqqe commented Jan 1, 2026

Thanks for the changes!

@raviqqe raviqqe merged commit fb0b067 into mlir-rs:main Jan 1, 2026
16 checks passed
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