| /llvm-project/clang/lib/Driver/ToolChains/ |
| H A D | WebAssembly.cpp | 57 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 D | MipsLinux.cpp | 46 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 D | NetBSD.cpp | 34 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 D | AIX.cpp | 35 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 D | HIPAMD.cpp | 84 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 D | OHOS.cpp | 180 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 D | RISCVToolchain.cpp | 107 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 D | DragonFly.cpp | 58 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 D | AMDGPUOpenMP.cpp | 39 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 D | CSKYToolChain.cpp | 110 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 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() 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 D | MinGW.cpp | 74 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 D | Darwin.cpp | 224 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 D | NaCl.cpp | 55 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 D | HIPUtility.cpp | 58 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 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 | Cuda.cpp | 402 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 D | OpenBSD.cpp | 34 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 D | MSVC.cpp | 94 !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 D | Haiku.cpp | 27 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 D | Fuchsia.cpp | 38 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 D | FreeBSD.cpp | 34 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 D | HLSL.cpp | 233 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 D | Compilation.cpp | 131 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 D | ToolChain.cpp | 154 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...] |