clang  14.0.0git
Namespaces | Functions
CommonArgs.h File Reference
#include "clang/Driver/Driver.h"
#include "clang/Driver/InputInfo.h"
#include "clang/Driver/Multilib.h"
#include "clang/Driver/Tool.h"
#include "clang/Driver/ToolChain.h"
#include "llvm/Support/CodeGen.h"
Include dependency graph for CommonArgs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 clang
 
 clang::driver
 
 clang::driver::tools
 

Functions

void clang::driver::tools::addPathIfExists (const Driver &D, const Twine &Path, ToolChain::path_list &Paths)
 
void clang::driver::tools::AddLinkerInputs (const ToolChain &TC, const InputInfoList &Inputs, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs, const JobAction &JA)
 
void clang::driver::tools::addLinkerCompressDebugSectionsOption (const ToolChain &TC, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs)
 
void clang::driver::tools::claimNoWarnArgs (const llvm::opt::ArgList &Args)
 
bool clang::driver::tools::addSanitizerRuntimes (const ToolChain &TC, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs)
 
void clang::driver::tools::linkSanitizerRuntimeDeps (const ToolChain &TC, llvm::opt::ArgStringList &CmdArgs)
 
bool clang::driver::tools::addXRayRuntime (const ToolChain &TC, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs)
 
void clang::driver::tools::linkXRayRuntimeDeps (const ToolChain &TC, llvm::opt::ArgStringList &CmdArgs)
 
void clang::driver::tools::AddRunTimeLibs (const ToolChain &TC, const Driver &D, llvm::opt::ArgStringList &CmdArgs, const llvm::opt::ArgList &Args)
 
void clang::driver::tools::AddStaticDeviceLibsLinking (Compilation &C, const Tool &T, const JobAction &JA, const InputInfoList &Inputs, const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CmdArgs, StringRef Arch, StringRef Target, bool isBitCodeSDL, bool postClangLink)
 
void clang::driver::tools::AddStaticDeviceLibsPostLinking (const Driver &D, const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CmdArgs, StringRef Arch, StringRef Target, bool isBitCodeSDL, bool postClangLink)
 
void clang::driver::tools::AddStaticDeviceLibs (Compilation *C, const Tool *T, const JobAction *JA, const InputInfoList *Inputs, const Driver &D, const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CmdArgs, StringRef Arch, StringRef Target, bool isBitCodeSDL, bool postClangLink)
 
bool clang::driver::tools::SDLSearch (const Driver &D, const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CmdArgs, SmallVector< std::string, 8 > LibraryPaths, std::string Lib, StringRef Arch, StringRef Target, bool isBitCodeSDL, bool postClangLink)
 SDLSearch: Search for Static Device Library The search for SDL bitcode files is consistent with how static host libraries are discovered. More...
 
bool clang::driver::tools::GetSDLFromOffloadArchive (Compilation &C, const Driver &D, const Tool &T, const JobAction &JA, const InputInfoList &Inputs, const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args, SmallVector< std::string, 8 > LibraryPaths, StringRef Lib, StringRef Arch, StringRef Target, bool isBitCodeSDL, bool postClangLink)
 Search if a user provided archive file lib<libname>.a exists in any of the library paths. More...
 
const char * clang::driver::tools::SplitDebugName (const JobAction &JA, const llvm::opt::ArgList &Args, const InputInfo &Input, const InputInfo &Output)
 
void clang::driver::tools::SplitDebugInfo (const ToolChain &TC, Compilation &C, const Tool &T, const JobAction &JA, const llvm::opt::ArgList &Args, const InputInfo &Output, const char *OutFile)
 
void clang::driver::tools::addLTOOptions (const ToolChain &ToolChain, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs, const InputInfo &Output, const InputInfo &Input, bool IsThinLTO)
 
std::tuple< llvm::Reloc::Model, unsigned, boolclang::driver::tools::ParsePICArgs (const ToolChain &ToolChain, const llvm::opt::ArgList &Args)
 
unsigned clang::driver::tools::ParseFunctionAlignment (const ToolChain &TC, const llvm::opt::ArgList &Args)
 
unsigned clang::driver::tools::ParseDebugDefaultVersion (const ToolChain &TC, const llvm::opt::ArgList &Args)
 
void clang::driver::tools::AddAssemblerKPIC (const ToolChain &ToolChain, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs)
 
void clang::driver::tools::addArchSpecificRPath (const ToolChain &TC, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs)
 
bool clang::driver::tools::addOpenMPRuntime (llvm::opt::ArgStringList &CmdArgs, const ToolChain &TC, const llvm::opt::ArgList &Args, bool ForceStaticHostRuntime=false, bool IsOffloadingHost=false, bool GompNeedsRT=false)
 Returns true, if an OpenMP runtime has been added. More...
 
llvm::opt::Arg * clang::driver::tools::getLastProfileUseArg (const llvm::opt::ArgList &Args)
 
llvm::opt::Arg * clang::driver::tools::getLastProfileSampleUseArg (const llvm::opt::ArgList &Args)
 
bool clang::driver::tools::isObjCAutoRefCount (const llvm::opt::ArgList &Args)
 
llvm::StringRef clang::driver::tools::getLTOParallelism (const llvm::opt::ArgList &Args, const Driver &D)
 
bool clang::driver::tools::areOptimizationsEnabled (const llvm::opt::ArgList &Args)
 
bool clang::driver::tools::isUseSeparateSections (const llvm::Triple &Triple)
 
void clang::driver::tools::addDirectoryList (const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs, const char *ArgName, const char *EnvVar)
 EnvVar is split by system delimiter for environment variables. More...
 
void clang::driver::tools::AddTargetFeature (const llvm::opt::ArgList &Args, std::vector< StringRef > &Features, llvm::opt::OptSpecifier OnOpt, llvm::opt::OptSpecifier OffOpt, StringRef FeatureName)
 
std::string clang::driver::tools::getCPUName (const Driver &D, const llvm::opt::ArgList &Args, const llvm::Triple &T, bool FromAs=false)
 
void clang::driver::tools::handleTargetFeaturesGroup (const llvm::opt::ArgList &Args, std::vector< StringRef > &Features, llvm::opt::OptSpecifier Group)
 Iterate Args and convert -mxxx to +xxx and -mno-xxx to -xxx and append it to Features. More...
 
std::vector< StringRef > clang::driver::tools::unifyTargetFeatures (const std::vector< StringRef > &Features)
 If there are multiple +xxx or -xxx features, keep the last one. More...
 
SmallString< 128 > clang::driver::tools::getStatsFileName (const llvm::opt::ArgList &Args, const InputInfo &Output, const InputInfo &Input, const Driver &D)
 Handles the -save-stats option and returns the filename to save statistics to. More...
 
void clang::driver::tools::addMultilibFlag (bool Enabled, const char *const Flag, Multilib::flags_list &Flags)
 Flag must be a flag accepted by the driver with its leading '-' removed, More...
 
void clang::driver::tools::addX86AlignBranchArgs (const Driver &D, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs, bool IsLTO)
 
void clang::driver::tools::checkAMDGPUCodeObjectVersion (const Driver &D, const llvm::opt::ArgList &Args)
 
unsigned clang::driver::tools::getAMDGPUCodeObjectVersion (const Driver &D, const llvm::opt::ArgList &Args)
 
bool clang::driver::tools::haveAMDGPUCodeObjectVersionArgument (const Driver &D, const llvm::opt::ArgList &Args)
 
void clang::driver::tools::addMachineOutlinerArgs (const Driver &D, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs, const llvm::Triple &Triple, bool IsLTO)
 
void clang::driver::tools::addOpenMPDeviceRTL (const Driver &D, const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args, StringRef BitcodeSuffix, const llvm::Triple &Triple)