[PATCH] D123297: [flang][driver] Add support for -mmlir

Andrzej Warzynski via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 7 11:08:14 PDT 2022


awarzynski added a comment.

In D123297#3436867 <https://reviews.llvm.org/D123297#3436867>, @mehdi_amini wrote:

> `-mmlir` is fine with me, but note that MLIR has much less global options than LLVM: you will only get access to context and passmanager options and not individual passes flags. That's not a criticism :)
> (that's what makes it not likely to have conflicts by the way: the set of MLIR option is well identified)

Thanks for taking a look! All this should be fine - the main rationale for this patch is to enable MLIR options in `flang-new` so that tests using `tco` or `bbc` (and which use MLIR options) can be ported to use `flang-new`. We were discussing this recently in https://reviews.llvm.org/D121171.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123297/new/

https://reviews.llvm.org/D123297



More information about the cfe-commits mailing list