[flang-dev] [LLVM Flang] Code gen option: `-emit-fir` vs `-emit-mlir`

Andrzej Warzynski via flang-dev flang-dev at lists.llvm.org
Thu Sep 9 07:03:14 PDT 2021


We have recently started working on adding code-gen support in the Flang 
driver. Our first PR is available on GitHub [1] and implements the 
"parse tree --> MLIR" step.

What should be the corresponding option in `flang-new`? `bbc` uses 
`-emit-fir` [2], but `-emit-mlir` would probably be more accurate. 
Indeed, currently the generated output uses multiple MLIR dialects 
(rather than just FIR).

Please comment either here or on GitHub.

Thank you,

[1] https://github.com/flang-compiler/f18-llvm-project/pull/1008

More information about the flang-dev mailing list