Add support for the following Fortran dialect options:
- -default*
- -flarge-sizes
It also adds two test cases:
- For checking whether flang-new is passing options correctly to flang-new -fc1.
- For checking if fdefault- arguments are processed properly.
Also moves the Dialect related option parsing to a dedicated function and adds a member defaultKinds() to CompilerInvocation
Depends on: D96032
Could you add a help text? Note that once you add a help text, you will have to add FlangOnlyOption flag to make sure this option doesn't show up in:
Some for other options here. Also, at that point, I suggest moving these options near other Flang options: https://github.com/llvm/llvm-project/blob/ec4fb5bcd3b92867156a5bd75fa0be4c74084f3c/clang/include/clang/Driver/Options.td#L4224-L4238.
AFAIK, these options are no longer forwarded to gfortran anyway (since this patch).