-
Notifications
You must be signed in to change notification settings - Fork 77
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
Added initial eqsat front end pass #3186
Added initial eqsat front end pass #3186
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## jianyi/eqsat/fix-ci #3186 +/- ##
=====================================================
Coverage 90.03% 90.04%
=====================================================
Files 430 433 +3
Lines 54067 54352 +285
Branches 8367 8412 +45
=====================================================
+ Hits 48681 48939 +258
- Misses 4038 4052 +14
- Partials 1348 1361 +13 ☔ View full report in Codecov by Sentry. |
xdsl/tools/command_line_tool.py
Outdated
@@ -405,6 +405,11 @@ def get_stencil_bufferize(): | |||
|
|||
return stencil_bufferize.StencilBufferize | |||
|
|||
def get_create_eclasses(): |
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.
def get_create_eclasses(): | |
def get_eqsat_create_eclasses(): |
# TODO: do we need a `replace_by_except` function, e.g. | ||
# eclass_op.result.replace_by_except(eclass_op.results[0], [eclass_op.result]) |
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'm not sure what MLIR has for this, but this works ok, no?
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 am thinking of replaceUsesWithIf()
: https://mlir.llvm.org/doxygen/classmlir_1_1Operation.html#a6f5567fd62feeaf0cbba4877732c512a
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.
Oh that's neat, we could probably use the same helper. Could you please file an issue for this?
This PR addresses #3170:
eqsat-create-eclasses
for the minimal example