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

Namespaces

 aarch64
 
 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
 
 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

bool isMipsArch (llvm::Triple::ArchType Arch)
 
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)
 
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)
 
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, bool IsThinLTO, const Driver &D)
 
std::tuple< llvm::Reloc::Model, unsigned, boolParsePICArgs (const ToolChain &ToolChain, 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)
 

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,
bool  IsThinLTO,
const Driver D 
)

◆ 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 
)

◆ 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)

Referenced by isUseSeparateSections().

◆ 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 
)

◆ handleTargetFeaturesGroup()

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

◆ isMipsArch()

bool clang::driver::tools::isMipsArch ( llvm::Triple::ArchType  Arch)

◆ 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 
)

◆ 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 
)