| /openbsd-src/gnu/llvm/clang/lib/Driver/ToolChains/ |
| H A D | WebAssembly.cpp | 49 ToolChain.getDriver().Diag(diag::err_drv_invalid_linker_name) in getLinkerPath() 100 ToolChain.getDriver().Diag(diag::err_drv_invalid_argument_to_option) in ConstructJob() 123 AddRunTimeLibs(ToolChain, ToolChain.getDriver(), CmdArgs, Args); in ConstructJob() 175 getProgramPaths().push_back(getDriver().getInstalledDir()); in WebAssembly() 177 auto SysRoot = getDriver().SysRoot; in WebAssembly() 186 getMultiarchTriple(getDriver(), Triple, SysRoot); in WebAssembly() 233 getDriver().Diag(diag::err_drv_argument_not_allowed_with) in addClangTargetOptions() 238 getDriver().Diag(diag::err_drv_argument_not_allowed_with) in addClangTargetOptions() 243 getDriver().Diag(diag::err_drv_argument_not_allowed_with) in addClangTargetOptions() 248 getDriver().Diag(diag::err_drv_argument_not_allowed_with) in addClangTargetOptions() [all …]
|
| H A D | MipsLinux.cpp | 46 const Driver &D = getDriver(); in AddClangSystemIncludeArgs() 70 if (!getDriver().SysRoot.empty()) in computeSysRoot() 71 return getDriver().SysRoot + SelectedMultilib.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 D | BareMetal.cpp | 97 getProgramPaths().push_back(getDriver().getInstalledDir()); in BareMetal() 98 if (getDriver().getInstalledDir() != getDriver().Dir) in BareMetal() 99 getProgramPaths().push_back(getDriver().Dir); in BareMetal() 177 if (!getDriver().SysRoot.empty()) in computeSysRoot() 178 return getDriver().SysRoot + SelectedMultilib.osSuffix(); in computeSysRoot() 181 llvm::sys::path::append(SysRootDir, getDriver().Dir, "../lib/clang-runtimes", in computeSysRoot() 182 getDriver().getTargetTriple()); in computeSysRoot() 194 SmallString<128> Dir(getDriver().ResourceDir); in AddClangSystemIncludeArgs() 221 const Driver &D = getDriver(); in AddClangCXXStdlibIncludeArgs()
|
| H A D | HIPAMD.cpp | 53 auto &Diags = TC.getDriver().getDiags(); in shouldSkipSanitizeOption() 120 auto &D = TC.getDriver(); in constructLldCommand() 150 if (C.getDriver().isSaveTempsEnabled()) in constructLldCommand() 204 getProgramPaths().push_back(getDriver().Dir); in HIPAMDToolChain() 270 const OptTable &Opts = getDriver().getOpts(); in TranslateArgs() 366 getDriver().Diag(diag::err_drv_no_such_file) << BCName; in getDeviceLibs() 370 getDriver().Diag(diag::err_drv_no_rocm_device_lib) << 0; in getDeviceLibs() 382 unsigned DiagID = getDriver().getDiags().getCustomDiagID( in getDeviceLibs() 387 getDriver().Diag(DiagID); in getDeviceLibs() 408 getDriver().Diag(diag::err_drv_no_such_file) << InstLib; in getDeviceLibs() [all …]
|
| H A D | RISCVToolchain.cpp | 102 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() 213 AddRunTimeLibs(ToolChain, ToolChain.getDriver(), CmdArgs, Args); in ConstructJob()
|
| H A D | DragonFly.cpp | 58 const Driver &D = getToolChain().getDriver(); in ConstructJob() 189 getProgramPaths().push_back(getDriver().getInstalledDir()); in DragonFly() 190 if (getDriver().getInstalledDir() != getDriver().Dir) in DragonFly() 191 getProgramPaths().push_back(getDriver().Dir); in DragonFly() 193 getFilePaths().push_back(getDriver().Dir + "/../lib"); in DragonFly()
|
| H A D | AMDGPUOpenMP.cpp | 39 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 D | HIPUtility.cpp | 62 if (TT.isAMDGCN() && getAMDGPUCodeObjectVersion(C.getDriver(), Args) >= 4) in constructHIPFatbinCommand() 109 if (C.getDriver().isSaveTempsEnabled()) { in constructGenerateObjFileFromHIPFatBinary() 113 auto TmpNameMcin = C.getDriver().GetTemporaryPath(Name, "mcin"); in constructGenerateObjFileFromHIPFatBinary() 115 auto TmpNameFb = C.getDriver().GetTemporaryPath(Name, "hipfb"); in constructGenerateObjFileFromHIPFatBinary() 159 C.getDriver().Diag(clang::diag::err_unable_to_make_temp) << EC.message(); in constructGenerateObjFileFromHIPFatBinary()
|
| H A D | CSKYToolChain.cpp | 109 if (!getDriver().SysRoot.empty()) in computeSysRoot() 110 return getDriver().SysRoot; in computeSysRoot() 120 llvm::sys::path::append(SysRootDir, getDriver().Dir, "..", in computeSysRoot() 121 getDriver().getTargetTriple()); in computeSysRoot() 136 const Driver &D = ToolChain.getDriver(); in ConstructJob() 190 AddRunTimeLibs(ToolChain, ToolChain.getDriver(), CmdArgs, Args); in ConstructJob()
|
| H A D | HIPSPV.cpp | 30 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() 200 getDriver().Diag(diag::err_drv_hipspv_no_hip_path) << 1 << "'-nogpuinc'"; in AddHIPIncludeArgs() 245 getDriver().Diag(diag::err_drv_no_such_file) << BCName; in getDeviceLibs() 259 getDriver().Diag(diag::err_drv_no_hipspv_device_lib) in getDeviceLibs()
|
| H A D | MinGW.cpp | 73 bool CXX = getToolChain().getDriver().CCCIsCXX(); in AddLibGCC() 83 AddRunTimeLibs(getToolChain(), getToolChain().getDriver(), CmdArgs, Args); in AddLibGCC() 102 const Driver &D = TC.getDriver(); in ConstructJob() 242 if (C.getDriver().IsFlangMode()) { in ConstructJob() 281 switch (TC.getDriver().getOpenMPRuntime(Args)) { in ConstructJob() 470 getProgramPaths().push_back(getDriver().getInstalledDir()); in MinGW() 475 if (getDriver().SysRoot.size()) in MinGW() 476 Base = getDriver().SysRoot; in MinGW() 480 getDriver(), LiteralTriple, getTriple(), SubdirName)) in MinGW() 488 llvm::sys::path::parent_path(getDriver().getInstalledDir())); in MinGW() [all …]
|
| H A D | AIX.cpp | 106 const Driver &D = ToolChain.getDriver(); in ConstructJob() 204 path::parent_path(ToolChain.getDriver().ClangExecutable) + in ConstructJob() 209 C.getDriver().GetTemporaryPath("CreateExportList", "exp"); in ConstructJob() 249 switch (ToolChain.getDriver().getOpenMPRuntime(Args)) { in ConstructJob() 292 getLibraryPaths().push_back(getDriver().SysRoot + "/usr/lib"); in AIX() 301 if (!getDriver().SysRoot.empty()) in GetHeaderSysroot() 302 return getDriver().SysRoot; in GetHeaderSysroot() 313 const Driver &D = getDriver(); in AddClangSystemIncludeArgs()
|
| H A D | Darwin.cpp | 213 const Driver &D = getToolChain().getDriver(); in AddLinkArgs() 370 if (C.getDriver().embedBitcodeEnabled()) { in AddLinkArgs() 375 if (C.getDriver().embedBitcodeMarkerOnly() && in AddLinkArgs() 570 checkRemarksOptions(getToolChain().getDriver(), Args, in ConstructJob() 597 getStatsFileName(Args, Output, Inputs[0], getToolChain().getDriver()); in ConstructJob() 643 if (getToolChain().getDriver().IsFlangMode()) { in ConstructJob() 673 StringRef Parallelism = getLTOParallelism(Args, getToolChain().getDriver()); in ConstructJob() 774 const Driver &D = getToolChain().getDriver(); in ConstructJob() 888 getProgramPaths().push_back(getDriver().getInstalledDir()); in MachO() 889 if (getDriver().getInstalledDir() != getDriver().Dir) in MachO() [all …]
|
| H A D | MSVC.cpp | 83 !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() 250 TC.getDriver().Dir + "/../lib")); in ConstructJob() 251 switch (TC.getDriver().getOpenMPRuntime(Args)) { in ConstructJob() 269 AddRunTimeLibs(TC, TC.getDriver(), CmdArgs, Args); in ConstructJob() 328 C.getDriver().Diag(clang::diag::warn_drv_msvc_not_found); in ConstructJob() 330 C.getDriver().Diag(clang::diag::warn_drv_msvc_not_found); in ConstructJob() 409 getProgramPaths().push_back(getDriver().getInstalledDir()); in MSVCToolChain() 410 if (getDriver().getInstalledDir() != getDriver().Dir) in MSVCToolChain() [all …]
|
| H A D | NaCl.cpp | 57 const Driver &D = ToolChain.getDriver(); in ConstructJob() 216 std::string FilePath(getDriver().Dir + "/../"); in NaClToolChain() 219 std::string ProgPath(getDriver().Dir + "/../"); in NaClToolChain() 222 std::string ToolPath(getDriver().ResourceDir + "/lib/"); in NaClToolChain() 258 const Driver &D = getDriver(); in AddClangSystemIncludeArgs() 318 const Driver &D = getDriver(); in addLibCxxIncludePaths() 349 getDriver().Diag(clang::diag::err_drv_invalid_stdlib_name) in GetCXXStdlibType()
|
| H A D | MSP430.cpp | 136 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 D | Haiku.cpp | 27 getDriver().SysRoot + "/system/develop/headers/c++/v1"); in addLibCxxIncludePaths() 32 addLibStdCXXIncludePaths(getDriver().SysRoot + "/system/develop/headers/c++", in addLibStdCxxIncludePaths()
|
| H A D | OpenBSD.cpp | 35 const Driver &D = ToolChain.getDriver(); in ConstructJob() 116 const Driver &D = ToolChain.getDriver(); in ConstructJob() 291 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib")); in OpenBSD() 297 const Driver &D = getDriver(); in AddClangSystemIncludeArgs() 331 concat(getDriver().SysRoot, "/usr/include/c++/v1")); in addLibCxxIncludePaths() 348 SmallString<128> Path(getDriver().SysRoot); in getCompilerRT() 352 SmallString<128> P(getDriver().ResourceDir); in getCompilerRT()
|
| H A D | Fuchsia.cpp | 38 const Driver &D = ToolChain.getDriver(); in ConstructJob() 198 getProgramPaths().push_back(getDriver().getInstalledDir()); in Fuchsia() 199 if (getDriver().getInstalledDir() != D.Dir) in Fuchsia() 315 getDriver().Diag(clang::diag::err_drv_invalid_rtlib_name) in GetRuntimeLibType() 327 getDriver().Diag(diag::err_drv_invalid_stdlib_name) in GetCXXStdlibType() 344 const Driver &D = getDriver(); in AddClangSystemIncludeArgs() 384 const Driver &D = getDriver(); in AddClangCXXStdlibIncludeArgs()
|
| H A D | CloudABI.cpp | 31 const Driver &D = ToolChain.getDriver(); in ConstructJob() 105 SmallString<128> P(getDriver().Dir); in CloudABI() 112 SmallString<128> P(getDriver().Dir); in addLibCxxIncludePaths()
|
| H A D | Cuda.cpp | 598 llvm::sys::path::parent_path(TC.getDriver().Dir); in ConstructJob() 605 C.getDriver().Diag(diag::err_drv_no_linker_llvm_support) in ConstructJob() 626 Args.MakeArgString(getToolChain().getDriver().GetTemporaryPath( in ConstructJob() 706 getProgramPaths().push_back(getDriver().Dir); in NVPTXToolChain() 725 const OptTable &Opts = getDriver().getOpts(); in TranslateArgs() 802 getDriver().Diag(diag::err_drv_no_cuda_libdevice) << GpuArch; in addClangTargetOptions() 822 getDriver().Diag( in addClangTargetOptions() 829 if (getDriver().isUsingLTO(/* IsOffload */ true)) in addClangTargetOptions() 832 addOpenMPDeviceRTL(getDriver(), DriverArgs, CC1Args, GpuArch.str(), in addClangTargetOptions() 866 if (Input.getType() != types::TY_Object || getDriver().offloadDeviceOnly()) in getInputFilename() [all …]
|
| H A D | NetBSD.cpp | 35 const Driver &D = ToolChain.getDriver(); in ConstructJob() 123 const Driver &D = ToolChain.getDriver(); in ConstructJob() 442 const Driver &D = getDriver(); in AddClangSystemIncludeArgs() 477 getDriver().Dir + "/../include/c++/v1", in addLibCxxIncludePaths() 479 getDriver().SysRoot + "/usr/include/c++/v1", in addLibCxxIncludePaths() 481 getDriver().SysRoot + "/usr/include/c++", in addLibCxxIncludePaths() 496 addLibStdCXXIncludePaths(getDriver().SysRoot + "/usr/include/g++", "", "", in addLibStdCxxIncludePaths()
|
| H A D | FreeBSD.cpp | 35 const auto &D = getToolChain().getDriver(); in ConstructJob() 136 const Driver &D = ToolChain.getDriver(); in ConstructJob() 382 D.getVFS().exists(concat(getDriver().SysRoot, "/usr/lib32/crt1.o"))) in FreeBSD() 383 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib32")); in FreeBSD() 385 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib")); in FreeBSD() 398 const Driver &D = getDriver(); in AddClangSystemIncludeArgs() 432 concat(getDriver().SysRoot, "/usr/include/c++/v1")); in addLibCxxIncludePaths()
|
| /openbsd-src/gnu/llvm/clang/lib/Driver/ |
| H A D | Compilation.cpp | 134 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 D | ToolChain.cpp | 128 return getDriver().getVFS(); in getVFS() 491 SmallString<128> Path(getDriver().ResourceDir); in getCompilerRTPath() 603 SmallString<128> Path(getDriver().ResourceDir); in getArchSpecificLibPath() 630 if (D.IsFlangMode() && getDriver().ShouldUseFlangCompiler(JA)) return getFlang(); in SelectTool() 631 if (getDriver().ShouldUseClangCompiler(JA)) return getClang(); in SelectTool() 671 getDriver().Diag(diag::err_drv_invalid_linker_name) << A->getAsString(Args); in GetLinkerPath() 689 getDriver().Diag(diag::warn_drv_fuse_ld_path); in GetLinkerPath() 713 getDriver().Diag(diag::err_drv_invalid_linker_name) << A->getAsString(Args); in GetLinkerPath() 821 tools::arm::setArchNameInTriple(getDriver(), Args, InputType, Triple); in ComputeLLVMTriple() 822 tools::arm::setFloatABIInTriple(getDriver(), Args, Triple); in ComputeLLVMTriple() [all …]
|