Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/clang/lib/Driver/ToolChains/
H A DWebAssembly.cpp218 getProgramPaths().push_back(getDriver().getInstalledDir()); in WebAssembly()
220 auto SysRoot = getDriver().SysRoot; in WebAssembly()
229 getMultiarchTriple(getDriver(), Triple, SysRoot); in WebAssembly()
280 getDriver().Diag(diag::err_drv_argument_not_allowed_with) in addClangTargetOptions()
285 getDriver().Diag(diag::err_drv_argument_not_allowed_with) in addClangTargetOptions()
290 getDriver().Diag(diag::err_drv_argument_not_allowed_with) in addClangTargetOptions()
295 getDriver().Diag(diag::err_drv_argument_not_allowed_with) in addClangTargetOptions()
428 getDriver().Diag(diag::err_drv_invalid_stdlib_name) in GetCXXStdlibType()
439 const Driver &D = getDriver(); in AddClangSystemIncludeArgs()
522 const Driver &D = getDriver(); in addLibCxxIncludePaths()
[all …]
H A DMipsLinux.cpp46 const Driver &D = getDriver(); in AddClangSystemIncludeArgs()
70 if (!getDriver().SysRoot.empty()) in computeSysRoot()
71 return getDriver().SysRoot + SelectedMultilibs.back().osSuffix(); in computeSysRoot()
73 const std::string InstalledDir(getDriver().getInstalledDir()); in computeSysRoot()
88 getDriver().Diag(clang::diag::err_drv_invalid_stdlib_name) in GetCXXStdlibType()
100 Path = getDriver().getInstalledDir() + Path + "/c++/v1"; in addLibCxxIncludePaths()
124 SmallString<128> Path(getDriver().ResourceDir); in getCompilerRT()
H A DDragonFly.cpp58 const Driver &D = ToolChain.getDriver(); in ConstructJob()
210 getProgramPaths().push_back(getDriver().getInstalledDir()); in DragonFly()
211 if (getDriver().getInstalledDir() != getDriver().Dir) in DragonFly()
212 getProgramPaths().push_back(getDriver().Dir); in DragonFly()
214 getFilePaths().push_back(getDriver().Dir + "/../lib"); in DragonFly()
215 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib")); in DragonFly()
216 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib/gcc80")); in DragonFly()
222 const Driver &D = getDriver(); in AddClangSystemIncludeArgs()
242 addLibStdCXXIncludePaths(concat(getDriver().SysRoot, "/usr/include/c++/8.0"), "", "", in addLibStdCxxIncludePaths()
H A DAIX.cpp33 const Driver &D = getToolChain().getDriver(); in ConstructJob()
113 const Driver &D = ToolChain.getDriver(); in ConstructJob()
251 path::parent_path(ToolChain.getDriver().ClangExecutable) + in ConstructJob()
297 switch (ToolChain.getDriver().getOpenMPRuntime(Args)) { in ConstructJob()
345 getProgramPaths().push_back(getDriver().getInstalledDir()); in AIX()
346 if (getDriver().getInstalledDir() != getDriver().Dir) in AIX()
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 DNetBSD.cpp34 const Driver &D = ToolChain.getDriver(); in ConstructJob()
120 const Driver &D = ToolChain.getDriver(); in ConstructJob()
389 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib/i386")); in NetBSD()
412 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib/o32")); in NetBSD()
414 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib/64")); in NetBSD()
420 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib/sparc")); in NetBSD()
426 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib")); in NetBSD()
463 const Driver &D = getDriver(); in AddClangSystemIncludeArgs()
498 concat(getDriver().Dir, "/../include/c++/v1"), in addLibCxxIncludePaths()
500 concat(getDriver().SysRoot, "/usr/include/c++/v1"), in addLibCxxIncludePaths()
[all …]
H A DHIPAMD.cpp53 auto &Diags = TC.getDriver().getDiags(); in shouldSkipSanitizeOption()
120 auto &D = TC.getDriver(); in constructLldCommand()
145 if (C.getDriver().isSaveTempsEnabled()) in constructLldCommand()
220 getProgramPaths().push_back(getDriver().Dir); in HIPAMDToolChain()
284 const OptTable &Opts = getDriver().getOpts(); in TranslateArgs()
379 getDriver().Diag(diag::err_drv_no_such_file) << BCName; in getDeviceLibs()
383 getDriver().Diag(diag::err_drv_no_rocm_device_lib) << 0; in getDeviceLibs()
395 unsigned DiagID = getDriver().getDiags().getCustomDiagID( in getDeviceLibs()
400 getDriver().Diag(DiagID); in getDeviceLibs()
421 getDriver().Diag(diag::err_drv_no_such_file) << InstLib; in getDeviceLibs()
[all …]
H A DRISCVToolchain.cpp102 SmallString<128> Dir(getDriver().ResourceDir); in AddClangSystemIncludeArgs()
126 if (!getDriver().SysRoot.empty()) in computeSysRoot()
127 return getDriver().SysRoot; in computeSysRoot()
137 llvm::sys::path::append(SysRootDir, getDriver().Dir, "..", in computeSysRoot()
138 getDriver().getTargetTriple()); in computeSysRoot()
153 const Driver &D = ToolChain.getDriver(); in ConstructJob()
212 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().getInstalledDir(), "..", "..", "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()
67 if (getDriver().isUsingLTO(/* IsOffload */ true)) in addClangTargetOptions()
79 const OptTable &Opts = getDriver().getOpts(); in TranslateArgs()
93 getDriver().Diag(diag::err_drv_undetermined_gpu_arch) in TranslateArgs()
164 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 DHIPUtility.cpp62 if (TT.isAMDGCN() && getAMDGPUCodeObjectVersion(C.getDriver(), Args) >= 4) in constructHIPFatbinCommand()
115 if (C.getDriver().isSaveTempsEnabled()) { in constructGenerateObjFileFromHIPFatBinary()
119 auto TmpNameMcin = C.getDriver().GetTemporaryPath(Name, "mcin"); in constructGenerateObjFileFromHIPFatBinary()
121 auto TmpNameFb = C.getDriver().GetTemporaryPath(Name, "hipfb"); in constructGenerateObjFileFromHIPFatBinary()
167 C.getDriver().Diag(clang::diag::err_unable_to_make_temp) << EC.message(); in constructGenerateObjFileFromHIPFatBinary()
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) << 1 << "'-nogpuinc'"; 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 DDarwin.cpp224 const Driver &D = getToolChain().getDriver(); in AddLinkArgs()
381 if (C.getDriver().embedBitcodeEnabled()) { in AddLinkArgs()
815 const Driver &D = getToolChain().getDriver(); in ConstructJob()
930 if (getDriver().getInstalledDir() != getDriver().Dir) in MachO()
2179 const OptTable &Opts = getDriver().getOpts(); in AddDeploymentTarget()
2411 else if (!getDriver().SysRoot.empty()) in GetEffectiveSysroot()
2412 Path = getDriver().SysRoot; in GetEffectiveSysroot()
2422 const Driver &D = getDriver(); in AddClangSystemIncludeArgs()
2547 if (getDriver().getInstalledDir() != getDriver().Dir) { in AddClangCXXStdlibIncludeArgs()
2675 SmallString<128> P(getDriver().ResourceDir); in AddCCKextLibArgs()
[all …]
H A DMSVC.cpp83 !C.getDriver().IsCLMode() && !C.getDriver().IsFlangMode()) { in ConstructJob()
132 if (C.getDriver().IsFlangMode()) { in ConstructJob()
152 if (!C.getDriver().IsCLMode() && Args.hasArg(options::OPT_L)) in ConstructJob()
251 switch (TC.getDriver().getOpenMPRuntime(Args)) { in ConstructJob()
269 AddRunTimeLibs(TC, TC.getDriver(), CmdArgs, Args); in ConstructJob()
285 if (C.getDriver().isUsingLTO() && in ConstructJob()
426 getProgramPaths().push_back(getDriver().getInstalledDir()); in MSVCToolChain()
427 if (getDriver().getInstalledDir() != getDriver().Dir) in MSVCToolChain()
428 getProgramPaths().push_back(getDriver().Dir); in MSVCToolChain()
462 getDriver().Diag(clang::diag::err_no_external_assembler); in buildAssembler()
[all …]
H A DMinGW.cpp73 bool CXX = getToolChain().getDriver().CCCIsCXX(); in AddLibGCC()
102 const Driver &D = TC.getDriver(); in ConstructJob()
250 if (C.getDriver().IsFlangMode()) { in ConstructJob()
289 switch (TC.getDriver().getOpenMPRuntime(Args)) { in ConstructJob()
494 if (getDriver().SysRoot.size()) in MinGW()
495 Base = getDriver().SysRoot; in MinGW()
522 if (getDriver().getVFS().exists(Base + CandidateSubdir)) in MinGW()
537 getDriver().SysRoot.size()) in MinGW()
682 SmallString<1024> P(getDriver().ResourceDir); in AddClangSystemIncludeArgs()
703 getDriver().SysRoot.size()) in AddClangSystemIncludeArgs()
[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 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 DOpenBSD.cpp34 const Driver &D = ToolChain.getDriver(); in ConstructJob()
113 const Driver &D = ToolChain.getDriver(); in ConstructJob()
315 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib")); in OpenBSD()
321 const Driver &D = getDriver(); in AddClangSystemIncludeArgs()
355 concat(getDriver().SysRoot, "/usr/include/c++/v1")); in addLibCxxIncludePaths()
372 SmallString<128> Path(getDriver().SysRoot); in getCompilerRT()
377 SmallString<128> P(getDriver().ResourceDir); in getCompilerRT()
H A DFuchsia.cpp38 const Driver &D = ToolChain.getDriver(); in ConstructJob()
209 const Driver &D = getToolChain().getDriver(); in ConstructJob()
254 getProgramPaths().push_back(getDriver().getInstalledDir()); in Fuchsia()
255 if (getDriver().getInstalledDir() != D.Dir) in Fuchsia()
358 getDriver().Diag(clang::diag::err_drv_invalid_rtlib_name) in GetRuntimeLibType()
370 getDriver().Diag(diag::err_drv_invalid_stdlib_name) in GetCXXStdlibType()
387 const Driver &D = getDriver(); in AddClangSystemIncludeArgs()
427 const Driver &D = getDriver(); in AddClangCXXStdlibIncludeArgs()
H A DBareMetal.cpp103 getProgramPaths().push_back(getDriver().getInstalledDir()); in BareMetal()
104 if (getDriver().getInstalledDir() != getDriver().Dir) in BareMetal()
105 getProgramPaths().push_back(getDriver().Dir); in BareMetal()
251 return computeBaseSysRoot(getDriver(), getTriple()); in computeSysRoot()
270 SmallString<128> Dir(getDriver().ResourceDir); in AddClangSystemIncludeArgs()
300 const Driver &D = getDriver(); in AddClangCXXStdlibIncludeArgs()
390 const Driver &D = getToolChain().getDriver(); in ConstructJob()
H A DHaiku.cpp27 const Driver &D = ToolChain.getDriver(); in ConstructJob()
167 getFilePaths().push_back(concat(getDriver().SysRoot, "/boot/system/lib")); in Haiku()
168 getFilePaths().push_back(concat(getDriver().SysRoot, "/boot/system/develop/lib")); in Haiku()
176 const Driver &D = getDriver(); in AddClangSystemIncludeArgs()
274 concat(getDriver().SysRoot, "/boot/system/develop/headers/c++/v1")); in addLibCxxIncludePaths()
H A DFreeBSD.cpp34 const auto &D = getToolChain().getDriver(); in ConstructJob()
135 const Driver &D = ToolChain.getDriver(); in ConstructJob()
397 D.getVFS().exists(concat(getDriver().SysRoot, "/usr/lib32/crt1.o"))) in FreeBSD()
398 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib32")); in FreeBSD()
400 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib")); in FreeBSD()
406 const Driver &D = getDriver(); in AddClangSystemIncludeArgs()
440 concat(getDriver().SysRoot, "/usr/include/c++/v1")); in addLibCxxIncludePaths()
H A DCuda.cpp606 llvm::sys::path::parent_path(TC.getDriver().Dir); in ConstructJob()
613 C.getDriver().Diag(diag::err_drv_no_linker_llvm_support) in ConstructJob()
634 Args.MakeArgString(getToolChain().getDriver().GetTemporaryPath( in ConstructJob()
716 getProgramPaths().push_back(getDriver().Dir); in NVPTXToolChain()
735 const OptTable &Opts = getDriver().getOpts(); in TranslateArgs()
826 getDriver().Diag(diag::err_drv_no_cuda_libdevice) << GpuArch; in addClangTargetOptions()
846 getDriver().Diag( in addClangTargetOptions()
853 if (getDriver().isUsingLTO(/* IsOffload */ true)) in addClangTargetOptions()
856 addOpenMPDeviceRTL(getDriver(), DriverArgs, CC1Args, GpuArch.str(), in addClangTargetOptions()
909 const OptTable &Opts = getDriver().getOpts(); in TranslateArgs()
[all …]
/freebsd-14.2/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.cpp133 return getDriver().getVFS(); in getVFS()
598 SmallString<128> Path(getDriver().ResourceDir); in getCompilerRTPath()
782 SmallString<128> Path(getDriver().ResourceDir); in getArchSpecificLibPaths()
875 getDriver().Diag(diag::warn_drv_fuse_ld_path); in GetLinkerPath()
1062 getDriver().Diag(diag::err_drv_invalid_rtlib_name) in GetRuntimeLibType()
1098 getDriver().Diag(diag::err_drv_invalid_unwindlib_name) in GetUnwindLibType()
1123 getDriver().Diag(diag::err_drv_invalid_stdlib_name) in GetCXXStdlibType()
1236 return getDriver().CCCIsCXX() && in ShouldLinkCXXStdlib()
1405 const OptTable &Opts = getDriver().getOpts(); in TranslateOpenMPTargetArgs()
1480 const OptTable &Opts = getDriver().getOpts(); in TranslateXarchArgs()
[all …]

12