| /llvm-project-15.0.7/clang/lib/Driver/ToolChains/ |
| H A D | WebAssembly.cpp | 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() 381 getDriver().Diag(diag::err_drv_invalid_stdlib_name) in GetCXXStdlibType() 392 const Driver &D = getDriver(); in AddClangSystemIncludeArgs() 472 const Driver &D = getDriver(); in addLibCxxIncludePaths() [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() 185 SmallString<128> Dir(getDriver().ResourceDir); in getRuntimesDir() 192 if (!getDriver().SysRoot.empty()) in computeSysRoot() 193 return getDriver().SysRoot + SelectedMultilib.osSuffix(); in computeSysRoot() 196 llvm::sys::path::append(SysRootDir, getDriver().Dir, "../lib/clang-runtimes", in computeSysRoot() 197 getDriver().getTargetTriple()); in computeSysRoot() 209 SmallString<128> Dir(getDriver().ResourceDir); in AddClangSystemIncludeArgs() 254 LI = getDriver().getVFS().dir_begin(Dir.str(), EC), in AddClangCXXStdlibIncludeArgs()
|
| H A D | HIPAMD.cpp | 53 auto &Diags = TC.getDriver().getDiags(); in shouldSkipSanitizeOption() 115 auto &D = TC.getDriver(); in constructLldCommand() 145 if (C.getDriver().isSaveTempsEnabled()) in constructLldCommand() 199 getProgramPaths().push_back(getDriver().Dir); in HIPAMDToolChain() 265 const OptTable &Opts = getDriver().getOpts(); in TranslateArgs() 361 getDriver().Diag(diag::err_drv_no_such_file) << BCName; in getHIPDeviceLibs() 365 getDriver().Diag(diag::err_drv_no_rocm_device_lib) << 0; in getHIPDeviceLibs() 377 unsigned DiagID = getDriver().getDiags().getCustomDiagID( in getHIPDeviceLibs() 382 getDriver().Diag(DiagID); in getHIPDeviceLibs() 403 getDriver().Diag(diag::err_drv_no_such_file) << InstLib; in getHIPDeviceLibs() [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 | 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 | AMDGPUOpenMP.cpp | 38 if (C.getDriver().isSaveTempsEnabled()) { in getOutputFileName() 43 C.getDriver().GetTemporaryPath(Base.str() + Postfix, Extension); in getOutputFileName() 81 TC.getDriver().Diag(diag::err_drv_undetermined_amdgpu_arch) << ErrMsg; in checkSystemForAMDGPU() 248 if (C.getDriver().isSaveTempsEnabled()) in ConstructJob() 263 getProgramPaths().push_back(getDriver().Dir); in AMDGPUOpenMPToolChain() 288 if (getDriver().isUsingLTO(/* IsOffload */ true)) in addClangTargetOptions() 291 addOpenMPDeviceRTL(getDriver(), DriverArgs, CC1Args, GPUArch, getTriple()); in addClangTargetOptions() 302 const OptTable &Opts = getDriver().getOpts(); in TranslateArgs()
|
| 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 getHIPDeviceLibs() 259 getDriver().Diag(diag::err_drv_no_hipspv_device_lib) in getHIPDeviceLibs()
|
| H A D | Darwin.cpp | 213 const Driver &D = getToolChain().getDriver(); in AddLinkArgs() 370 if (C.getDriver().embedBitcodeEnabled()) { in AddLinkArgs() 762 const Driver &D = getToolChain().getDriver(); in ConstructJob() 877 if (getDriver().getInstalledDir() != getDriver().Dir) in MachO() 1217 SmallString<128> Dir(getDriver().ResourceDir); in AddLinkRuntimeLib() 2056 const OptTable &Opts = getDriver().getOpts(); in AddDeploymentTarget() 2265 if (!getDriver().SysRoot.empty()) in GetHeaderSysroot() 2266 return getDriver().SysRoot; in GetHeaderSysroot() 2272 const Driver &D = getDriver(); in AddClangSystemIncludeArgs() 2518 SmallString<128> P(getDriver().ResourceDir); in AddCCKextLibArgs() [all …]
|
| H A D | MSVC.cpp | 84 !C.getDriver().IsCLMode() && !C.getDriver().IsFlangMode()) { in ConstructJob() 133 if (C.getDriver().IsFlangMode()) { in ConstructJob() 153 if (!C.getDriver().IsCLMode() && Args.hasArg(options::OPT_L)) in ConstructJob() 252 switch (TC.getDriver().getOpenMPRuntime(Args)) { in ConstructJob() 270 AddRunTimeLibs(TC, TC.getDriver(), CmdArgs, Args); in ConstructJob() 331 C.getDriver().Diag(clang::diag::warn_drv_msvc_not_found); in ConstructJob() 410 getProgramPaths().push_back(getDriver().getInstalledDir()); in MSVCToolChain() 411 if (getDriver().getInstalledDir() != getDriver().Dir) in MSVCToolChain() 412 getProgramPaths().push_back(getDriver().Dir); in MSVCToolChain() 446 getDriver().Diag(clang::diag::err_no_external_assembler); in buildAssembler() [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 | OpenBSD.cpp | 35 const Driver &D = ToolChain.getDriver(); in ConstructJob() 116 const Driver &D = ToolChain.getDriver(); in ConstructJob() 287 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib")); in OpenBSD() 293 const Driver &D = getDriver(); in AddClangSystemIncludeArgs() 327 concat(getDriver().SysRoot, "/usr/include/c++/v1")); in addLibCxxIncludePaths() 344 SmallString<128> Path(getDriver().SysRoot); in getCompilerRT() 348 SmallString<128> P(getDriver().ResourceDir); in getCompilerRT()
|
| 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() 221 if (C.getDriver().IsFlangMode()) { in ConstructJob() 260 switch (TC.getDriver().getOpenMPRuntime(Args)) { in ConstructJob() 417 getProgramPaths().push_back(getDriver().getInstalledDir()); in MinGW() 421 if (getDriver().SysRoot.size()) in MinGW() 422 Base = getDriver().SysRoot; in MinGW() 433 llvm::sys::path::parent_path(getDriver().getInstalledDir())); in MinGW() 585 SmallString<1024> P(getDriver().ResourceDir); in AddClangSystemIncludeArgs() [all …]
|
| 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 | AIX.cpp | 82 const Driver &D = ToolChain.getDriver(); in ConstructJob() 202 getLibraryPaths().push_back(getDriver().SysRoot + "/usr/lib"); in AIX() 211 if (!getDriver().SysRoot.empty()) in GetHeaderSysroot() 212 return getDriver().SysRoot; in GetHeaderSysroot() 223 const Driver &D = getDriver(); in AddClangSystemIncludeArgs()
|
| H A D | Fuchsia.cpp | 38 const Driver &D = ToolChain.getDriver(); in ConstructJob() 196 getProgramPaths().push_back(getDriver().getInstalledDir()); in Fuchsia() 197 if (getDriver().getInstalledDir() != D.Dir) in Fuchsia() 313 getDriver().Diag(clang::diag::err_drv_invalid_rtlib_name) in GetRuntimeLibType() 325 getDriver().Diag(diag::err_drv_invalid_stdlib_name) in GetCXXStdlibType() 342 const Driver &D = getDriver(); in AddClangSystemIncludeArgs() 382 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 | FreeBSD.cpp | 34 const auto &D = getToolChain().getDriver(); in ConstructJob() 144 const Driver &D = ToolChain.getDriver(); in ConstructJob() 392 D.getVFS().exists(concat(getDriver().SysRoot, "/usr/lib32/crt1.o"))) in FreeBSD() 393 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib32")); in FreeBSD() 395 getFilePaths().push_back(concat(getDriver().SysRoot, "/usr/lib")); in FreeBSD() 414 concat(getDriver().SysRoot, "/usr/include/c++/v1")); in addLibCxxIncludePaths() 420 addLibStdCXXIncludePaths(concat(getDriver().SysRoot, "/usr/include/c++/4.2"), in addLibStdCxxIncludePaths()
|
| H A D | Cuda.cpp | 594 llvm::sys::path::parent_path(TC.getDriver().Dir); in ConstructJob() 603 C.getDriver().Diag(diag::err_drv_no_linker_llvm_support) in ConstructJob() 691 getProgramPaths().push_back(getDriver().Dir); in CudaToolChain() 697 if (Input.getType() != types::TY_Object || getDriver().offloadDeviceOnly()) in getInputFilename() 737 getDriver().Diag(diag::err_drv_no_cuda_libdevice) << GpuArch; in addClangTargetOptions() 757 getDriver().Diag( in addClangTargetOptions() 764 if (getDriver().isUsingLTO(/* IsOffload */ true)) in addClangTargetOptions() 767 addOpenMPDeviceRTL(getDriver(), DriverArgs, CC1Args, GpuArch.str(), in addClangTargetOptions() 769 AddStaticDeviceLibsPostLinking(getDriver(), DriverArgs, CC1Args, "nvptx", in addClangTargetOptions() 837 const OptTable &Opts = getDriver().getOpts(); in TranslateArgs()
|
| H A D | Hexagon.cpp | 203 const Driver &D = HTC.getDriver(); in ConstructJob() 283 const Driver &D = HTC.getDriver(); in constructHexagonLinkArgs() 509 const Driver &D = getDriver(); in getHexagonTargetDir() 540 SmallString<128> Dir(getDriver().SysRoot); in getCompilerRTPath() 548 const Driver &D = getDriver(); in getHexagonLibraryPaths() 691 const Driver &D = getDriver(); in AddClangSystemIncludeArgs() 730 const Driver &D = getDriver(); in addLibCxxIncludePaths() 746 const Driver &D = getDriver(); in addLibStdCxxIncludePaths() 763 getDriver().Diag(diag::err_drv_invalid_stdlib_name) << A->getAsString(Args); in GetCXXStdlibType()
|
| /llvm-project-15.0.7/clang/lib/Driver/ |
| H A D | Compilation.cpp | 135 getDriver().Diag(diag::err_drv_unable_to_remove_file) in CleanupFile() 167 if ((getDriver().CCPrintOptions || in ExecuteCommand() 168 getArgs().hasArg(options::OPT_v)) && !getDriver().CCGenDiagnostics) { in ExecuteCommand() 174 if (getDriver().CCPrintOptions && in ExecuteCommand() 175 !getDriver().CCPrintOptionsFilename.empty()) { in ExecuteCommand() 178 getDriver().CCPrintOptionsFilename, EC, in ExecuteCommand() 181 getDriver().Diag(diag::err_drv_cc_print_options_failure) in ExecuteCommand() 189 if (getDriver().CCPrintOptions) in ExecuteCommand() 192 C.Print(*OS, "\n", /*Quote=*/getDriver().CCPrintOptions); in ExecuteCommand() 205 getDriver().Diag(diag::err_drv_command_failure) << Error; in ExecuteCommand() [all …]
|
| H A D | ToolChain.cpp | 100 return getDriver().getVFS(); in getVFS() 461 SmallString<128> Path(getDriver().ResourceDir); in getCompilerRTPath() 570 SmallString<128> Path(getDriver().ResourceDir); in getArchSpecificLibPath() 651 getDriver().Diag(diag::warn_drv_fuse_ld_path); in GetLinkerPath() 835 getDriver().Diag(diag::err_drv_invalid_rtlib_name) in GetRuntimeLibType() 871 getDriver().Diag(diag::err_drv_invalid_unwindlib_name) in GetUnwindLibType() 896 getDriver().Diag(diag::err_drv_invalid_stdlib_name) in GetCXXStdlibType() 1002 return getDriver().CCCIsCXX() && in ShouldLinkCXXStdlib() 1166 const OptTable &Opts = getDriver().getOpts(); in TranslateOpenMPTargetArgs() 1238 const OptTable &Opts = getDriver().getOpts(); in TranslateXarchArgs() [all …]
|