This patch adds support for AsmPrinter -mmlir options to the Flang driver.
Details
Diff Detail
Event Timeline
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.
- Add registerPassManagerCLOptions and registerMLIRContextCLOptions options to the test
LGTM!
flang/test/Driver/mmlir-opts.f90 | ||
---|---|---|
6–9 | [nit] You could add a comment so that it clear that e.g. --mlir-print-local-scope is from registerAsmPrinterCLOptions (same for other groups) |
- Add comment about which option comes from where
flang/test/Driver/mmlir-opts.f90 | ||
---|---|---|
6–9 | Is the added comment clear? |
flang/test/Driver/mmlir-opts.f90 | ||
---|---|---|
12–14 | It is clear, thank you! Personally, I would do it more locally, but this was just a [nit] anyway, so feel free to ignore :) |
flang/test/Driver/mmlir-opts.f90 | ||
---|---|---|
12–14 | Ah, I like this better. Done, thanks for your feedback! |
[nit] You could add a comment so that it clear that e.g. --mlir-print-local-scope is from registerAsmPrinterCLOptions (same for other groups)