llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.69k stars 11.87k forks source link

Add Flang frontend support for the missing target specific options. #111565

Open manosanaggh opened 2 weeks ago

manosanaggh commented 2 weeks ago

In clang/lib/Driver/ToolChains/Flang.cpp resides the following TODO: // TODO: Add target specific flags, ABI, mtune option etc. under the function void Flang::addTargetOptions.

Here an analysis is needed for all the missing target specific flags that need to be supported by Flang (and are already supported by Clang).

Someone should also extend the visibility of those options to include FlangOption, FC1Option under clang/include/clang/Driver/Options.td before intervening in clang/lib/Driver/ToolChains/Flang.cpp.

This is going to need proper testcases for the testsuite in order to be upstreamable.

manosanaggh commented 2 weeks ago

Already has an assignee.

llvmbot commented 2 weeks ago

@llvm/issue-subscribers-flang-driver

Author: Manos Anagnostakis (manosanaggh)

In `clang/lib/Driver/ToolChains/Flang.cpp` resides the following TODO: `// TODO: Add target specific flags, ABI, mtune option etc.` under the function `void Flang::addTargetOptions`. Here an analysis is needed for all the missing target specific flags that need to be supported by `Flang` (and are already supported by `Clang`). Someone should also extend the visibility of those options to include `FlangOption, FC1Option` under `clang/include/clang/Driver/Options.td` before intervening in `clang/lib/Driver/ToolChains/Flang.cpp`. This is going to need proper testcases for the testsuite in order to be upstreamable.
tarunprabhu commented 2 weeks ago

Are there specific options that you need supported?