This patch adds support for:
- --target in the compiler driver (flang-new)
- --triple in the frontend driver (flang-new -fc1)
The semantics of these flags are inherited from clangDriver, i.e.
consistent with clang --target and clang -cc1 --triple,
A new structure is defined, TargetOptions, that will hold various
Frontend options related to the target. Currently, this is mostly a
placeholder that contains the target triple. In the future, it will be
used for storing e.g. the CPU to tune for or the target features to
Additionally, the following target/triple related options are enabled
[*]: -print-ffective-triple, -print-target-triple. Definitions in
Options.td are updated accordingly and, to facilated testing,
-emit-llvm is added to the list of options available in flang-new
(previously it was only enabled in flang-new -fc1).
- These options were actually available before (like all other options
defined in clangDriver), but not included in flang-new --help.
Before this change, flang-new would just use native for defining the
target, so these options were of little value.