Lines Matching refs:ToolChain
64 static ToolChain::RTTIMode CalculateRTTIMode(const ArgList &Args, in CalculateRTTIMode()
70 return ToolChain::RM_Enabled; in CalculateRTTIMode()
72 return ToolChain::RM_Disabled; in CalculateRTTIMode()
77 return NoRTTI ? ToolChain::RM_Disabled : ToolChain::RM_Enabled; in CalculateRTTIMode()
80 static ToolChain::ExceptionsMode CalculateExceptionsMode(const ArgList &Args) { in CalculateExceptionsMode()
83 return ToolChain::EM_Enabled; in CalculateExceptionsMode()
85 return ToolChain::EM_Disabled; in CalculateExceptionsMode()
88 ToolChain::ToolChain(const Driver &D, const llvm::Triple &T, in ToolChain() function in ToolChain
107 ToolChain::executeToolChainProgram(StringRef Executable, in executeToolChainProgram()
133 void ToolChain::setTripleEnvironment(llvm::Triple::EnvironmentType Env) { in setTripleEnvironment()
139 ToolChain::~ToolChain() = default;
141 llvm::vfs::FileSystem &ToolChain::getVFS() const { in getVFS()
145 bool ToolChain::useIntegratedAs() const { in useIntegratedAs()
151 bool ToolChain::useIntegratedBackend() const { in useIntegratedBackend()
179 bool ToolChain::useRelaxRelocations() const { in useRelaxRelocations()
183 bool ToolChain::defaultToIEEELongDouble() const { in defaultToIEEELongDouble()
262 ToolChain::getMultilibFlags(const llvm::opt::ArgList &Args) const { in getMultilibFlags()
287 if (getRTTIMode() == ToolChain::RTTIMode::RM_Disabled) in getMultilibFlags()
292 if (getExceptionsMode() == ToolChain::ExceptionsMode::EM_Disabled) in getMultilibFlags()
304 ToolChain::getSanitizerArgs(const llvm::opt::ArgList &JobArgs) const { in getSanitizerArgs()
310 const XRayArgs& ToolChain::getXRayArgs() const { in getXRayArgs()
402 ToolChain::getTargetAndModeFromProgramName(StringRef PN) { in getTargetAndModeFromProgramName()
426 StringRef ToolChain::getDefaultUniversalArchName() const { in getDefaultUniversalArchName()
451 std::string ToolChain::getInputFilename(const InputInfo &Input) const { in getInputFilename()
455 ToolChain::UnwindTableLevel
456 ToolChain::getDefaultUnwindTableLevel(const ArgList &Args) const { in getDefaultUnwindTableLevel()
460 Tool *ToolChain::getClang() const { in getClang()
466 Tool *ToolChain::getFlang() const { in getFlang()
472 Tool *ToolChain::buildAssembler() const { in buildAssembler()
476 Tool *ToolChain::buildLinker() const { in buildLinker()
480 Tool *ToolChain::buildStaticLibTool() const { in buildStaticLibTool()
484 Tool *ToolChain::getAssemble() const { in getAssemble()
490 Tool *ToolChain::getClangAs() const { in getClangAs()
496 Tool *ToolChain::getLink() const { in getLink()
502 Tool *ToolChain::getStaticLibTool() const { in getStaticLibTool()
508 Tool *ToolChain::getIfsMerge() const { in getIfsMerge()
514 Tool *ToolChain::getOffloadBundler() const { in getOffloadBundler()
520 Tool *ToolChain::getOffloadPackager() const { in getOffloadPackager()
526 Tool *ToolChain::getLinkerWrapper() const { in getLinkerWrapper()
532 Tool *ToolChain::getTool(Action::ActionClass AC) const { in getTool()
578 static StringRef getArchNameForCompilerRTLib(const ToolChain &TC, in getArchNameForCompilerRTLib()
601 StringRef ToolChain::getOSLibName() const { in getOSLibName()
621 std::string ToolChain::getCompilerRTPath() const { in getCompilerRTPath()
636 std::string ToolChain::getCompilerRTBasename(const ArgList &Args, in getCompilerRTBasename()
643 std::string ToolChain::buildCompilerRTBasename(const llvm::opt::ArgList &Args, in buildCompilerRTBasename()
652 IsITANMSVCWindows || Type == ToolChain::FT_Object ? "" : "lib"; in buildCompilerRTBasename()
655 case ToolChain::FT_Object: in buildCompilerRTBasename()
658 case ToolChain::FT_Static: in buildCompilerRTBasename()
661 case ToolChain::FT_Shared: in buildCompilerRTBasename()
677 std::string ToolChain::getCompilerRT(const ArgList &Args, StringRef Component, in getCompilerRT()
708 const char *ToolChain::getCompilerRTArgString(const llvm::opt::ArgList &Args, in getCompilerRTArgString()
718 ToolChain::getFallbackAndroidTargetPath(StringRef BaseDir) const { in getFallbackAndroidTargetPath()
759 ToolChain::getTargetSubDirPath(StringRef BaseDir) const { in getTargetSubDirPath()
800 std::optional<std::string> ToolChain::getRuntimePath() const { in getRuntimePath()
812 std::optional<std::string> ToolChain::getStdlibPath() const { in getStdlibPath()
818 std::optional<std::string> ToolChain::getStdlibIncludePath() const { in getStdlibIncludePath()
824 ToolChain::path_list ToolChain::getArchSpecificLibPaths() const { in getArchSpecificLibPaths()
840 bool ToolChain::needsProfileRT(const ArgList &Args) { in needsProfileRT()
854 bool ToolChain::needsGCovInstrumentation(const llvm::opt::ArgList &Args) { in needsGCovInstrumentation()
860 Tool *ToolChain::SelectTool(const JobAction &JA) const { in SelectTool()
870 std::string ToolChain::GetFilePath(const char *Name) const { in GetFilePath()
874 std::string ToolChain::GetProgramPath(const char *Name) const { in GetProgramPath()
878 std::string ToolChain::GetLinkerPath(bool *LinkerIsLLD) const { in GetLinkerPath()
950 std::string ToolChain::GetStaticLibToolPath() const { in GetStaticLibToolPath()
957 types::ID ToolChain::LookupTypeForExtension(StringRef Ext) const { in LookupTypeForExtension()
969 bool ToolChain::HasNativeLLVMSupport() const { in HasNativeLLVMSupport()
973 bool ToolChain::isCrossCompiling() const { in isCrossCompiling()
989 ObjCRuntime ToolChain::getDefaultObjCRuntime(bool isNonFragile) const { in getDefaultObjCRuntime()
995 ToolChain::GetExceptionModel(const llvm::opt::ArgList &Args) const { in GetExceptionModel()
999 bool ToolChain::isThreadModelSupported(const StringRef Model) const { in isThreadModelSupported()
1012 std::string ToolChain::ComputeLLVMTriple(const ArgList &Args, in ComputeLLVMTriple()
1061 std::string ToolChain::ComputeEffectiveClangTriple(const ArgList &Args, in ComputeEffectiveClangTriple()
1066 std::string ToolChain::computeSysRoot() const { in computeSysRoot()
1070 void ToolChain::AddClangSystemIncludeArgs(const ArgList &DriverArgs, in AddClangSystemIncludeArgs()
1075 void ToolChain::addClangTargetOptions( in addClangTargetOptions()
1079 void ToolChain::addClangCC1ASTargetOptions(const ArgList &Args, in addClangCC1ASTargetOptions()
1082 void ToolChain::addClangWarningOptions(ArgStringList &CC1Args) const {} in addClangWarningOptions()
1084 void ToolChain::addProfileRTLibs(const llvm::opt::ArgList &Args, in addProfileRTLibs()
1092 ToolChain::RuntimeLibType ToolChain::GetRuntimeLibType( in GetRuntimeLibType()
1102 runtimeLibType = ToolChain::RLT_CompilerRT; in GetRuntimeLibType()
1104 runtimeLibType = ToolChain::RLT_Libgcc; in GetRuntimeLibType()
1118 ToolChain::UnwindLibType ToolChain::GetUnwindLibType( in GetUnwindLibType()
1127 unwindLibType = ToolChain::UNW_None; in GetUnwindLibType()
1129 ToolChain::RuntimeLibType RtLibType = GetRuntimeLibType(Args); in GetUnwindLibType()
1130 if (RtLibType == ToolChain::RLT_CompilerRT) { in GetUnwindLibType()
1132 unwindLibType = ToolChain::UNW_CompilerRT; in GetUnwindLibType()
1134 unwindLibType = ToolChain::UNW_None; in GetUnwindLibType()
1135 } else if (RtLibType == ToolChain::RLT_Libgcc) in GetUnwindLibType()
1136 unwindLibType = ToolChain::UNW_Libgcc; in GetUnwindLibType()
1140 unwindLibType = ToolChain::UNW_CompilerRT; in GetUnwindLibType()
1142 unwindLibType = ToolChain::UNW_Libgcc; in GetUnwindLibType()
1154 ToolChain::CXXStdlibType ToolChain::GetCXXStdlibType(const ArgList &Args) const{ in GetCXXStdlibType()
1163 cxxStdlibType = ToolChain::CST_Libcxx; in GetCXXStdlibType()
1165 cxxStdlibType = ToolChain::CST_Libstdcxx; in GetCXXStdlibType()
1180 /*static*/ void ToolChain::addSystemInclude(const ArgList &DriverArgs, in addSystemInclude()
1195 /*static*/ void ToolChain::addExternCSystemInclude(const ArgList &DriverArgs, in addExternCSystemInclude()
1202 void ToolChain::addExternCSystemIncludeIfExists(const ArgList &DriverArgs, in addExternCSystemIncludeIfExists()
1210 /*static*/ void ToolChain::addSystemIncludes(const ArgList &DriverArgs, in addSystemIncludes()
1219 /*static*/ std::string ToolChain::concat(StringRef Path, const Twine &A, in concat()
1227 std::string ToolChain::detectLibcxxVersion(StringRef IncludePath) const { in detectLibcxxVersion()
1250 void ToolChain::AddClangCXXStdlibIncludeArgs(const ArgList &DriverArgs, in AddClangCXXStdlibIncludeArgs()
1264 void ToolChain::AddClangCXXStdlibIsystemArgs( in AddClangCXXStdlibIsystemArgs()
1282 bool ToolChain::ShouldLinkCXXStdlib(const llvm::opt::ArgList &Args) const { in ShouldLinkCXXStdlib()
1288 void ToolChain::AddCXXStdlibLibArgs(const ArgList &Args, in AddCXXStdlibLibArgs()
1295 case ToolChain::CST_Libcxx: in AddCXXStdlibLibArgs()
1301 case ToolChain::CST_Libstdcxx: in AddCXXStdlibLibArgs()
1307 void ToolChain::AddFilePathLibArgs(const ArgList &Args, in AddFilePathLibArgs()
1314 void ToolChain::AddCCKextLibArgs(const ArgList &Args, in AddCCKextLibArgs()
1319 bool ToolChain::isFastMathRuntimeAvailable(const ArgList &Args, in isFastMathRuntimeAvailable()
1355 bool ToolChain::addFastMathRuntimeIfAvailable(const ArgList &Args, in addFastMathRuntimeIfAvailable()
1367 ToolChain::getSystemGPUArchs(const llvm::opt::ArgList &Args) const { in getSystemGPUArchs()
1371 SanitizerMask ToolChain::getSupportedSanitizers() const { in getSupportedSanitizers()
1396 void ToolChain::AddCudaIncludeArgs(const ArgList &DriverArgs, in AddCudaIncludeArgs()
1399 void ToolChain::AddHIPIncludeArgs(const ArgList &DriverArgs, in AddHIPIncludeArgs()
1402 llvm::SmallVector<ToolChain::BitCodeLibraryInfo, 12>
1403 ToolChain::getDeviceLibs(const ArgList &DriverArgs) const { in getDeviceLibs()
1407 void ToolChain::AddIAMCUIncludeArgs(const ArgList &DriverArgs, in AddIAMCUIncludeArgs()
1424 ToolChain::computeMSVCVersion(const Driver *D, in computeMSVCVersion()
1464 llvm::opt::DerivedArgList *ToolChain::TranslateOpenMPTargetArgs( in TranslateOpenMPTargetArgs()
1539 void ToolChain::TranslateXarchArgs( in TranslateXarchArgs()
1581 llvm::opt::DerivedArgList *ToolChain::TranslateXarchArgs( in TranslateXarchArgs()