-
Notifications
You must be signed in to change notification settings - Fork 41
✨ Initial implementation of the mqtdyn
Dialect
#900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…uctures Courtesy of @ystade who implemented this first, this commit only copies their work.
I haven't really looked through the code in detail, but in general I would argue that we are currently at a point where we should really try to find the cleanest possible design for what we plan to do. Right now, the code base is still small enough and has no dependents so that we can (more or less) easily make big breaking changes. With every PR that grows the MLIR part, this becomes harder and harder. If I am not mistaken, traits and interfaces are not necessarily bound to a particular dialect, are they? So we could be sharing (elements of) them across dialects? |
…t is already covered by the NoTarget trait
…ications to common traits
… for Alloc and Extract to CommonTraits
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @DRovara 👋🏻
Thanks for all your work on this. This is looking great.
All the feedback is truly minor and should be easy to address.
Looking forward to merging this once everything is addressed 🙂
And to try to reduce the duplication a little more across these files.
…re into mlir/feat/mqt-ref-dialect
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great. Just one more minor nit.
Co-authored-by: Lukas Burgholzer <[email protected]> Signed-off-by: Damian Rovara <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great 👍🏻 thanks for also adding the Changelog entry 🙂
Description
This pull request migrates the incomplete implementation of the
mqtdyn
Dialect from the internal repository and finishes the implementation.The initial implementation was done by @ystade.
It also contains one initial transformation pass,
constant-folding
, to set up the transformation infrastructure.At the same time, it also defines
CommonTraits.td
/CommonTraits.h
, a collection of Traits that are applicable even outside the bounds of a single dialect. These traits replace verification methods of indiidual operations to reduce duplicate code.There is still sole degree of code duplication. This will be further explored in a later PR.
Checklist: