Home
last modified time | relevance | path

Searched refs:getDriver (Results 1 – 25 of 50) sorted by relevance

12

/llvm-project/clang/lib/Driver/ToolChains/
H A DWebAssembly.cpp57 ToolChain.getDriver().Diag(diag::err_drv_invalid_linker_name) in getLinkerPath()
121 ToolChain.getDriver().Diag(diag::err_drv_invalid_argument_to_option) in ConstructJob()
163 AddRunTimeLibs(ToolChain, ToolChain.getDriver(), CmdArgs, Args); in ConstructJob()
236 getProgramPaths().push_back(getDriver().Dir); in WebAssembly()
238 auto SysRoot = getDriver().SysRoot; in WebAssembly()
247 getMultiarchTriple(getDriver(), Triple, SysRoot); in getDefaultLinker()
298 getDriver().Diag(diag::err_drv_argument_not_allowed_with) in addClangTargetOptions()
303 getDriver().Diag(diag::err_drv_argument_not_allowed_with) in addClangTargetOptions()
308 getDriver().Diag(diag::err_drv_argument_not_allowed_with) in addClangTargetOptions()
313 getDriver() in addClangTargetOptions()
[all...]
H A DMipsLinux.cpp46 const Driver &D = getDriver(); in AddClangSystemIncludeArgs()
69 if (!getDriver().SysRoot.empty()) in computeSysRoot()
70 return getDriver().SysRoot + SelectedMultilibs.back().osSuffix(); in computeSysRoot()
72 const std::string InstalledDir(getDriver().Dir); in computeSysRoot()
87 getDriver().Diag(clang::diag::err_drv_invalid_stdlib_name) in GetCXXStdlibType()
99 Path = getDriver().Dir + Path + "/c++/v1"; in addLibCxxIncludePaths()
123 SmallString<128> Path(getDriver().ResourceDir); in getCompilerRT()
H A DNetBSD.cpp34 const Driver &D = ToolChain.getDriver(); in ConstructJob()
120 const Driver &D = ToolChain.getDriver(); in ConstructJob()
393 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib/i386")); in NetBSD()
402 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib/eabi")); in NetBSD()
406 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib/eabihf")); in NetBSD()
409 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib/oabi")); in NetBSD()
416 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib/o32")); in NetBSD()
418 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib/64")); in NetBSD()
421 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib/powerpc")); in NetBSD()
424 getFilePaths().push_back(concat(getDriver() in NetBSD()
[all...]
H A DAIX.cpp35 const Driver &D = getToolChain().getDriver(); in ConstructJob()
115 const Driver &D = ToolChain.getDriver(); in ConstructJob()
176 ToolChain.getDriver().Diag(diag::err_drv_unsupported_option_argument) in ConstructJob()
253 path::parent_path(ToolChain.getDriver().ClangExecutable) + in ConstructJob()
258 C.getDriver().GetTemporaryPath("CreateExportList", "exp"); in ConstructJob()
299 switch (ToolChain.getDriver().getOpenMPRuntime(Args)) { in ConstructJob()
348 getProgramPaths().push_back(getDriver().Dir); in AIX()
352 getLibraryPaths().push_back(getDriver().SysRoot + "/usr/lib"); in AIX()
361 if (!getDriver().SysRoot.empty()) in GetHeaderSysroot()
362 return getDriver() in GetHeaderSysroot()
[all...]
H A DHIPAMD.cpp84 auto &D = TC.getDriver(); in constructLlvmLinkCommand()
114 if (C.getDriver().isSaveTempsEnabled()) in constructLldCommand()
218 getProgramPaths().push_back(getDriver().Dir); in constructLinkAndEmitSpirvCommand()
291 const OptTable &Opts = getDriver().getOpts(); in addClangTargetOptions()
389 getDriver().Diag(diag::err_drv_no_such_file) << BCName; in getSupportedSanitizers()
393 getDriver().Diag(diag::err_drv_no_rocm_device_lib) << 0; in computeMSVCVersion()
405 unsigned DiagID = getDriver().getDiags().getCustomDiagID( in getDeviceLibs()
410 getDriver().Diag(DiagID); in getDeviceLibs()
431 getDriver().Diag(diag::err_drv_no_such_file) << InstLib; in getDeviceLibs()
442 getDriver() in getDeviceLibs()
[all...]
H A DOHOS.cpp180 getDriver().Diag(clang::diag::err_drv_invalid_rtlib_name) in GetRuntimeLibType()
192 getDriver().Diag(diag::err_drv_invalid_stdlib_name) in GetCXXStdlibType()
201 const Driver &D = getDriver(); in AddClangSystemIncludeArgs()
245 std::string IncPath = makePath({getDriver().Dir, "..", "include"}); in AddClangCXXStdlibIncludeArgs()
276 !getDriver().SysRoot.empty() in computeSysRoot()
277 ? getDriver().SysRoot in computeSysRoot()
278 : makePath({getDriver().Dir, "..", "..", "sysroot"}); in computeSysRoot()
289 const Driver &D = getDriver(); in getRuntimePaths()
343 SmallString<128> Path(getDriver().ResourceDir); in getCompilerRT()
412 makePath({getDriver() in getArchSpecificLibPaths()
[all...]
H A DRISCVToolchain.cpp107 SmallString<128> Dir(getDriver().ResourceDir); in AddClangSystemIncludeArgs()
131 if (!getDriver().SysRoot.empty()) in computeSysRoot()
132 return getDriver().SysRoot; in computeSysRoot()
142 llvm::sys::path::append(SysRootDir, getDriver().Dir, "..", in computeSysRoot()
143 getDriver().getTargetTriple()); in computeSysRoot()
158 const Driver &D = ToolChain.getDriver(); in ConstructJob()
220 AddRunTimeLibs(ToolChain, ToolChain.getDriver(), CmdArgs, Args); in ConstructJob()
H A DDragonFly.cpp58 const Driver &D = ToolChain.getDriver(); in ConstructJob()
210 getProgramPaths().push_back(getDriver().Dir); in DragonFly()
212 getFilePaths().push_back(getDriver().Dir + "/../lib"); in DragonFly()
213 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib")); in DragonFly()
214 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib/gcc80")); in DragonFly()
220 const Driver &D = getDriver(); in AddClangSystemIncludeArgs()
240 addLibStdCXXIncludePaths(concat(getDriver().SysRoot, "/usr/include/c++/8.0"), "", "", in addLibStdCxxIncludePaths()
H A DAMDGPUOpenMP.cpp39 getProgramPaths().push_back(getDriver().Dir); in AMDGPUOpenMPToolChain()
60 if (getDriver().isUsingOffloadLTO()) in addClangTargetOptions()
72 const OptTable &Opts = getDriver().getOpts(); in TranslateArgs()
86 getDriver().Diag(diag::err_drv_undetermined_gpu_arch) in TranslateArgs()
163 getDriver().Diag(diag::err_drv_no_rocm_device_lib) << 0; in getDeviceLibs()
H A DCSKYToolChain.cpp110 if (!getDriver().SysRoot.empty()) in computeSysRoot()
111 return getDriver().SysRoot; in computeSysRoot()
121 llvm::sys::path::append(SysRootDir, getDriver().Dir, "..", in computeSysRoot()
122 getDriver().getTargetTriple()); in computeSysRoot()
137 const Driver &D = ToolChain.getDriver(); in ConstructJob()
190 AddRunTimeLibs(ToolChain, ToolChain.getDriver(), CmdArgs, Args); in ConstructJob()
H A DHIPSPV.cpp30 if (C.getDriver().isSaveTempsEnabled()) { in getTempFile()
33 auto TmpFile = C.getDriver().GetTemporaryPath(Prefix, Extension); in getTempFile()
85 auto PassPluginPath = findPassPlugin(C.getDriver(), Args); in constructLinkAndEmitSpirvCommand()
128 getProgramPaths().push_back(getDriver().Dir); in HIPSPVToolChain()
196 getDriver().Diag(diag::err_drv_hipspv_no_hip_path); in AddHIPIncludeArgs()
241 getDriver().Diag(diag::err_drv_no_such_file) << BCName; in getDeviceLibs()
255 getDriver().Diag(diag::err_drv_no_hipspv_device_lib) in getDeviceLibs()
H A DMinGW.cpp74 bool CXX = getToolChain().getDriver().CCCIsCXX(); in AddLibGCC()
84 AddRunTimeLibs(getToolChain(), getToolChain().getDriver(), CmdArgs, Args); in AddLibGCC()
103 const Driver &D = TC.getDriver(); in ConstructJob()
260 if (C.getDriver().IsFlangMode() && in ConstructJob()
300 switch (TC.getDriver().getOpenMPRuntime(Args)) { in ConstructJob()
498 getProgramPaths().push_back(getDriver().Dir); in MinGW()
501 std::string(llvm::sys::path::parent_path(getDriver().Dir)); in MinGW()
505 if (getDriver().SysRoot.size()) in MinGW()
506 Base = getDriver().SysRoot; in MinGW()
510 getDriver(), LiteralTripl in MinGW()
[all...]
H A DDarwin.cpp224 const Driver &D = getToolChain().getDriver(); in AddLinkArgs()
381 if (C.getDriver().embedBitcodeEnabled()) { in AddLinkArgs()
386 if (C.getDriver().embedBitcodeMarkerOnly() && in AddLinkArgs()
620 checkRemarksOptions(getToolChain().getDriver(), Args, in ConstructJob()
653 const Driver &D = getToolChain().getDriver(); in ConstructJob()
675 getStatsFileName(Args, Output, Inputs[0], getToolChain().getDriver()); in ConstructJob()
720 if (getToolChain().getDriver().IsFlangMode() && in ConstructJob()
751 StringRef Parallelism = getLTOParallelism(Args, getToolChain().getDriver()); in ConstructJob()
852 const Driver &D = getToolChain().getDriver(); in ConstructJob()
968 getProgramPaths().push_back(getDriver() in getDefaultObjCRuntime()
[all...]
H A DNaCl.cpp55 const Driver &D = ToolChain.getDriver(); in ConstructJob()
213 std::string FilePath(getDriver().Dir + "/../"); in NaClToolChain()
216 std::string ProgPath(getDriver().Dir + "/../"); in NaClToolChain()
219 std::string ToolPath(getDriver().ResourceDir + "/lib/"); in NaClToolChain()
255 const Driver &D = getDriver(); in AddClangSystemIncludeArgs()
315 const Driver &D = getDriver(); in addLibCxxIncludePaths()
346 getDriver().Diag(clang::diag::err_drv_invalid_stdlib_name) in GetCXXStdlibType()
H A DHIPUtility.cpp58 DiagID(C.getDriver().getDiags().getCustomDiagID( in HIPUndefinedFatBinSymbols()
87 llvm::Triple Triple(C.getDriver().getTargetTriple());
274 C.getDriver().Diag(DiagID) << llvm::toString(std::move(Err));
301 if (TT.isAMDGCN() && getAMDGPUCodeObjectVersion(C.getDriver(), Args) >= 4) in constructGenerateObjFileFromHIPFatBinary()
346 const Driver &D = C.getDriver(); in constructGenerateObjFileFromHIPFatBinary()
H A DMSP430.cpp136 if (!getDriver().SysRoot.empty()) in computeSysRoot()
137 return getDriver().SysRoot; in computeSysRoot()
143 llvm::sys::path::append(Dir, getDriver().Dir, ".."); in computeSysRoot()
194 const Driver &D = ToolChain.getDriver(); in AddDefaultLibs()
221 const Driver &D = ToolChain.getDriver(); in AddEndFiles()
269 const Driver &D = ToolChain.getDriver(); in ConstructJob()
H A DCuda.cpp402 C.getDriver().Diag(diag::err_drv_offload_missing_gpu_arch) in ConstructJob()
604 if (GPUArch.empty() && !C.getDriver().isUsingLTO()) { in ConstructJob()
605 C.getDriver().Diag(diag::err_drv_offload_missing_gpu_arch) in ConstructJob()
631 if (C.getDriver().isUsingLTO()) in ConstructJob()
633 C.getDriver().getLTOMode() == LTOK_Thin); in ConstructJob()
637 getNVPTXTargetFeatures(C.getDriver(), getToolChain().getTriple(), Args, in ConstructJob()
647 llvm::sys::path::parent_path(TC.getDriver().Dir); in ConstructJob()
736 getProgramPaths().push_back(getDriver().Dir); in NVPTXToolChain()
754 const OptTable &Opts = getDriver().getOpts(); in TranslateArgs()
769 getDriver() in TranslateArgs()
[all...]
H A DOpenBSD.cpp34 const Driver &D = ToolChain.getDriver(); in ConstructJob()
113 const Driver &D = ToolChain.getDriver(); in ConstructJob()
320 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib")); in OpenBSD()
326 const Driver &D = getDriver(); in AddClangSystemIncludeArgs()
360 concat(getDriver().SysRoot, "/usr/include/c++/v1")); in addLibCxxIncludePaths()
377 SmallString<128> Path(getDriver().SysRoot); in getCompilerRT()
382 SmallString<128> P(getDriver().ResourceDir); in getCompilerRT()
H A DMSVC.cpp94 !C.getDriver().IsCLMode() && !C.getDriver().IsFlangMode()) { in ConstructJob()
143 if (!C.getDriver().IsCLMode() && Args.hasArg(options::OPT_L)) in ConstructJob()
147 if (C.getDriver().IsFlangMode() && in ConstructJob()
258 TC.getDriver().Dir + "/../lib")); in ConstructJob()
259 switch (TC.getDriver().getOpenMPRuntime(Args)) { in ConstructJob()
277 AddRunTimeLibs(TC, TC.getDriver(), CmdArgs, Args); in ConstructJob()
293 if (C.getDriver().isUsingLTO() && in ConstructJob()
348 C.getDriver().Diag(clang::diag::warn_drv_msvc_not_found); in ConstructJob()
350 C.getDriver() in ConstructJob()
[all...]
H A DHaiku.cpp27 const Driver &D = ToolChain.getDriver(); in ConstructJob()
171 getFilePaths().push_back(concat(getDriver().SysRoot, "/boot/system/lib")); in Haiku()
172 getFilePaths().push_back(concat(getDriver().SysRoot, "/boot/system/develop/lib")); in Haiku()
180 const Driver &D = getDriver(); in AddClangSystemIncludeArgs()
278 concat(getDriver().SysRoot, "/boot/system/develop/headers/c++/v1")); in addLibCxxIncludePaths()
H A DFuchsia.cpp38 const Driver &D = ToolChain.getDriver(); in ConstructJob()
215 const Driver &D = getToolChain().getDriver(); in ConstructJob()
260 getProgramPaths().push_back(getDriver().Dir); in Fuchsia()
360 getDriver().Diag(clang::diag::err_drv_invalid_rtlib_name) in GetRuntimeLibType()
371 getDriver().Diag(diag::err_drv_invalid_stdlib_name) in GetCXXStdlibType()
388 const Driver &D = getDriver(); in AddClangSystemIncludeArgs()
428 const Driver &D = getDriver(); in AddClangCXXStdlibIncludeArgs()
H A DFreeBSD.cpp34 const auto &D = getToolChain().getDriver(); in ConstructJob()
135 const Driver &D = ToolChain.getDriver(); in ConstructJob()
407 D.getVFS().exists(concat(getDriver().SysRoot, "/usr/lib32/crt1.o")))
408 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib32")); in AddClangSystemIncludeArgs()
410 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib")); in AddClangSystemIncludeArgs()
416 const Driver &D = getDriver(); in AddClangSystemIncludeArgs()
450 concat(getDriver().SysRoot, "/usr/include/c++/v1")); in AddCXXStdlibLibArgs()
H A DHLSL.cpp233 const OptTable &Opts = getDriver().getOpts(); in TranslateArgs()
239 if (!isLegalValidatorVersion(ValVerStr, getDriver())) in TranslateArgs()
277 getDriver().Diag(diag::err_drv_invalid_value) << "HV" << A->getValue(); in TranslateArgs()
301 getDriver().Diag(diag::warn_drv_dxc_missing_dxv); in requiresValidation()
/llvm-project/clang/lib/Driver/
H A DCompilation.cpp131 getDriver().Diag(diag::err_drv_unable_to_remove_file) in CleanupFile()
163 if ((getDriver().CCPrintOptions || in ExecuteCommand()
164 getArgs().hasArg(options::OPT_v)) && !getDriver().CCGenDiagnostics) { in ExecuteCommand()
170 if (getDriver().CCPrintOptions && in ExecuteCommand()
171 !getDriver().CCPrintOptionsFilename.empty()) { in ExecuteCommand()
174 getDriver().CCPrintOptionsFilename, EC, in ExecuteCommand()
177 getDriver().Diag(diag::err_drv_cc_print_options_failure) in ExecuteCommand()
185 if (getDriver().CCPrintOptions) in ExecuteCommand()
188 C.Print(*OS, "\n", /*Quote=*/getDriver().CCPrintOptions); in ExecuteCommand()
201 getDriver() in ExecuteCommand()
[all...]
H A DToolChain.cpp154 return getDriver().getVFS(); in useIntegratedBackend()
711 SmallString<128> Path(getDriver().ResourceDir);
917 SmallString<128> Path(getDriver().ResourceDir); in GetLinkerPath()
952 if (D.IsFlangMode() && getDriver().ShouldUseFlangCompiler(JA)) return getFlang();
953 if (getDriver().ShouldUseClangCompiler(JA)) return getClang(); in LookupTypeForExtension()
994 getDriver().Diag(diag::err_drv_invalid_linker_name) << A->getAsString(Args);
1012 getDriver().Diag(diag::warn_drv_fuse_ld_path); in ComputeLLVMTriple()
1036 getDriver().Diag(diag::err_drv_invalid_linker_name) << A->getAsString(Args); in ComputeLLVMTriple()
1125 tools::aarch64::setPAuthABIInTriple(getDriver(), Args, Triple); in GetUnwindLibType()
1151 tools::arm::setArchNameInTriple(getDriver(), Arg in GetCXXStdlibType()
[all...]

12