clang  8.0.0svn
Namespaces | Classes | Functions
clang::driver::tools Namespace Reference

Namespaces

 aarch64
 
 AMDGCN
 
 amdgpu
 
 ananas
 ananas – Directly call GNU Binutils assembler and linker
 
 arm
 
 AVR
 
 baremetal
 
 cloudabi
 cloudabi – Directly call GNU Binutils linker
 
 CrossWindows
 
 darwin
 
 dragonfly
 dragonfly – Directly call GNU Binutils assembler and linker
 
 freebsd
 freebsd – Directly call GNU Binutils assembler and linker
 
 fuchsia
 
 gcc
 gcc - Generic GCC tool implementations.
 
 gnutools
 Directly call GNU Binutils' assembler and linker.
 
 hexagon
 
 MinGW
 MinGW – Directly call GNU Binutils assembler and linker.
 
 minix
 minix – Directly call GNU Binutils assembler and linker
 
 mips
 
 Myriad
 The Myriad toolchain uses tools that are in two different namespaces.
 
 nacltools
 
 netbsd
 netbsd – Directly call GNU Binutils assembler and linker
 
 NVPTX
 
 openbsd
 openbsd – Directly call GNU Binutils assembler and linker
 
 ppc
 
 PS4cpu
 
 RISCV
 
 riscv
 
 SHAVE
 SHAVE tools – Directly call moviCompile and moviAsm.
 
 solaris
 solaris – Directly call Solaris assembler and linker
 
 sparc
 
 systemz
 
 visualstudio
 Visual studio tools.
 
 wasm
 
 x86
 
 XCore
 

Classes

class  Clang
 Clang compiler tool. More...
 
class  ClangAs
 Clang integrated assembler tool. More...
 
class  GnuTool
 Base class for all GNU tools that provide the same behavior when it comes to response files support. More...
 
class  OffloadBundler
 Offload bundler tool. More...
 

Functions

void addPathIfExists (const Driver &D, const Twine &Path, ToolChain::path_list &Paths)
 
void AddLinkerInputs (const ToolChain &TC, const InputInfoList &Inputs, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs, const JobAction &JA)
 
void claimNoWarnArgs (const llvm::opt::ArgList &Args)
 
bool addSanitizerRuntimes (const ToolChain &TC, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs)
 
void linkSanitizerRuntimeDeps (const ToolChain &TC, llvm::opt::ArgStringList &CmdArgs)
 
bool addXRayRuntime (const ToolChain &TC, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs)
 
void linkXRayRuntimeDeps (const ToolChain &TC, llvm::opt::ArgStringList &CmdArgs)
 
void AddRunTimeLibs (const ToolChain &TC, const Driver &D, llvm::opt::ArgStringList &CmdArgs, const llvm::opt::ArgList &Args)
 
void AddOpenMPLinkerScript (const ToolChain &TC, Compilation &C, const InputInfo &Output, const InputInfoList &Inputs, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs, const JobAction &JA)
 
void AddHIPLinkerScript (const ToolChain &TC, Compilation &C, const InputInfo &Output, const InputInfoList &Inputs, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs, const JobAction &JA, const Tool &T)
 
const char * SplitDebugName (const llvm::opt::ArgList &Args, const InputInfo &Input)
 
void SplitDebugInfo (const ToolChain &TC, Compilation &C, const Tool &T, const JobAction &JA, const llvm::opt::ArgList &Args, const InputInfo &Output, const char *OutFile)
 
void AddGoldPlugin (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, boolParsePICArgs (const ToolChain &ToolChain, const llvm::opt::ArgList &Args)
 
unsigned ParseFunctionAlignment (const ToolChain &TC, const llvm::opt::ArgList &Args)
 
void AddAssemblerKPIC (const ToolChain &ToolChain, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs)
 
void addArchSpecificRPath (const ToolChain &TC, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs)
 
bool addOpenMPRuntime (llvm::opt::ArgStringList &CmdArgs, const ToolChain &TC, const llvm::opt::ArgList &Args, bool IsOffloadingHost=false, bool GompNeedsRT=false)
 Returns true, if an OpenMP runtime has been added. More...
 
llvm::opt::Arg * getLastProfileUseArg (const llvm::opt::ArgList &Args)
 
llvm::opt::Arg * getLastProfileSampleUseArg (const llvm::opt::ArgList &Args)
 
bool isObjCAutoRefCount (const llvm::opt::ArgList &Args)
 
unsigned getLTOParallelism (const llvm::opt::ArgList &Args, const Driver &D)
 
bool areOptimizationsEnabled (const llvm::opt::ArgList &Args)
 
bool isUseSeparateSections (const llvm::Triple &Triple)
 
void addDirectoryList (const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs, const char *ArgName, const char *EnvVar)
 
void AddTargetFeature (const llvm::opt::ArgList &Args, std::vector< StringRef > &Features, llvm::opt::OptSpecifier OnOpt, llvm::opt::OptSpecifier OffOpt, StringRef FeatureName)
 
std::string getCPUName (const llvm::opt::ArgList &Args, const llvm::Triple &T, bool FromAs=false)
 
void handleTargetFeaturesGroup (const llvm::opt::ArgList &Args, std::vector< StringRef > &Features, llvm::opt::OptSpecifier Group)
 
SmallString< 128 > 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...
 

Function Documentation

◆ addArchSpecificRPath()

void clang::driver::tools::addArchSpecificRPath ( const ToolChain TC,
const llvm::opt::ArgList &  Args,
llvm::opt::ArgStringList &  CmdArgs 
)

◆ AddAssemblerKPIC()

void clang::driver::tools::AddAssemblerKPIC ( const ToolChain ToolChain,
const llvm::opt::ArgList &  Args,
llvm::opt::ArgStringList &  CmdArgs 
)

◆ addDirectoryList()

void clang::driver::tools::addDirectoryList ( const llvm::opt::ArgList &  Args,
llvm::opt::ArgStringList &  CmdArgs,
const char *  ArgName,
const char *  EnvVar 
)

◆ AddGoldPlugin()

void clang::driver::tools::AddGoldPlugin ( const ToolChain ToolChain,
const llvm::opt::ArgList &  Args,
llvm::opt::ArgStringList &  CmdArgs,
const InputInfo Output,
const InputInfo Input,
bool  IsThinLTO 
)

◆ AddHIPLinkerScript()

void clang::driver::tools::AddHIPLinkerScript ( const ToolChain TC,
Compilation C,
const InputInfo Output,
const InputInfoList Inputs,
const llvm::opt::ArgList &  Args,
llvm::opt::ArgStringList &  CmdArgs,
const JobAction JA,
const Tool T 
)

◆ AddLinkerInputs()

void clang::driver::tools::AddLinkerInputs ( const ToolChain TC,
const InputInfoList Inputs,
const llvm::opt::ArgList &  Args,
llvm::opt::ArgStringList &  CmdArgs,
const JobAction JA 
)

◆ AddOpenMPLinkerScript()

void clang::driver::tools::AddOpenMPLinkerScript ( const ToolChain TC,
Compilation C,
const InputInfo Output,
const InputInfoList Inputs,
const llvm::opt::ArgList &  Args,
llvm::opt::ArgStringList &  CmdArgs,
const JobAction JA 
)

◆ addOpenMPRuntime()

bool clang::driver::tools::addOpenMPRuntime ( llvm::opt::ArgStringList &  CmdArgs,
const ToolChain TC,
const llvm::opt::ArgList &  Args,
bool  IsOffloadingHost = false,
bool  GompNeedsRT = false 
)

◆ addPathIfExists()

void clang::driver::tools::addPathIfExists ( const Driver D,
const Twine &  Path,
ToolChain::path_list Paths 
)

◆ AddRunTimeLibs()

void clang::driver::tools::AddRunTimeLibs ( const ToolChain TC,
const Driver D,
llvm::opt::ArgStringList &  CmdArgs,
const llvm::opt::ArgList &  Args 
)

◆ addSanitizerRuntimes()

bool clang::driver::tools::addSanitizerRuntimes ( const ToolChain TC,
const llvm::opt::ArgList &  Args,
llvm::opt::ArgStringList &  CmdArgs 
)

◆ AddTargetFeature()

void clang::driver::tools::AddTargetFeature ( const llvm::opt::ArgList &  Args,
std::vector< StringRef > &  Features,
llvm::opt::OptSpecifier  OnOpt,
llvm::opt::OptSpecifier  OffOpt,
StringRef  FeatureName 
)

◆ addXRayRuntime()

bool clang::driver::tools::addXRayRuntime ( const ToolChain TC,
const llvm::opt::ArgList &  Args,
llvm::opt::ArgStringList &  CmdArgs 
)

◆ areOptimizationsEnabled()

bool clang::driver::tools::areOptimizationsEnabled ( const llvm::opt::ArgList &  Args)

◆ claimNoWarnArgs()

void clang::driver::tools::claimNoWarnArgs ( const llvm::opt::ArgList &  Args)

◆ getCPUName()

std::string clang::driver::tools::getCPUName ( const llvm::opt::ArgList &  Args,
const llvm::Triple &  T,
bool  FromAs = false 
)

◆ getLastProfileSampleUseArg()

llvm::opt::Arg* clang::driver::tools::getLastProfileSampleUseArg ( const llvm::opt::ArgList &  Args)

◆ getLastProfileUseArg()

llvm::opt::Arg* clang::driver::tools::getLastProfileUseArg ( const llvm::opt::ArgList &  Args)

◆ getLTOParallelism()

unsigned clang::driver::tools::getLTOParallelism ( const llvm::opt::ArgList &  Args,
const Driver D 
)

◆ getStatsFileName()

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.

Definition at line 1425 of file CommonArgs.cpp.

References clang::driver::Driver::Diag(), clang::driver::InputInfo::getBaseInput(), clang::driver::InputInfo::getFilename(), and clang::driver::InputInfo::isFilename().

Referenced by clang::driver::tools::Clang::ConstructJob(), and isUseSeparateSections().

◆ handleTargetFeaturesGroup()

void clang::driver::tools::handleTargetFeaturesGroup ( const llvm::opt::ArgList &  Args,
std::vector< StringRef > &  Features,
llvm::opt::OptSpecifier  Group 
)

◆ isObjCAutoRefCount()

bool clang::driver::tools::isObjCAutoRefCount ( const llvm::opt::ArgList &  Args)

◆ isUseSeparateSections()

bool clang::driver::tools::isUseSeparateSections ( const llvm::Triple &  Triple)

◆ linkSanitizerRuntimeDeps()

void clang::driver::tools::linkSanitizerRuntimeDeps ( const ToolChain TC,
llvm::opt::ArgStringList &  CmdArgs 
)

◆ linkXRayRuntimeDeps()

void clang::driver::tools::linkXRayRuntimeDeps ( const ToolChain TC,
llvm::opt::ArgStringList &  CmdArgs 
)

◆ ParseFunctionAlignment()

unsigned clang::driver::tools::ParseFunctionAlignment ( const ToolChain TC,
const llvm::opt::ArgList &  Args 
)

◆ ParsePICArgs()

std::tuple<llvm::Reloc::Model, unsigned, bool> clang::driver::tools::ParsePICArgs ( const ToolChain ToolChain,
const llvm::opt::ArgList &  Args 
)

◆ SplitDebugInfo()

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 
)

◆ SplitDebugName()

const char* clang::driver::tools::SplitDebugName ( const llvm::opt::ArgList &  Args,
const InputInfo Input 
)