-
Notifications
You must be signed in to change notification settings - Fork 83
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] tools: move verification and parsing command-line arguments from xDSLOptMain
to CommandLineTool
#3915
base: main
Are you sure you want to change the base?
Conversation
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 think my preference is still for these checks to happen once in xDSLOptMain.run
, instead of being scattered
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3915 +/- ##
=======================================
Coverage 91.28% 91.28%
=======================================
Files 466 466
Lines 57985 57985
Branches 5566 5566
=======================================
Hits 52929 52929
Misses 3629 3629
Partials 1427 1427 ☔ View full report in Codecov by Sentry. |
How do you do it downstream? Do you inherit |
Why this change? It doesn't make sense for xdsl-run to have parser diagnostics |
True, I'm going to move them back and deal with the |
Let's close this in the meantime? |
can't I reuse it to flip things around? |
What's the benefit of having it open? |
xDSLOptMain
to CommandLineTool
xDSLOptMain
to CommandLineTool
I've moved it to WIP |
Sorry, I missed this, I inherit from class QuoptMain(xDSLOptMain):
def register_all_dialects(self):
for name, dialect in get_all_dialects().items():
self.ctx.register_dialect(name, dialect)
def register_all_passes(self):
for name, pass_ in get_all_passes().items():
self.register_pass(name, pass_)
def register_all_targets(self):
super().register_all_targets() |
thanks! |
This PR:
xDSLOptMain
toCommandLineTool
as also discussed in #3866