Lines Matching refs:TC
59 static std::string FindVisualStudioExecutable(const ToolChain &TC, in FindVisualStudioExecutable() argument
61 const auto &MSVC = static_cast<const toolchains::MSVCToolChain &>(TC); in FindVisualStudioExecutable()
65 return std::string(canExecute(TC.getVFS(), FilePath) ? FilePath.str() : Exe); in FindVisualStudioExecutable()
75 auto &TC = static_cast<const toolchains::MSVCToolChain &>(getToolChain()); in ConstructJob() local
84 else if (TC.getTriple().isWindowsArm64EC()) in ConstructJob()
109 llvm::archToLegacyVCArch(TC.getArch())); in ConstructJob()
117 TC.getSubDirectoryPath(llvm::SubDirectoryType::Lib))); in ConstructJob()
120 TC.getSubDirectoryPath(llvm::SubDirectoryType::Lib, "atlmfc"))); in ConstructJob()
125 if (TC.useUniversalCRT()) { in ConstructJob()
127 if (TC.getUniversalCRTLibraryPath(Args, UniversalCRTLibPath)) in ConstructJob()
132 if (TC.getWindowsSDKLibraryPath(Args, WindowsSdkLibPath)) in ConstructJob()
142 addFortranRuntimeLibraryPath(TC, Args, CmdArgs); in ConstructJob()
143 addFortranRuntimeLibs(TC, Args, CmdArgs); in ConstructJob()
153 for (const auto &LibPath : TC.getLibraryPaths()) { in ConstructJob()
154 if (TC.getVFS().exists(LibPath)) in ConstructJob()
157 auto CRTPath = TC.getCompilerRTPath(); in ConstructJob()
158 if (TC.getVFS().exists(CRTPath)) in ConstructJob()
190 if (TC.getSanitizerArgs(Args).needsFuzzer()) { in ConstructJob()
194 TC.getCompilerRTArgString(Args, "fuzzer"))); in ConstructJob()
201 if (TC.getSanitizerArgs(Args).needsAsanRt()) { in ConstructJob()
204 if (TC.getSanitizerArgs(Args).needsSharedRt() || in ConstructJob()
207 CmdArgs.push_back(TC.getCompilerRTArgString(Args, Lib)); in ConstructJob()
211 TC.getArch() == llvm::Triple::x86 in ConstructJob()
217 TC.getCompilerRT(Args, "asan_dynamic_runtime_thunk"))); in ConstructJob()
219 CmdArgs.push_back(TC.getCompilerRTArgString(Args, "asan_dll_thunk")); in ConstructJob()
222 CmdArgs.push_back(TC.getCompilerRTArgString(Args, Lib)); in ConstructJob()
227 TC.getCompilerRT(Args, Lib))); in ConstructJob()
255 TC.getDriver().Dir + "/../lib")); in ConstructJob()
256 switch (TC.getDriver().getOpenMPRuntime(Args)) { in ConstructJob()
274 AddRunTimeLibs(TC, TC.getDriver(), CmdArgs, Args); in ConstructJob()
323 addHIPRuntimeLibArgs(TC, C, Args, CmdArgs); in ConstructJob()
325 TC.addProfileRTLibs(Args, CmdArgs); in ConstructJob()
336 linkPath = FindVisualStudioExecutable(TC, "link.exe"); in ConstructJob()
338 if (!TC.FoundMSVCInstall() && !canExecute(TC.getVFS(), linkPath)) { in ConstructJob()
340 ClPath = TC.GetProgramPath("cl.exe"); in ConstructJob()
341 if (canExecute(TC.getVFS(), ClPath)) { in ConstructJob()
344 if (!canExecute(TC.getVFS(), linkPath)) in ConstructJob()
353 if (TC.getSanitizerArgs(Args).needsAsanRt()) in ConstructJob()
363 if (TC.getIsVS2017OrNewer() && in ConstructJob()
364 llvm::Triple(llvm::sys::getProcessTriple()).getArch() != TC.getArch()) { in ConstructJob()
400 TC.getSubDirectoryPath(llvm::SubDirectoryType::Bin) + in ConstructJob()
402 TC.getSubDirectoryPath(llvm::SubDirectoryType::Bin, HostArch) + in ConstructJob()
416 linkPath = TC.GetProgramPath(Linker.str().c_str()); in ConstructJob()