-
Notifications
You must be signed in to change notification settings - Fork 71
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
[WIP] Experiments in e-graphs in IR #3113
base: main
Are you sure you want to change the base?
Conversation
…ng input example (#3185) This PR tries to address #3180 * Uncommented non-working examples (which require features from future PRs * Minimized the example for swapping inputs * Formatted the code --------- Co-authored-by: Jianyi Cheng <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3113 +/- ##
========================================
Coverage 90.20% 90.20%
========================================
Files 459 462 +3
Lines 57603 57912 +309
Branches 5559 5583 +24
========================================
+ Hits 51961 52241 +280
- Misses 4197 4216 +19
- Partials 1445 1455 +10 ☔ View full report in Codecov by Sentry. |
- [x] Add initial Python rewrite (for learning & documentation) - [ ] Add the corresponding PDL rewrite --------- Co-authored-by: Jianyi Cheng <[email protected]> Co-authored-by: Sasha Lopoukhine <[email protected]>
): | ||
owner = xdsl_val.owner | ||
assert isinstance(owner, eqsat.EClassOp) | ||
assert ( |
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.
I guess this will no longer be true after the first rewrite, i.e. an eclass may have more than one operand?
Not sure if I am looking at the right PR but it seems there is no test on eqsatpdl... Is this expected? @superlopuh Happy to write one by myself if there isn't one. |
This is the everything PR, it would definitely be useful to add tests, but especially in the PRs that take bits of code from here that we think are ready and merge to main |
CC @tobiasgrosser @jianyicheng