Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/
H A DWebAssembly.cpp56 ToolChain.getDriver().Diag(diag::err_drv_invalid_linker_name) in getLinkerPath()
113 ToolChain.getDriver().Diag(diag::err_drv_invalid_argument_to_option) in ConstructJob()
155 AddRunTimeLibs(ToolChain, ToolChain.getDriver(), CmdArgs, Args); in ConstructJob()
220 getProgramPaths().push_back(getDriver().Dir); in WebAssembly()
222 auto SysRoot = getDriver().SysRoot; in WebAssembly()
231 getMultiarchTriple(getDriver(), Triple, SysRoot); in WebAssembly()
282 getDriver().Diag(diag::err_drv_argument_not_allowed_with) in addClangTargetOptions()
287 getDriver().Diag(diag::err_drv_argument_not_allowed_with) in addClangTargetOptions()
292 getDriver().Diag(diag::err_drv_argument_not_allowed_with) in addClangTargetOptions()
297 getDriver().Diag(diag::err_drv_argument_not_allowed_with) 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()
392 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib/i386")); in NetBSD()
401 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib/eabi")); in NetBSD()
405 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib/eabihf")); in NetBSD()
408 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib/oabi")); in NetBSD()
415 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib/o32")); in NetBSD()
417 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib/64")); in NetBSD()
420 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib/powerpc")); in NetBSD()
423 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib/sparc")); 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()
347 getProgramPaths().push_back(getDriver().Dir); in AIX()
351 getLibraryPaths().push_back(getDriver().SysRoot + "/usr/lib"); in AIX()
360 if (!getDriver().SysRoot.empty()) in GetHeaderSysroot()
361 return getDriver().SysRoot; in GetHeaderSysroot()
[all …]
H A DHIPAMD.cpp54 auto &Diags = TC.getDriver().getDiags(); in shouldSkipSanitizeOption()
121 auto &D = TC.getDriver(); in constructLldCommand()
151 if (C.getDriver().isSaveTempsEnabled()) in constructLldCommand()
256 getProgramPaths().push_back(getDriver().Dir); in HIPAMDToolChain()
327 const OptTable &Opts = getDriver().getOpts(); in TranslateArgs()
426 getDriver().Diag(diag::err_drv_no_such_file) << BCName; in getDeviceLibs()
430 getDriver().Diag(diag::err_drv_no_rocm_device_lib) << 0; in getDeviceLibs()
442 unsigned DiagID = getDriver().getDiags().getCustomDiagID( in getDeviceLibs()
447 getDriver().Diag(DiagID); in getDeviceLibs()
468 getDriver().Diag(diag::err_drv_no_such_file) << InstLib; in getDeviceLibs()
[all …]
H A DDragonFly.cpp58 const Driver &D = ToolChain.getDriver(); in ConstructJob()
209 getProgramPaths().push_back(getDriver().Dir); in DragonFly()
211 getFilePaths().push_back(getDriver().Dir + "/../lib"); in DragonFly()
212 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib")); in DragonFly()
213 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib/gcc80")); in DragonFly()
219 const Driver &D = getDriver(); in AddClangSystemIncludeArgs()
239 addLibStdCXXIncludePaths(concat(getDriver().SysRoot, "/usr/include/c++/8.0"), "", "", in addLibStdCxxIncludePaths()
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 DOHOS.cpp179 getDriver().Diag(clang::diag::err_drv_invalid_rtlib_name) in GetRuntimeLibType()
191 getDriver().Diag(diag::err_drv_invalid_stdlib_name) in GetCXXStdlibType()
200 const Driver &D = getDriver(); in AddClangSystemIncludeArgs()
244 std::string IncPath = makePath({getDriver().Dir, "..", "include"}); in AddClangCXXStdlibIncludeArgs()
275 !getDriver().SysRoot.empty() in computeSysRoot()
276 ? getDriver().SysRoot in computeSysRoot()
277 : makePath({getDriver().Dir, "..", "..", "sysroot"}); in computeSysRoot()
288 const Driver &D = getDriver(); in getRuntimePaths()
342 SmallString<128> Path(getDriver().ResourceDir); in getCompilerRT()
411 makePath({getDriver().ResourceDir, "lib", getMultiarchTriple(Triple)})); in getArchSpecificLibPaths()
H A DAMDGPUOpenMP.cpp39 getProgramPaths().push_back(getDriver().Dir); in AMDGPUOpenMPToolChain()
60 if (getDriver().isUsingLTO(/* IsOffload */ true)) in addClangTargetOptions()
72 const OptTable &Opts = getDriver().getOpts(); in TranslateArgs()
86 getDriver().Diag(diag::err_drv_undetermined_gpu_arch) in TranslateArgs()
158 getDriver().Diag(diag::err_drv_no_rocm_device_lib) << 0; in getDeviceLibs()
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.cpp73 bool CXX = getToolChain().getDriver().CCCIsCXX(); in AddLibGCC()
83 AddRunTimeLibs(getToolChain(), getToolChain().getDriver(), CmdArgs, Args); in AddLibGCC()
102 const Driver &D = TC.getDriver(); in ConstructJob()
253 if (C.getDriver().IsFlangMode()) { in ConstructJob()
292 switch (TC.getDriver().getOpenMPRuntime(Args)) { in ConstructJob()
490 getProgramPaths().push_back(getDriver().Dir); in MinGW()
493 std::string(llvm::sys::path::parent_path(getDriver().Dir)); in MinGW()
497 if (getDriver().SysRoot.size()) in MinGW()
498 Base = getDriver().SysRoot; in MinGW()
502 getDriver(), LiteralTriple, getTriple(), SubdirName)) 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()
609 checkRemarksOptions(getToolChain().getDriver(), Args, in ConstructJob()
638 getStatsFileName(Args, Output, Inputs[0], getToolChain().getDriver()); in ConstructJob()
683 if (getToolChain().getDriver().IsFlangMode()) { in ConstructJob()
713 StringRef Parallelism = getLTOParallelism(Args, getToolChain().getDriver()); in ConstructJob()
814 const Driver &D = getToolChain().getDriver(); in ConstructJob()
928 getProgramPaths().push_back(getDriver().Dir); in MachO()
1075 getDriver().Diag(diag::err_drv_invalid_version_number) in getLinkerVersion()
[all …]
H A DHIPUtility.cpp56 : C(C), DiagID(C.getDriver().getDiags().getCustomDiagID( in HIPUndefinedFatBinSymbols()
210 C.getDriver().Diag(DiagID) << llvm::toString(std::move(Err)); in errorHandler()
237 if (TT.isAMDGCN() && getAMDGPUCodeObjectVersion(C.getDriver(), Args) >= 4) in constructHIPFatbinCommand()
286 if (C.getDriver().isSaveTempsEnabled()) { in constructGenerateObjFileFromHIPFatBinary()
290 auto TmpNameMcin = C.getDriver().GetTemporaryPath(Name, "mcin"); in constructGenerateObjFileFromHIPFatBinary()
292 auto TmpNameFb = C.getDriver().GetTemporaryPath(Name, "hipfb"); in constructGenerateObjFileFromHIPFatBinary()
396 C.getDriver().Diag(clang::diag::err_unable_to_make_temp) << EC.message(); in constructGenerateObjFileFromHIPFatBinary()
H A DCuda.cpp397 C.getDriver().Diag(diag::err_drv_offload_missing_gpu_arch) in ConstructJob()
600 C.getDriver().Diag(diag::err_drv_offload_missing_gpu_arch) in ConstructJob()
624 if (C.getDriver().isUsingLTO()) in ConstructJob()
626 C.getDriver().getLTOMode() == LTOK_Thin); in ConstructJob()
630 llvm::sys::path::parent_path(TC.getDriver().Dir); in ConstructJob()
702 getProgramPaths().push_back(getDriver().Dir); in NVPTXToolChain()
720 const OptTable &Opts = getDriver().getOpts(); in TranslateArgs()
735 getDriver().Diag(diag::err_drv_undetermined_gpu_arch) in TranslateArgs()
739 getDriver().Diag(diag::warn_drv_multi_gpu_arch) in TranslateArgs()
852 getDriver().Diag(diag::err_drv_no_cuda_libdevice) << GpuArch; in addClangTargetOptions()
[all …]
H A DOpenBSD.cpp34 const Driver &D = ToolChain.getDriver(); in ConstructJob()
113 const Driver &D = ToolChain.getDriver(); in ConstructJob()
319 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib")); in OpenBSD()
325 const Driver &D = getDriver(); in AddClangSystemIncludeArgs()
359 concat(getDriver().SysRoot, "/usr/include/c++/v1")); in addLibCxxIncludePaths()
376 SmallString<128> Path(getDriver().SysRoot); in getCompilerRT()
381 SmallString<128> P(getDriver().ResourceDir); in getCompilerRT()
H A DMSVC.cpp88 !C.getDriver().IsCLMode() && !C.getDriver().IsFlangMode()) { in ConstructJob()
137 if (!C.getDriver().IsCLMode() && Args.hasArg(options::OPT_L)) in ConstructJob()
141 if (C.getDriver().IsFlangMode()) { 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()
290 if (C.getDriver().isUsingLTO() && in ConstructJob()
345 C.getDriver().Diag(clang::diag::warn_drv_msvc_not_found); in ConstructJob()
347 C.getDriver().Diag(clang::diag::warn_drv_msvc_not_found); in ConstructJob()
431 getProgramPaths().push_back(getDriver().Dir); in MSVCToolChain()
[all …]
H A DHaiku.cpp27 const Driver &D = ToolChain.getDriver(); in ConstructJob()
170 getFilePaths().push_back(concat(getDriver().SysRoot, "/boot/system/lib")); in Haiku()
171 getFilePaths().push_back(concat(getDriver().SysRoot, "/boot/system/develop/lib")); in Haiku()
179 const Driver &D = getDriver(); in AddClangSystemIncludeArgs()
277 concat(getDriver().SysRoot, "/boot/system/develop/headers/c++/v1")); in addLibCxxIncludePaths()
H A DFuchsia.cpp38 const Driver &D = ToolChain.getDriver(); in ConstructJob()
212 const Driver &D = getToolChain().getDriver(); in ConstructJob()
257 getProgramPaths().push_back(getDriver().Dir); in Fuchsia()
359 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()
402 D.getVFS().exists(concat(getDriver().SysRoot, "/usr/lib32/crt1.o"))) in FreeBSD()
403 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib32")); in FreeBSD()
405 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib")); in FreeBSD()
411 const Driver &D = getDriver(); in AddClangSystemIncludeArgs()
445 concat(getDriver().SysRoot, "/usr/include/c++/v1")); in addLibCxxIncludePaths()
H A DHexagon.cpp205 const Driver &D = HTC.getDriver(); in ConstructJob()
285 const Driver &D = HTC.getDriver(); in constructHexagonLinkArgs()
520 const Driver &D = getDriver(); in getHexagonTargetDir()
551 SmallString<128> Dir(getDriver().SysRoot); in getCompilerRTPath()
561 const Driver &D = getDriver(); in getHexagonLibraryPaths()
629 getDriver().Diag(diag::err_drv_unsupported_unwind_for_platform) in AddCXXStdlibLibArgs()
713 const Driver &D = getDriver(); in AddClangSystemIncludeArgs()
751 const Driver &D = getDriver(); in addLibCxxIncludePaths()
767 const Driver &D = getDriver(); in addLibStdCxxIncludePaths()
784 getDriver().Diag(diag::err_drv_invalid_stdlib_name) << A->getAsString(Args); in GetCXXStdlibType()
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()
309 getDriver().Diag(diag::warn_drv_dxc_missing_dxv); in requiresValidation()
H A DLinux.cpp385 if (!getDriver().SysRoot.empty()) in computeSysRoot()
386 return getDriver().SysRoot; in computeSysRoot()
391 const StringRef ClangDir = getDriver().Dir; in computeSysRoot()
442 const Distro Distro(getDriver().getVFS(), Triple); in getDynamicLinker()
522 tools::loongarch::getLoongArchABI(getDriver(), Args, Triple) + ".so.1") in getDynamicLinker()
530 tools::loongarch::getLoongArchABI(getDriver(), Args, Triple) + ".so.1") in getDynamicLinker()
542 bool IsNaN2008 = tools::mips::isNaN2008(getDriver(), Args, Triple); in getDynamicLinker()
625 const Driver &D = getDriver(); in AddClangSystemIncludeArgs()
H A DBareMetal.cpp103 getProgramPaths().push_back(getDriver().Dir); in BareMetal()
249 return computeBaseSysRoot(getDriver(), getTriple()); in computeSysRoot()
268 SmallString<128> Dir(getDriver().ResourceDir); in AddClangSystemIncludeArgs()
302 const Driver &D = getDriver(); in AddClangCXXStdlibIncludeArgs()
422 const Driver &D = getToolChain().getDriver(); in ConstructJob()
470 const Driver &D = getToolChain().getDriver(); in ConstructJob()
/freebsd/contrib/llvm-project/clang/lib/Driver/
H A DCompilation.cpp134 getDriver().Diag(diag::err_drv_unable_to_remove_file) in CleanupFile()
166 if ((getDriver().CCPrintOptions || in ExecuteCommand()
167 getArgs().hasArg(options::OPT_v)) && !getDriver().CCGenDiagnostics) { in ExecuteCommand()
173 if (getDriver().CCPrintOptions && in ExecuteCommand()
174 !getDriver().CCPrintOptionsFilename.empty()) { in ExecuteCommand()
177 getDriver().CCPrintOptionsFilename, EC, in ExecuteCommand()
180 getDriver().Diag(diag::err_drv_cc_print_options_failure) in ExecuteCommand()
188 if (getDriver().CCPrintOptions) in ExecuteCommand()
191 C.Print(*OS, "\n", /*Quote=*/getDriver().CCPrintOptions); in ExecuteCommand()
204 getDriver().Diag(diag::err_drv_command_failure) << Error; in ExecuteCommand()
[all …]
H A DToolChain.cpp142 return getDriver().getVFS(); in getVFS()
622 SmallString<128> Path(getDriver().ResourceDir); in getCompilerRTPath()
828 SmallString<128> Path(getDriver().ResourceDir); in getArchSpecificLibPaths()
861 if (D.IsFlangMode() && getDriver().ShouldUseFlangCompiler(JA)) return getFlang(); in SelectTool()
862 if (getDriver().ShouldUseClangCompiler(JA)) return getClang(); in SelectTool()
903 getDriver().Diag(diag::err_drv_invalid_linker_name) << A->getAsString(Args); in GetLinkerPath()
921 getDriver().Diag(diag::warn_drv_fuse_ld_path); in GetLinkerPath()
945 getDriver().Diag(diag::err_drv_invalid_linker_name) << A->getAsString(Args); in GetLinkerPath()
1034 tools::aarch64::setPAuthABIInTriple(getDriver(), Args, Triple); in ComputeLLVMTriple()
1054 tools::arm::setArchNameInTriple(getDriver(), Args, InputType, Triple); in ComputeLLVMTriple()
[all …]

12