[flang] add -flang-experimental-hlfir flag to flang-new
authorTom Eccles <tom.eccles@arm.com>
Tue, 14 Mar 2023 13:27:30 +0000 (13:27 +0000)
committerTom Eccles <tom.eccles@arm.com>
Wed, 22 Mar 2023 13:36:54 +0000 (13:36 +0000)
commitacf6a3224955779724a35a383d63c48af2163171
tree54ae3fe3d1c16d8ee9a440cfbee1e3545c819880
parent3a3ad9fe1811ebd7ff865b77f471d155d9a05ec8
[flang] add -flang-experimental-hlfir flag to flang-new

This flag instructs flang-new to use the new HLFIR lowering. It is
marked as experimental and not included in --help.

This was added to make it more convenient to test the performance of
code generated by the HLFIR lowering.

Extra diffs are from running clang-format on CLOptions.inc (which was
being forced by CI).

Differential Revision: https://reviews.llvm.org/D146278
clang/include/clang/Driver/Options.td
clang/lib/Driver/ToolChains/Flang.cpp
flang/include/flang/Tools/CLOptions.inc
flang/lib/Frontend/CompilerInvocation.cpp
flang/test/Driver/driver-help-hidden.f90
flang/test/Driver/mlir-pass-pipeline.f90
flang/test/Fir/basic-program.fir
flang/test/HLFIR/flang-experimental-hlfir-flag.f90 [new file with mode: 0644]