clang
8.0.0
|
#include "CommonArgs.h"
#include "Arch/AArch64.h"
#include "Arch/ARM.h"
#include "Arch/Mips.h"
#include "Arch/PPC.h"
#include "Arch/SystemZ.h"
#include "Arch/X86.h"
#include "HIP.h"
#include "Hexagon.h"
#include "InputInfo.h"
#include "clang/Basic/CharInfo.h"
#include "clang/Basic/LangOptions.h"
#include "clang/Basic/ObjCRuntime.h"
#include "clang/Basic/Version.h"
#include "clang/Config/config.h"
#include "clang/Driver/Action.h"
#include "clang/Driver/Compilation.h"
#include "clang/Driver/Driver.h"
#include "clang/Driver/DriverDiagnostic.h"
#include "clang/Driver/Job.h"
#include "clang/Driver/Options.h"
#include "clang/Driver/SanitizerArgs.h"
#include "clang/Driver/ToolChain.h"
#include "clang/Driver/Util.h"
#include "clang/Driver/XRayArgs.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Option/Arg.h"
#include "llvm/Option/ArgList.h"
#include "llvm/Option/Option.h"
#include "llvm/Support/CodeGen.h"
#include "llvm/Support/Compression.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Host.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/Process.h"
#include "llvm/Support/Program.h"
#include "llvm/Support/ScopedPrinter.h"
#include "llvm/Support/TargetParser.h"
#include "llvm/Support/VirtualFileSystem.h"
#include "llvm/Support/YAMLParser.h"
Go to the source code of this file.
Functions | |
static std::string | getR600TargetGPU (const ArgList &Args) |
Get the (LLVM) name of the R600 gpu we are targeting. More... | |
static std::string | getLanaiTargetCPU (const ArgList &Args) |
static StringRef | getWebAssemblyTargetCPU (const ArgList &Args) |
Get the (LLVM) name of the WebAssembly cpu we are targeting. More... | |
static void | addSanitizerRuntime (const ToolChain &TC, const ArgList &Args, ArgStringList &CmdArgs, StringRef Sanitizer, bool IsShared, bool IsWhole) |
static bool | addSanitizerDynamicList (const ToolChain &TC, const ArgList &Args, ArgStringList &CmdArgs, StringRef Sanitizer) |
static void | addSanitizerLibPath (const ToolChain &TC, const ArgList &Args, ArgStringList &CmdArgs, StringRef Name) |
static void | collectSanitizerRuntimes (const ToolChain &TC, const ArgList &Args, SmallVectorImpl< StringRef > &SharedRuntimes, SmallVectorImpl< StringRef > &StaticRuntimes, SmallVectorImpl< StringRef > &NonWholeStaticRuntimes, SmallVectorImpl< StringRef > &HelperStaticRuntimes, SmallVectorImpl< StringRef > &RequiredSymbols) |
static void | AddLibgcc (const llvm::Triple &Triple, const Driver &D, ArgStringList &CmdArgs, const ArgList &Args) |
|
static |
Definition at line 1135 of file CommonArgs.cpp.
References clang::driver::tools::AddOpenMPLinkerScript(), clang::driver::tools::AddRunTimeLibs(), clang::driver::Driver::CCCIsCC(), clang::driver::Driver::Diag(), clang::driver::ToolChain::getCompilerRTArgString(), clang::driver::ToolChain::getDriver(), clang::driver::ToolChain::GetRuntimeLibType(), clang::driver::ToolChain::getTriple(), clang::driver::Action::isHostOffloading(), clang::driver::Action::OFK_OpenMP, clang::driver::ToolChain::RLT_CompilerRT, and clang::driver::ToolChain::RLT_Libgcc.
|
static |
Definition at line 524 of file CommonArgs.cpp.
References clang::driver::ToolChain::getCompilerRT(), and clang::driver::ToolChain::getTriple().
Referenced by collectSanitizerRuntimes().
|
static |
Definition at line 544 of file CommonArgs.cpp.
|
static |
Definition at line 508 of file CommonArgs.cpp.
References clang::driver::tools::addArchSpecificRPath(), and clang::driver::ToolChain::getCompilerRTArgString().
Referenced by collectSanitizerRuntimes().
|
static |
Definition at line 604 of file CommonArgs.cpp.
References clang::driver::ToolChain::AddCXXStdlibLibArgs(), addSanitizerDynamicList(), addSanitizerRuntime(), clang::driver::tools::addSanitizerRuntimes(), clang::driver::ToolChain::getSanitizerArgs(), clang::driver::ToolChain::getTriple(), clang::driver::SanitizerArgs::linkCXXRuntimes(), clang::driver::SanitizerArgs::needsAsanRt(), clang::driver::SanitizerArgs::needsCfiDiagRt(), clang::driver::SanitizerArgs::needsCfiRt(), clang::driver::SanitizerArgs::needsDfsanRt(), clang::driver::SanitizerArgs::needsEsanRt(), clang::driver::SanitizerArgs::needsFuzzer(), clang::driver::SanitizerArgs::needsHwasanRt(), clang::driver::SanitizerArgs::needsLsanRt(), clang::driver::SanitizerArgs::needsMsanRt(), clang::driver::SanitizerArgs::needsSafeStackRt(), clang::driver::SanitizerArgs::needsScudoRt(), clang::driver::SanitizerArgs::needsSharedRt(), clang::driver::SanitizerArgs::needsStatsRt(), clang::driver::SanitizerArgs::needsTsanRt(), clang::driver::SanitizerArgs::needsUbsanRt(), and clang::driver::SanitizerArgs::requiresMinimalRuntime().
|
static |
Definition at line 223 of file CommonArgs.cpp.
Referenced by getWebAssemblyTargetCPU().
|
static |
Get the (LLVM) name of the R600 gpu we are targeting.
Definition at line 207 of file CommonArgs.cpp.
Referenced by getWebAssemblyTargetCPU().
|
static |
Get the (LLVM) name of the WebAssembly cpu we are targeting.
Definition at line 231 of file CommonArgs.cpp.
References clang::driver::Driver::Diag(), clang::driver::tools::aarch64::getAArch64TargetCPU(), clang::driver::tools::arm::getARMArchCPUFromArgs(), clang::driver::tools::arm::getARMTargetCPU(), clang::driver::tools::getCPUName(), getLanaiTargetCPU(), clang::driver::tools::getLTOParallelism(), clang::driver::tools::mips::getMipsCPUAndABI(), clang::driver::tools::ppc::getPPCTargetCPU(), getR600TargetGPU(), clang::driver::tools::systemz::getSystemZTargetCPU(), clang::driver::toolchains::HexagonToolChain::GetTargetCPUVersion(), and clang::driver::tools::x86::getX86TargetCPU().