Lines Matching refs:ToolChain

59 static ToolChain::RTTIMode CalculateRTTIMode(const ArgList &Args,  in CalculateRTTIMode()
65 return ToolChain::RM_Enabled; in CalculateRTTIMode()
67 return ToolChain::RM_Disabled; in CalculateRTTIMode()
72 return NoRTTI ? ToolChain::RM_Disabled : ToolChain::RM_Enabled; in CalculateRTTIMode()
75 ToolChain::ToolChain(const Driver &D, const llvm::Triple &T, in ToolChain() function in ToolChain
91 void ToolChain::setTripleEnvironment(llvm::Triple::EnvironmentType Env) { in setTripleEnvironment()
97 ToolChain::~ToolChain() = default;
99 llvm::vfs::FileSystem &ToolChain::getVFS() const { in getVFS()
103 bool ToolChain::useIntegratedAs() const { in useIntegratedAs()
109 bool ToolChain::useIntegratedBackend() const { in useIntegratedBackend()
137 bool ToolChain::useRelaxRelocations() const { in useRelaxRelocations()
141 bool ToolChain::defaultToIEEELongDouble() const { in defaultToIEEELongDouble()
146 ToolChain::getSanitizerArgs(const llvm::opt::ArgList &JobArgs) const { in getSanitizerArgs()
152 const XRayArgs& ToolChain::getXRayArgs() const { in getXRayArgs()
237 ToolChain::getTargetAndModeFromProgramName(StringRef PN) { in getTargetAndModeFromProgramName()
261 StringRef ToolChain::getDefaultUniversalArchName() const { in getDefaultUniversalArchName()
286 std::string ToolChain::getInputFilename(const InputInfo &Input) const { in getInputFilename()
290 bool ToolChain::IsUnwindTablesDefault(const ArgList &Args) const { in IsUnwindTablesDefault()
294 Tool *ToolChain::getClang() const { in getClang()
300 Tool *ToolChain::getFlang() const { in getFlang()
306 Tool *ToolChain::buildAssembler() const { in buildAssembler()
310 Tool *ToolChain::buildLinker() const { in buildLinker()
314 Tool *ToolChain::buildStaticLibTool() const { in buildStaticLibTool()
318 Tool *ToolChain::getAssemble() const { in getAssemble()
324 Tool *ToolChain::getClangAs() const { in getClangAs()
330 Tool *ToolChain::getLink() const { in getLink()
336 Tool *ToolChain::getStaticLibTool() const { in getStaticLibTool()
342 Tool *ToolChain::getIfsMerge() const { in getIfsMerge()
348 Tool *ToolChain::getOffloadBundler() const { in getOffloadBundler()
354 Tool *ToolChain::getOffloadWrapper() const { in getOffloadWrapper()
360 Tool *ToolChain::getOffloadPackager() const { in getOffloadPackager()
366 Tool *ToolChain::getLinkerWrapper() const { in getLinkerWrapper()
372 Tool *ToolChain::getTool(Action::ActionClass AC) const { in getTool()
420 static StringRef getArchNameForCompilerRTLib(const ToolChain &TC, in getArchNameForCompilerRTLib()
440 StringRef ToolChain::getOSLibName() const { in getOSLibName()
460 std::string ToolChain::getCompilerRTPath() const { in getCompilerRTPath()
470 std::string ToolChain::getCompilerRTBasename(const ArgList &Args, in getCompilerRTBasename()
477 std::string ToolChain::buildCompilerRTBasename(const llvm::opt::ArgList &Args, in buildCompilerRTBasename()
486 IsITANMSVCWindows || Type == ToolChain::FT_Object ? "" : "lib"; in buildCompilerRTBasename()
489 case ToolChain::FT_Object: in buildCompilerRTBasename()
492 case ToolChain::FT_Static: in buildCompilerRTBasename()
495 case ToolChain::FT_Shared: in buildCompilerRTBasename()
511 std::string ToolChain::getCompilerRT(const ArgList &Args, StringRef Component, in getCompilerRT()
532 const char *ToolChain::getCompilerRTArgString(const llvm::opt::ArgList &Args, in getCompilerRTArgString()
538 ToolChain::path_list ToolChain::getRuntimePaths() const { in getRuntimePaths()
560 ToolChain::path_list ToolChain::getStdlibPaths() const { in getStdlibPaths()
569 std::string ToolChain::getArchSpecificLibPath() const { in getArchSpecificLibPath()
576 bool ToolChain::needsProfileRT(const ArgList &Args) { in needsProfileRT()
590 bool ToolChain::needsGCovInstrumentation(const llvm::opt::ArgList &Args) { in needsGCovInstrumentation()
596 Tool *ToolChain::SelectTool(const JobAction &JA) const { in SelectTool()
605 std::string ToolChain::GetFilePath(const char *Name) const { in GetFilePath()
609 std::string ToolChain::GetProgramPath(const char *Name) const { in GetProgramPath()
613 std::string ToolChain::GetLinkerPath(bool *LinkerIsLLD) const { in GetLinkerPath()
680 std::string ToolChain::GetStaticLibToolPath() const { in GetStaticLibToolPath()
687 types::ID ToolChain::LookupTypeForExtension(StringRef Ext) const { in LookupTypeForExtension()
699 bool ToolChain::HasNativeLLVMSupport() const { in HasNativeLLVMSupport()
703 bool ToolChain::isCrossCompiling() const { in isCrossCompiling()
719 ObjCRuntime ToolChain::getDefaultObjCRuntime(bool isNonFragile) const { in getDefaultObjCRuntime()
725 ToolChain::GetExceptionModel(const llvm::opt::ArgList &Args) const { in GetExceptionModel()
729 bool ToolChain::isThreadModelSupported(const StringRef Model) const { in isThreadModelSupported()
742 std::string ToolChain::ComputeLLVMTriple(const ArgList &Args, in ComputeLLVMTriple()
790 std::string ToolChain::ComputeEffectiveClangTriple(const ArgList &Args, in ComputeEffectiveClangTriple()
795 std::string ToolChain::computeSysRoot() const { in computeSysRoot()
799 void ToolChain::AddClangSystemIncludeArgs(const ArgList &DriverArgs, in AddClangSystemIncludeArgs()
804 void ToolChain::addClangTargetOptions( in addClangTargetOptions()
808 void ToolChain::addClangWarningOptions(ArgStringList &CC1Args) const {} in addClangWarningOptions()
810 void ToolChain::addProfileRTLibs(const llvm::opt::ArgList &Args, in addProfileRTLibs()
818 ToolChain::RuntimeLibType ToolChain::GetRuntimeLibType( in GetRuntimeLibType()
828 runtimeLibType = ToolChain::RLT_CompilerRT; in GetRuntimeLibType()
830 runtimeLibType = ToolChain::RLT_Libgcc; in GetRuntimeLibType()
844 ToolChain::UnwindLibType ToolChain::GetUnwindLibType( in GetUnwindLibType()
853 unwindLibType = ToolChain::UNW_None; in GetUnwindLibType()
855 ToolChain::RuntimeLibType RtLibType = GetRuntimeLibType(Args); in GetUnwindLibType()
856 if (RtLibType == ToolChain::RLT_CompilerRT) { in GetUnwindLibType()
858 unwindLibType = ToolChain::UNW_CompilerRT; in GetUnwindLibType()
860 unwindLibType = ToolChain::UNW_None; in GetUnwindLibType()
861 } else if (RtLibType == ToolChain::RLT_Libgcc) in GetUnwindLibType()
862 unwindLibType = ToolChain::UNW_Libgcc; in GetUnwindLibType()
866 unwindLibType = ToolChain::UNW_CompilerRT; in GetUnwindLibType()
868 unwindLibType = ToolChain::UNW_Libgcc; in GetUnwindLibType()
880 ToolChain::CXXStdlibType ToolChain::GetCXXStdlibType(const ArgList &Args) const{ in GetCXXStdlibType()
889 cxxStdlibType = ToolChain::CST_Libcxx; in GetCXXStdlibType()
891 cxxStdlibType = ToolChain::CST_Libstdcxx; in GetCXXStdlibType()
906 /*static*/ void ToolChain::addSystemInclude(const ArgList &DriverArgs, in addSystemInclude()
921 /*static*/ void ToolChain::addExternCSystemInclude(const ArgList &DriverArgs, in addExternCSystemInclude()
928 void ToolChain::addExternCSystemIncludeIfExists(const ArgList &DriverArgs, in addExternCSystemIncludeIfExists()
936 /*static*/ void ToolChain::addSystemIncludes(const ArgList &DriverArgs, in addSystemIncludes()
945 /*static*/ std::string ToolChain::concat(StringRef Path, const Twine &A, in concat()
953 std::string ToolChain::detectLibcxxVersion(StringRef IncludePath) const { in detectLibcxxVersion()
976 void ToolChain::AddClangCXXStdlibIncludeArgs(const ArgList &DriverArgs, in AddClangCXXStdlibIncludeArgs()
990 void ToolChain::AddClangCXXStdlibIsystemArgs( in AddClangCXXStdlibIsystemArgs()
1001 bool ToolChain::ShouldLinkCXXStdlib(const llvm::opt::ArgList &Args) const { in ShouldLinkCXXStdlib()
1007 void ToolChain::AddCXXStdlibLibArgs(const ArgList &Args, in AddCXXStdlibLibArgs()
1014 case ToolChain::CST_Libcxx: in AddCXXStdlibLibArgs()
1020 case ToolChain::CST_Libstdcxx: in AddCXXStdlibLibArgs()
1026 void ToolChain::AddFilePathLibArgs(const ArgList &Args, in AddFilePathLibArgs()
1033 void ToolChain::AddCCKextLibArgs(const ArgList &Args, in AddCCKextLibArgs()
1038 bool ToolChain::isFastMathRuntimeAvailable(const ArgList &Args, in isFastMathRuntimeAvailable()
1058 bool ToolChain::addFastMathRuntimeIfAvailable(const ArgList &Args, in addFastMathRuntimeIfAvailable()
1069 SanitizerMask ToolChain::getSupportedSanitizers() const { in getSupportedSanitizers()
1094 void ToolChain::AddCudaIncludeArgs(const ArgList &DriverArgs, in AddCudaIncludeArgs()
1097 void ToolChain::AddHIPIncludeArgs(const ArgList &DriverArgs, in AddHIPIncludeArgs()
1100 llvm::SmallVector<ToolChain::BitCodeLibraryInfo, 12>
1101 ToolChain::getHIPDeviceLibs(const ArgList &DriverArgs) const { in getHIPDeviceLibs()
1105 void ToolChain::AddIAMCUIncludeArgs(const ArgList &DriverArgs, in AddIAMCUIncludeArgs()
1122 ToolChain::computeMSVCVersion(const Driver *D, in computeMSVCVersion()
1162 llvm::opt::DerivedArgList *ToolChain::TranslateOpenMPTargetArgs( in TranslateOpenMPTargetArgs()
1234 void ToolChain::TranslateXarchArgs( in TranslateXarchArgs()
1276 llvm::opt::DerivedArgList *ToolChain::TranslateXarchArgs( in TranslateXarchArgs()