clang 20.0.0git
|
#include "Flang.h"
#include "Arch/RISCV.h"
#include "CommonArgs.h"
#include "clang/Basic/CodeGenOptions.h"
#include "clang/Driver/Options.h"
#include "llvm/Frontend/Debug/Options.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
#include "llvm/TargetParser/Host.h"
#include "llvm/TargetParser/RISCVISAInfo.h"
#include "llvm/TargetParser/RISCVTargetParser.h"
#include <cassert>
Go to the source code of this file.
Functions | |
static void | addDashXForInput (const ArgList &Args, const InputInfo &Input, ArgStringList &CmdArgs) |
Add -x lang to CmdArgs for Input . | |
static bool | shouldLoopVersion (const ArgList &Args) |
@C shouldLoopVersion | |
static void | addVSDefines (const ToolChain &TC, const ArgList &Args, ArgStringList &CmdArgs) |
static void | processVSRuntimeLibrary (const ToolChain &TC, const ArgList &Args, ArgStringList &CmdArgs) |
static void | addFloatingPointOptions (const Driver &D, const ArgList &Args, ArgStringList &CmdArgs) |
static void | renderRemarksOptions (const ArgList &Args, ArgStringList &CmdArgs, const InputInfo &Input) |
|
static |
Add -x lang to CmdArgs
for Input
.
Definition at line 30 of file Flang.cpp.
References clang::driver::InputInfo::getType(), and clang::driver::types::getTypeName().
|
static |
Definition at line 502 of file Flang.cpp.
References D, and clang::Decl::getID().
Referenced by clang::driver::tools::Flang::ConstructJob().
|
static |
Definition at line 265 of file Flang.cpp.
References clang::driver::ToolChain::computeMSVCVersion(), and clang::driver::ToolChain::getTriple().
|
static |
Definition at line 289 of file Flang.cpp.
References clang::driver::ToolChain::getCompilerRTBasename(), and clang::driver::ToolChain::getTriple().
|
static |
Definition at line 631 of file Flang.cpp.
References clang::driver::InputInfo::getBaseInput().
|
static |
@C shouldLoopVersion
Check if Loop Versioning should be enabled. We look for the last of one of the following: -Ofast, -O4, -O<number> and -f[no-]version-loops-for-stride. Loop versioning is disabled if the last option is -fno-version-loops-for-stride. Loop versioning is enabled if the last option is one of: -floop-versioning -Ofast -O4 -O3 For all other cases, loop versioning is is disabled.
The gfortran compiler automatically enables the option for -O3 or -Ofast.