This patch adds support for AsmPrinter -mmlir options to the Flang driver.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Thanks for doing this!
I think that at this point it would make sense to extend your test and to check for options from registerMLIRContextCLOptions and registerPassManagerCLOptions as well (one from each should be sufficient). Would you mind doing that? You'll need to rename the test file as well.
Comment Actions
- Add registerPassManagerCLOptions and registerMLIRContextCLOptions options to the test
Comment Actions
LGTM!
flang/test/Driver/mmlir-opts.f90 | ||
---|---|---|
6–9 ↗ | (On Diff #448080) | [nit] You could add a comment so that it clear that e.g. --mlir-print-local-scope is from registerAsmPrinterCLOptions (same for other groups) |
Comment Actions
- Add comment about which option comes from where
flang/test/Driver/mmlir-opts.f90 | ||
---|---|---|
6–9 ↗ | (On Diff #448080) | Is the added comment clear? |
flang/test/Driver/mmlir-opts.f90 | ||
---|---|---|
11–13 ↗ | (On Diff #448113) | It is clear, thank you! Personally, I would do it more locally, but this was just a [nit] anyway, so feel free to ignore :) |
Comment Actions
This comment has been deleted.
flang/test/Driver/mmlir-opts.f90 | ||
---|---|---|
11–13 ↗ | (On Diff #448113) | Ah, I like this better. Done, thanks for your feedback! |