In review for https://reviews.llvm.org/D146278, @vzakhari asked to
separate -emit-fir and -emit-hlfir. This will allow FIR to be easily
outputted after the HLFIR passes have been run.
The new semantics are as follows:
Action | -flang-experimental-hlfir? | Result |
-emit-hlfir | N | Outputs HLFIR |
-emit-hlfir | Y | Outputs HLFIR |
-emit-fir | N | Outputs FIR, using old lowering |
-emit-fir | Y | Outputs FIR, lowering via HLFIR |
Patch for bbc: https://reviews.llvm.org/D151108
To me having EmitFIR and EmitHLFIR would make more sense. With 2 dialects, EmitMLIR becomes rather confusing (and, I suspect, rarely used).