clang
15.0.0git
|
#include "Clang.h"
#include "AMDGPU.h"
#include "Arch/AArch64.h"
#include "Arch/ARM.h"
#include "Arch/CSKY.h"
#include "Arch/M68k.h"
#include "Arch/Mips.h"
#include "Arch/PPC.h"
#include "Arch/RISCV.h"
#include "Arch/Sparc.h"
#include "Arch/SystemZ.h"
#include "Arch/VE.h"
#include "Arch/X86.h"
#include "CommonArgs.h"
#include "Hexagon.h"
#include "MSP430.h"
#include "PS4CPU.h"
#include "clang/Basic/CLWarnings.h"
#include "clang/Basic/CharInfo.h"
#include "clang/Basic/CodeGenOptions.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/Distro.h"
#include "clang/Driver/DriverDiagnostic.h"
#include "clang/Driver/InputInfo.h"
#include "clang/Driver/Options.h"
#include "clang/Driver/SanitizerArgs.h"
#include "clang/Driver/Types.h"
#include "clang/Driver/XRayArgs.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/Option/ArgList.h"
#include "llvm/Support/CodeGen.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Compression.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Host.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/Process.h"
#include "llvm/Support/TargetParser.h"
#include "llvm/Support/YAMLParser.h"
Go to the source code of this file.
Enumerations | |
enum | DwarfFissionKind { DwarfFissionKind::None, DwarfFissionKind::Split, DwarfFissionKind::Single } |
Functions | |
static void | CheckPreprocessingOptions (const Driver &D, const ArgList &Args) |
static void | CheckCodeGenerationOptions (const Driver &D, const ArgList &Args) |
static void | EscapeSpacesAndBackslashes (const char *Arg, SmallVectorImpl< char > &Res) |
static void | QuoteTarget (StringRef Target, SmallVectorImpl< char > &Res) |
static void | forAllAssociatedToolChains (Compilation &C, const JobAction &JA, const ToolChain &RegularToolChain, llvm::function_ref< void(const ToolChain &)> Work) |
Apply Work on the current tool chain RegularToolChain and any other offloading tool chain that is associated with the current action JA. More... | |
static bool | getRefinementStep (StringRef In, const Driver &D, const Arg &A, size_t &Position) |
This is a helper function for validating the optional refinement step parameter in reciprocal argument strings. More... | |
static void | ParseMRecip (const Driver &D, const ArgList &Args, ArgStringList &OutStrings) |
The -mrecip flag requires processing of many optional parameters. More... | |
static void | ParseMPreferVectorWidth (const Driver &D, const ArgList &Args, ArgStringList &CmdArgs) |
The -mprefer-vector-width option accepts either a positive integer or the string "none". More... | |
static void | getWebAssemblyTargetFeatures (const ArgList &Args, std::vector< StringRef > &Features) |
static void | getTargetFeatures (const Driver &D, const llvm::Triple &Triple, const ArgList &Args, ArgStringList &CmdArgs, bool ForAS, bool IsAux=false) |
static bool | shouldUseExceptionTablesForObjCExceptions (const ObjCRuntime &runtime, const llvm::Triple &Triple) |
static bool | addExceptionArgs (const ArgList &Args, types::ID InputType, const ToolChain &TC, bool KernelOrKext, const ObjCRuntime &objcRuntime, ArgStringList &CmdArgs) |
Adds exception related arguments to the driver command arguments. More... | |
static bool | ShouldEnableAutolink (const ArgList &Args, const ToolChain &TC, const JobAction &JA) |
static codegenoptions::DebugInfoKind | DebugLevelToInfoKind (const Arg &A) |
static bool | mustUseNonLeafFramePointerForTarget (const llvm::Triple &Triple) |
static bool | useFramePointerForTargetByDefault (const ArgList &Args, const llvm::Triple &Triple) |
static CodeGenOptions::FramePointerKind | getFramePointerKind (const ArgList &Args, const llvm::Triple &Triple) |
static const char * | addDebugCompDirArg (const ArgList &Args, ArgStringList &CmdArgs, const llvm::vfs::FileSystem &VFS) |
Add a CC1 option to specify the debug compilation directory. More... | |
static void | addDebugObjectName (const ArgList &Args, ArgStringList &CmdArgs, const char *DebugCompilationDir, const char *OutputFileName) |
static void | addDebugPrefixMapArg (const Driver &D, const ToolChain &TC, const ArgList &Args, ArgStringList &CmdArgs) |
Add a CC1 and CC1AS option to specify the debug file path prefix map. More... | |
static void | addMacroPrefixMapArg (const Driver &D, const ArgList &Args, ArgStringList &CmdArgs) |
Add a CC1 and CC1AS option to specify the macro file path prefix map. More... | |
static void | addCoveragePrefixMapArg (const Driver &D, const ArgList &Args, ArgStringList &CmdArgs) |
Add a CC1 and CC1AS option to specify the coverage file path prefix map. More... | |
static bool | shouldEnableVectorizerAtOLevel (const ArgList &Args, bool isSlpVec) |
Vectorize at all optimization levels greater than 1 except for -Oz. More... | |
static void | addDashXForInput (const ArgList &Args, const InputInfo &Input, ArgStringList &CmdArgs) |
Add -x lang to CmdArgs for Input . More... | |
static void | addPGOAndCoverageFlags (const ToolChain &TC, Compilation &C, const Driver &D, const InputInfo &Output, const ArgList &Args, SanitizerArgs &SanArgs, ArgStringList &CmdArgs) |
static bool | ContainsCompileAction (const Action *A) |
Check whether the given input tree contains any compilation actions. More... | |
static bool | UseRelaxAll (Compilation &C, const ArgList &Args) |
Check if -relax-all should be passed to the internal assembler. More... | |
static unsigned | DwarfVersionNum (StringRef ArgValue) |
static const Arg * | getDwarfNArg (const ArgList &Args) |
static void | RenderDebugEnablingArgs (const ArgList &Args, ArgStringList &CmdArgs, codegenoptions::DebugInfoKind DebugInfoKind, unsigned DwarfVersion, llvm::DebuggerKind DebuggerTuning) |
static bool | checkDebugInfoOption (const Arg *A, const ArgList &Args, const Driver &D, const ToolChain &TC) |
static void | RenderDebugInfoCompressionArgs (const ArgList &Args, ArgStringList &CmdArgs, const Driver &D, const ToolChain &TC) |
static const char * | RelocationModelName (llvm::Reloc::Model Model) |
static void | handleAMDGPUCodeObjectVersionOptions (const Driver &D, const ArgList &Args, ArgStringList &CmdArgs, bool IsCC1As=false) |
static bool | isSignedCharDefault (const llvm::Triple &Triple) |
static bool | hasMultipleInvocations (const llvm::Triple &Triple, const ArgList &Args) |
static bool | checkRemarksOptions (const Driver &D, const ArgList &Args, const llvm::Triple &Triple) |
static void | renderRemarksOptions (const ArgList &Args, ArgStringList &CmdArgs, const llvm::Triple &Triple, const InputInfo &Input, const InputInfo &Output, const JobAction &JA) |
void | AddAAPCSVolatileBitfieldArgs (const ArgList &Args, ArgStringList &CmdArgs) |
static void | CollectARMPACBTIOptions (const ToolChain &TC, const ArgList &Args, ArgStringList &CmdArgs, bool isAArch64) |
static void | SetRISCVSmallDataLimit (const ToolChain &TC, const ArgList &Args, ArgStringList &CmdArgs) |
static bool | CheckARMImplicitITArg (StringRef Value) |
static void | AddARMImplicitITArgs (const ArgList &Args, ArgStringList &CmdArgs, StringRef Value) |
static void | CollectArgsForIntegratedAssembler (Compilation &C, const ArgList &Args, ArgStringList &CmdArgs, const Driver &D) |
static void | RenderFloatingPointOptions (const ToolChain &TC, const Driver &D, bool OFastEnabled, const ArgList &Args, ArgStringList &CmdArgs, const JobAction &JA) |
static void | RenderAnalyzerOptions (const ArgList &Args, ArgStringList &CmdArgs, const llvm::Triple &Triple, const InputInfo &Input) |
static void | RenderSSPOptions (const Driver &D, const ToolChain &TC, const ArgList &Args, ArgStringList &CmdArgs, bool KernelOrKext) |
static void | RenderSCPOptions (const ToolChain &TC, const ArgList &Args, ArgStringList &CmdArgs) |
static void | RenderTrivialAutoVarInitOptions (const Driver &D, const ToolChain &TC, const ArgList &Args, ArgStringList &CmdArgs) |
static void | RenderOpenCLOptions (const ArgList &Args, ArgStringList &CmdArgs, types::ID InputType) |
static void | RenderHLSLOptions (const ArgList &Args, ArgStringList &CmdArgs, types::ID InputType) |
static void | RenderARCMigrateToolOptions (const Driver &D, const ArgList &Args, ArgStringList &CmdArgs) |
static void | RenderBuiltinOptions (const ToolChain &TC, const llvm::Triple &T, const ArgList &Args, ArgStringList &CmdArgs) |
static void | RenderModulesOptions (Compilation &C, const Driver &D, const ArgList &Args, const InputInfo &Input, const InputInfo &Output, ArgStringList &CmdArgs, bool &HaveModules) |
static void | RenderCharacterOptions (const ArgList &Args, const llvm::Triple &T, ArgStringList &CmdArgs) |
static void | RenderObjCOptions (const ToolChain &TC, const Driver &D, const llvm::Triple &T, const ArgList &Args, ObjCRuntime &Runtime, bool InferCovariantReturns, const InputInfo &Input, ArgStringList &CmdArgs) |
static void | RenderDiagnosticsOptions (const Driver &D, const ArgList &Args, ArgStringList &CmdArgs) |
static DwarfFissionKind | getDebugFissionKind (const Driver &D, const ArgList &Args, Arg *&Arg) |
static void | renderDwarfFormat (const Driver &D, const llvm::Triple &T, const ArgList &Args, ArgStringList &CmdArgs, unsigned DwarfVersion) |
static void | renderDebugOptions (const ToolChain &TC, const Driver &D, const llvm::Triple &T, const ArgList &Args, bool EmitCodeView, bool IRInput, ArgStringList &CmdArgs, codegenoptions::DebugInfoKind &DebugInfoKind, DwarfFissionKind &DwarfFission) |
static bool | maybeConsumeDash (const std::string &EH, size_t &I) |
static EHFlags | parseClangCLEHFlags (const Driver &D, const ArgList &Args) |
/EH controls whether to run destructor cleanups when exceptions are thrown. More... | |
|
strong |
void AddAAPCSVolatileBitfieldArgs | ( | const ArgList & | Args, |
ArgStringList & | CmdArgs | ||
) |
|
static |
|
static |
Add a CC1 and CC1AS option to specify the coverage file path prefix map.
Definition at line 727 of file Clang.cpp.
References clang::driver::Driver::Diag().
|
static |
Add -x lang to CmdArgs
for Input
.
Definition at line 775 of file Clang.cpp.
References clang::driver::InputInfo::getType(), and clang::driver::types::getTypeName().
Referenced by clang::driver::tools::Clang::ConstructJob().
|
static |
Add a CC1 option to specify the debug compilation directory.
Definition at line 649 of file Clang.cpp.
Referenced by clang::driver::tools::Clang::ConstructJob().
|
static |
|
static |
Add a CC1 and CC1AS option to specify the debug file path prefix map.
Definition at line 691 of file Clang.cpp.
Referenced by clang::driver::tools::Clang::ConstructJob().
|
static |
Adds exception related arguments to the driver command arguments.
There's a main flag, -fexceptions and also language specific flags to enable/disable C++ and Objective-C exceptions. This makes it possible to for example disable C++ exceptions but enable Objective-C exceptions.
Definition at line 429 of file Clang.cpp.
References clang::driver::ToolChain::getTriple(), clang::driver::types::isCXX(), clang::driver::types::isObjC(), and shouldUseExceptionTablesForObjCExceptions().
|
static |
Add a CC1 and CC1AS option to specify the macro file path prefix map.
Definition at line 712 of file Clang.cpp.
References clang::driver::Driver::Diag().
|
static |
Definition at line 805 of file Clang.cpp.
References clang::driver::Driver::Diag(), clang::driver::InputInfo::getBaseInput(), clang::driver::ToolChain::getCompilerRTBasename(), clang::driver::tools::getLastProfileSampleUseArg(), clang::driver::tools::getLastProfileUseArg(), clang::driver::ToolChain::getTriple(), clang::driver::Driver::getVFS(), clang::driver::InputInfo::isFilename(), clang::driver::ToolChain::needsGCovInstrumentation(), clang::driver::SanitizerArgs::needsTsanRt(), and v.
Referenced by clang::driver::tools::Clang::ConstructJob().
|
static |
Definition at line 2499 of file Clang.cpp.
Referenced by CollectArgsForIntegratedAssembler().
|
static |
Definition at line 73 of file Clang.cpp.
References clang::driver::Driver::Diag().
Referenced by clang::driver::tools::Clang::ConstructJob().
|
static |
Definition at line 1125 of file Clang.cpp.
References clang::driver::Driver::Diag(), clang::driver::ToolChain::getTripleString(), and clang::driver::ToolChain::supportsDebugInfoOption().
Referenced by RenderDebugInfoCompressionArgs(), and renderDebugOptions().
|
static |
Definition at line 60 of file Clang.cpp.
References clang::driver::Driver::CCCIsCPP(), clang::driver::Driver::Diag(), and clang::driver::Driver::IsCLMode().
|
static |
Definition at line 1540 of file Clang.cpp.
References clang::driver::Driver::Diag(), and hasMultipleInvocations().
|
static |
Definition at line 2510 of file Clang.cpp.
References CheckARMImplicitITArg(), clang::codegenoptions::DebugInfoConstructor, clang::driver::Driver::Diag(), DwarfVersionNum(), RenderDebugEnablingArgs(), and UseRelaxAll().
Referenced by clang::driver::tools::Clang::ConstructJob().
|
static |
Definition at line 1677 of file Clang.cpp.
References clang::driver::Driver::Diag(), clang::driver::ToolChain::getDriver(), clang::driver::ToolChain::getEffectiveTriple(), and clang::Scope::Scope().
Check whether the given input tree contains any compilation actions.
Definition at line 1029 of file Clang.cpp.
References clang::driver::Action::inputs().
Referenced by UseRelaxAll().
|
static |
Definition at line 517 of file Clang.cpp.
References clang::codegenoptions::DebugDirectivesOnly, clang::codegenoptions::DebugInfoConstructor, clang::codegenoptions::DebugLineTablesOnly, and clang::codegenoptions::NoDebugInfo.
Referenced by renderDebugOptions().
|
static |
Definition at line 1061 of file Clang.cpp.
Referenced by CollectArgsForIntegratedAssembler(), and renderDebugOptions().
|
static |
|
static |
Apply Work on the current tool chain RegularToolChain and any other offloading tool chain that is associated with the current action JA.
Definition at line 131 of file Clang.cpp.
References clang::driver::Action::isDeviceOffloading(), clang::driver::Action::isHostOffloading(), clang::driver::Action::OFK_Cuda, clang::driver::Action::OFK_HIP, clang::driver::Action::OFK_Host, and clang::driver::Action::OFK_OpenMP.
|
static |
Definition at line 4015 of file Clang.cpp.
References clang::driver::Driver::Diag(), None, Single, and Split.
Referenced by renderDebugOptions().
|
static |
Definition at line 1072 of file Clang.cpp.
Referenced by renderDebugOptions().
|
static |
Definition at line 619 of file Clang.cpp.
References clang::CodeGenOptions::All, mustUseNonLeafFramePointerForTarget(), clang::CodeGenOptions::None, clang::CodeGenOptions::NonLeaf, and useFramePointerForTargetByDefault().
Referenced by clang::driver::tools::Clang::ConstructJob().
|
static |
This is a helper function for validating the optional refinement step parameter in reciprocal argument strings.
Return false if there is an error parsing the refinement step. Otherwise, return true and set the Position of the refinement step in the input string.
|
static |
Definition at line 325 of file Clang.cpp.
References clang::driver::tools::aarch64::getAArch64TargetFeatures(), clang::driver::tools::amdgpu::getAMDGPUTargetFeatures(), clang::driver::tools::arm::getARMTargetFeatures(), clang::driver::tools::csky::getCSKYTargetFeatures(), clang::driver::tools::hexagon::getHexagonTargetFeatures(), clang::driver::tools::m68k::getM68kTargetFeatures(), clang::driver::tools::mips::getMIPSTargetFeatures(), clang::driver::tools::msp430::getMSP430TargetFeatures(), clang::driver::tools::NVPTX::getNVPTXTargetFeatures(), clang::driver::tools::ppc::getPPCTargetFeatures(), clang::driver::tools::riscv::getRISCVTargetFeatures(), clang::driver::tools::sparc::getSparcTargetFeatures(), clang::driver::tools::systemz::getSystemZTargetFeatures(), clang::driver::tools::ve::getVETargetFeatures(), getWebAssemblyTargetFeatures(), clang::driver::tools::x86::getX86TargetFeatures(), and clang::driver::tools::unifyTargetFeatures().
Referenced by clang::driver::tools::Clang::ConstructJob(), clang::driver::tools::ClangAs::ConstructJob(), and clang::driver::tools::OffloadPackager::ConstructJob().
|
static |
Definition at line 320 of file Clang.cpp.
References clang::driver::tools::handleTargetFeaturesGroup().
Referenced by getTargetFeatures().
|
static |
Definition at line 1177 of file Clang.cpp.
References clang::driver::tools::getAMDGPUCodeObjectVersion(), and clang::driver::tools::haveAMDGPUCodeObjectVersionArgument().
|
static |
Definition at line 1529 of file Clang.cpp.
Referenced by checkRemarksOptions().
|
static |
Definition at line 1496 of file Clang.cpp.
Referenced by RenderCharacterOptions().
|
static |
Definition at line 7415 of file Clang.cpp.
Referenced by parseClangCLEHFlags().
|
static |
Definition at line 531 of file Clang.cpp.
Referenced by getFramePointerKind().
|
static |
/EH controls whether to run destructor cleanups when exceptions are thrown.
There are three modifiers:
Definition at line 7436 of file Clang.cpp.
References clang::driver::Driver::Diag(), and maybeConsumeDash().
|
static |
The -mprefer-vector-width option accepts either a positive integer or the string "none".
Definition at line 301 of file Clang.cpp.
References clang::driver::Driver::Diag().
|
static |
The -mrecip flag requires processing of many optional parameters.
Definition at line 192 of file Clang.cpp.
Referenced by RenderFloatingPointOptions().
|
static |
Definition at line 102 of file Clang.cpp.
References clang::Target.
|
static |
Definition at line 1160 of file Clang.cpp.
Referenced by clang::driver::tools::Clang::ConstructJob().
|
static |
Definition at line 3165 of file Clang.cpp.
References clang::driver::InputInfo::getType(), and clang::driver::types::isCXX().
Referenced by clang::driver::tools::Clang::ConstructJob().
|
static |
Definition at line 3498 of file Clang.cpp.
References clang::driver::Driver::Diag().
Referenced by clang::driver::tools::Clang::ConstructJob().
|
static |
Definition at line 3570 of file Clang.cpp.
References clang::driver::ToolChain::getArch().
|
static |
Definition at line 3787 of file Clang.cpp.
References isSignedCharDefault().
|
static |
Definition at line 1078 of file Clang.cpp.
References clang::codegenoptions::DebugDirectivesOnly, clang::codegenoptions::DebugInfoConstructor, clang::codegenoptions::DebugLineTablesOnly, clang::codegenoptions::FullDebugInfo, clang::codegenoptions::LimitedDebugInfo, and clang::codegenoptions::UnusedTypeInfo.
Referenced by CollectArgsForIntegratedAssembler(), and renderDebugOptions().
|
static |
Definition at line 1135 of file Clang.cpp.
References checkDebugInfoOption(), and clang::driver::Driver::Diag().
Referenced by renderDebugOptions().
|
static |
Definition at line 4059 of file Clang.cpp.
References clang::driver::ToolChain::adjustDebugInfoKind(), checkDebugInfoOption(), clang::codegenoptions::DebugDirectivesOnly, clang::codegenoptions::DebugInfoConstructor, DebugLevelToInfoKind(), clang::codegenoptions::DebugLineTablesOnly, clang::driver::Driver::Diag(), clang::codegenoptions::DIF_CodeView, clang::codegenoptions::DIF_DWARF, DwarfVersionNum(), clang::codegenoptions::FullDebugInfo, getDebugFissionKind(), clang::driver::ToolChain::getDefaultDebugFormat(), clang::driver::ToolChain::getDefaultDebuggerTuning(), clang::driver::ToolChain::GetDefaultDwarfVersion(), clang::driver::ToolChain::GetDefaultStandaloneDebug(), getDwarfNArg(), clang::driver::ToolChain::getMaxDwarfVersion(), clang::driver::ToolChain::getTripleString(), clang::codegenoptions::LimitedDebugInfo, min(), clang::codegenoptions::NoDebugInfo, None, clang::driver::tools::ParseDebugDefaultVersion(), RenderDebugEnablingArgs(), RenderDebugInfoCompressionArgs(), renderDwarfFormat(), clang::codegenoptions::UnusedTypeInfo, clang::driver::ToolChain::useIntegratedAs(), and clang::driver::willEmitRemarks().
Referenced by clang::driver::tools::Clang::ConstructJob().
|
static |
Definition at line 3915 of file Clang.cpp.
References clang::driver::Driver::Diag(), clang::DiagnosticsEngine::getDiagnosticOptions(), clang::driver::Driver::getDiags(), and string().
|
static |
Definition at line 4036 of file Clang.cpp.
References clang::driver::Driver::Diag().
Referenced by renderDebugOptions().
|
static |
Definition at line 2734 of file Clang.cpp.
References clang::driver::Driver::Diag(), clang::driver::ToolChain::getDefaultDenormalModeForType(), clang::driver::Action::isDeviceOffloading(), clang::driver::ToolChain::IsMathErrnoDefault(), clang::driver::Action::isOffloading(), clang::driver::Action::OFK_Cuda, clang::driver::Action::OFK_HIP, and ParseMRecip().
Referenced by clang::driver::tools::Clang::ConstructJob().
|
static |
|
static |
|
static |
Definition at line 3822 of file Clang.cpp.
References clang::ObjCRuntime::allowsWeak(), clang::driver::ToolChain::CheckObjCARC(), clang::driver::ToolChain::CST_Libcxx, clang::driver::Driver::Diag(), clang::ObjCRuntime::FragileMacOSX, clang::driver::ToolChain::getArch(), clang::driver::ToolChain::GetCXXStdlibType(), clang::ObjCRuntime::getKind(), clang::driver::InputInfo::getType(), clang::driver::types::isCXX(), clang::ObjCRuntime::isLegacyDispatchDefaultForArch(), clang::ObjCRuntime::isNeXTFamily(), clang::ObjCRuntime::isNonFragile(), clang::driver::types::isObjC(), clang::driver::tools::isObjCAutoRefCount(), and clang::driver::ToolChain::UseObjCMixedDispatch().
|
static |
Definition at line 3441 of file Clang.cpp.
References clang::driver::types::isOpenCL(), clang::driver::types::isSrcFile(), and string().
|
static |
Definition at line 1556 of file Clang.cpp.
References clang::driver::InputInfo::getBaseInput(), clang::driver::InputInfo::getFilename(), clang::driver::Action::getOffloadingArch(), clang::driver::Action::getOffloadingDeviceKind(), clang::driver::Action::GetOffloadingFileNamePrefix(), clang::driver::Action::isDeviceOffloading(), clang::driver::InputInfo::isFilename(), clang::driver::Action::OFK_Host, and clang::driver::Action::OFK_None.
|
static |
Definition at line 3367 of file Clang.cpp.
References clang::driver::ToolChain::getEffectiveTriple().
|
static |
Definition at line 3234 of file Clang.cpp.
References clang::driver::Driver::Diag(), clang::driver::ToolChain::GetDefaultStackProtectorLevel(), clang::driver::ToolChain::getEffectiveTriple(), clang::driver::tools::arm::isHardTPSupported(), Offset, clang::LangOptions::SSPOff, clang::LangOptions::SSPOn, clang::LangOptions::SSPReq, clang::LangOptions::SSPStrong, and string().
|
static |
Definition at line 3382 of file Clang.cpp.
References clang::driver::Driver::Diag(), clang::driver::ToolChain::GetDefaultTrivialAutoVarInit(), clang::LangOptions::Pattern, clang::LangOptions::Uninitialized, and clang::LangOptions::Zero.
|
static |
Definition at line 2156 of file Clang.cpp.
References clang::driver::Driver::Diag(), clang::driver::ToolChain::getDriver(), and clang::driver::ToolChain::getTriple().
|
static |
Definition at line 499 of file Clang.cpp.
References clang::Default, clang::driver::ToolChain::getTriple(), clang::driver::Action::isDeviceOffloading(), clang::driver::Action::OFK_Cuda, clang::driver::Action::OFK_HIP, and clang::driver::ToolChain::useIntegratedAs().
Referenced by clang::driver::tools::Clang::ConstructJob().
|
static |
Definition at line 409 of file Clang.cpp.
References clang::ObjCRuntime::isNonFragile().
Referenced by addExceptionArgs().
|
static |
Definition at line 543 of file Clang.cpp.
References clang::driver::tools::areOptimizationsEnabled().
Referenced by getFramePointerKind().
|
static |
Check if -relax-all should be passed to the internal assembler.
This is done by default when compiling non-assembler source with -O0.
Definition at line 1038 of file Clang.cpp.
References ContainsCompileAction().
Referenced by CollectArgsForIntegratedAssembler().