| /freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/ |
| H A D | CSKYToolChain.cpp | 27 ToolChain::path_list &Paths) { in addMultilibsFilePaths() 47 ToolChain::path_list &PPaths = getProgramPaths(); in CSKYToolChain() 66 ToolChain::RuntimeLibType CSKYToolChain::GetDefaultRuntimeLibType() const { in GetDefaultRuntimeLibType() 67 return GCCInstallation.isValid() ? ToolChain::RLT_Libgcc in GetDefaultRuntimeLibType() 68 : ToolChain::RLT_CompilerRT; in GetDefaultRuntimeLibType() 71 ToolChain::UnwindLibType 73 return ToolChain::UNW_None; in GetUnwindLibType() 135 const ToolChain &ToolChain = getToolChain(); in ConstructJob() local 136 const Driver &D = ToolChain.getDriver(); in ConstructJob() 151 auto RuntimeLib = ToolChain.GetRuntimeLibType(Args); in ConstructJob() [all …]
|
| H A D | Solaris.cpp | 39 bool solaris::isLinkerGnuLd(const ToolChain &TC, const ArgList &Args) { in isLinkerGnuLd() 46 static bool getPIE(const ArgList &Args, const ToolChain &TC) { in getPIE() 57 const ToolChain &ToolChain = getToolChain(); in getLinkerPath() local 72 ToolChain.getDriver().Diag(diag::err_drv_invalid_linker_name) in getLinkerPath() 78 return ToolChain.getDefaultLinker(); in getLinkerPath() 86 const auto &ToolChain = static_cast<const Solaris &>(getToolChain()); in ConstructJob() local 87 const Driver &D = ToolChain.getDriver(); in ConstructJob() 88 const llvm::Triple::ArchType Arch = ToolChain.getArch(); in ConstructJob() 89 const bool IsPIE = getPIE(Args, ToolChain); in ConstructJob() 90 const bool LinkerIsGnuLd = isLinkerGnuLd(ToolChain, Args); in ConstructJob() [all …]
|
| H A D | OpenBSD.cpp | 33 const auto &ToolChain = static_cast<const OpenBSD &>(getToolChain()); in ConstructJob() local 34 const Driver &D = ToolChain.getDriver(); in ConstructJob() 35 const llvm::Triple &Triple = ToolChain.getTriple(); in ConstructJob() 40 switch (ToolChain.getArch()) { in ConstructJob() 64 AddAssemblerKPIC(ToolChain, Args, CmdArgs); in ConstructJob() 85 AddAssemblerKPIC(ToolChain, Args, CmdArgs); in ConstructJob() 101 const char *Exec = Args.MakeArgString(ToolChain.GetProgramPath("as")); in ConstructJob() 112 const auto &ToolChain = static_cast<const OpenBSD &>(getToolChain()); in ConstructJob() local 113 const Driver &D = ToolChain.getDriver(); in ConstructJob() 114 const llvm::Triple &Triple = ToolChain.getTriple(); in ConstructJob() [all …]
|
| H A D | NetBSD.cpp | 33 const auto &ToolChain = static_cast<const NetBSD &>(getToolChain()); in ConstructJob() local 34 const Driver &D = ToolChain.getDriver(); in ConstructJob() 35 const llvm::Triple &Triple = ToolChain.getTriple(); in ConstructJob() 42 switch (ToolChain.getArch()) { in ConstructJob() 76 AddAssemblerKPIC(ToolChain, Args, CmdArgs); in ConstructJob() 84 AddAssemblerKPIC(ToolChain, Args, CmdArgs); in ConstructJob() 92 AddAssemblerKPIC(ToolChain, Args, CmdArgs); in ConstructJob() 108 const char *Exec = Args.MakeArgString((ToolChain.GetProgramPath("as"))); in ConstructJob() 119 const auto &ToolChain = static_cast<const NetBSD &>(getToolChain()); in ConstructJob() local 120 const Driver &D = ToolChain.getDriver(); in ConstructJob() [all …]
|
| H A D | FreeBSD.cpp | 32 const auto &ToolChain = static_cast<const FreeBSD &>(getToolChain()); in ConstructJob() local 34 const llvm::Triple &Triple = ToolChain.getTriple(); in ConstructJob() 41 switch (ToolChain.getArch()) { in ConstructJob() 76 AddAssemblerKPIC(ToolChain, Args, CmdArgs); in ConstructJob() 83 arm::FloatABI ABI = arm::getARMFloatABI(ToolChain, Args); in ConstructJob() 96 AddAssemblerKPIC(ToolChain, Args, CmdArgs); in ConstructJob() 122 const char *Exec = Args.MakeArgString(ToolChain.GetProgramPath("as")); in ConstructJob() 133 const auto &ToolChain = static_cast<const FreeBSD &>(getToolChain()); in ConstructJob() local 134 const Driver &D = ToolChain.getDriver(); in ConstructJob() 135 const llvm::Triple &Triple = ToolChain.getTriple(); in ConstructJob() [all …]
|
| H A D | WebAssembly.cpp | 38 const ToolChain &ToolChain = getToolChain(); in getLinkerPath() local 50 return ToolChain.GetProgramPath("wasm-ld"); in getLinkerPath() 55 ToolChain.getDriver().Diag(diag::err_drv_invalid_linker_name) in getLinkerPath() 60 return ToolChain.GetProgramPath(ToolChain.getDefaultLinker()); in getLinkerPath() 88 const ToolChain &ToolChain = getToolChain(); in ConstructJob() local 93 if (ToolChain.getTriple().isArch64Bit()) in ConstructJob() 108 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetProgramPath("wasm-ld"))); in ConstructJob() 113 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob() 131 ToolChain.getDriver().Diag(diag::err_drv_invalid_argument_to_option) in ConstructJob() 144 if (ToolChain.GetFilePath("crt1-command.o") != "crt1-command.o") in ConstructJob() [all …]
|
| H A D | DragonFly.cpp | 28 const auto &ToolChain = static_cast<const DragonFly &>(getToolChain()); in ConstructJob() local 35 if (ToolChain.getArch() == llvm::Triple::x86) in ConstructJob() 46 const char *Exec = Args.MakeArgString(ToolChain.GetProgramPath("as")); in ConstructJob() 57 const auto &ToolChain = static_cast<const DragonFly &>(getToolChain()); in ConstructJob() local 58 const Driver &D = ToolChain.getDriver(); in ConstructJob() 59 const llvm::Triple::ArchType Arch = ToolChain.getArch(); in ConstructJob() 119 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crt1))); in ConstructJob() 120 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crti.o"))); in ConstructJob() 121 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtbegin))); in ConstructJob() 126 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob() [all …]
|
| H A D | Haiku.cpp | 27 const auto &ToolChain = static_cast<const Haiku &>(getToolChain()); in ConstructJob() local 28 const Driver &D = ToolChain.getDriver(); in ConstructJob() 29 const llvm::Triple &Triple = ToolChain.getTriple(); in ConstructJob() 79 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crti.o"))); in ConstructJob() 80 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtbeginS.o"))); in ConstructJob() 82 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("start_dyn.o"))); in ConstructJob() 83 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("init_term_dyn.o"))); in ConstructJob() 88 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob() 91 addLTOOptions(ToolChain, Args, CmdArgs, Output, Inputs, in ConstructJob() 94 bool NeedsSanitizerDeps = addSanitizerRuntimes(ToolChain, Args, CmdArgs); in ConstructJob() [all …]
|
| H A D | MSP430.cpp | 183 const ToolChain &ToolChain = getToolChain(); in AddStartFiles() local 185 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crt0.o"))); in AddStartFiles() 187 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtbegin))); in AddStartFiles() 192 const ToolChain &ToolChain = getToolChain(); in AddDefaultLibs() local 193 const Driver &D = ToolChain.getDriver(); in AddDefaultLibs() 198 AddRunTimeLibs(ToolChain, D, CmdArgs, Args); in AddDefaultLibs() 214 AddRunTimeLibs(ToolChain, D, CmdArgs, Args); in AddDefaultLibs() 219 const ToolChain &ToolChain = getToolChain(); in AddEndFiles() local 220 const Driver &D = ToolChain.getDriver(); in AddEndFiles() 223 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtend))); in AddEndFiles() [all …]
|
| H A D | Fuchsia.cpp | 35 const auto &ToolChain = static_cast<const Fuchsia &>(getToolChain()); in ConstructJob() local 36 const Driver &D = ToolChain.getDriver(); in ConstructJob() 38 const llvm::Triple &Triple = ToolChain.getEffectiveTriple(); in ConstructJob() 59 const char *Exec = Args.MakeArgString(ToolChain.GetLinkerPath()); in ConstructJob() 90 if (ToolChain.getArch() == llvm::Triple::aarch64) { in ConstructJob() 107 const SanitizerArgs &SanArgs = ToolChain.getSanitizerArgs(Args); in ConstructJob() 134 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("Scrt1.o"))); in ConstructJob() 140 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob() 143 addLTOOptions(ToolChain, Args, CmdArgs, Output, Inputs, in ConstructJob() 146 addLinkerCompressDebugSectionsOption(ToolChain, Args, CmdArgs); in ConstructJob() [all …]
|
| H A D | AIX.cpp | 113 const AIX &ToolChain = static_cast<const AIX &>(getToolChain()); in ConstructJob() local 114 const Driver &D = ToolChain.getDriver(); in ConstructJob() 117 const bool IsArch32Bit = ToolChain.getTriple().isArch32Bit(); in ConstructJob() 118 const bool IsArch64Bit = ToolChain.getTriple().isArch64Bit(); in ConstructJob() 175 ToolChain.getDriver().Diag(diag::err_drv_unsupported_option_argument) in ConstructJob() 220 Args.MakeArgString(ToolChain.GetFilePath(getCrt0Basename()))); in ConstructJob() 223 ToolChain.GetFilePath(IsArch32Bit ? "crti.o" : "crti_64.o"))); in ConstructJob() 259 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA); in ConstructJob() 262 addLTOOptions(ToolChain, Args, CmdArgs, Output, Inputs, in ConstructJob() 268 path::parent_path(ToolChain.getDriver().ClangExecutable) + in ConstructJob() [all …]
|
| H A D | NaCl.cpp | 33 const auto &ToolChain = static_cast<const NaClToolChain &>(getToolChain()); in ConstructJob() local 34 InputInfo NaClMacros(types::TY_PP_Asm, ToolChain.GetNaClArmMacrosPath(), in ConstructJob() 53 const auto &ToolChain = static_cast<const NaClToolChain &>(getToolChain()); in ConstructJob() local 54 const Driver &D = ToolChain.getDriver(); in ConstructJob() 55 const llvm::Triple::ArchType Arch = ToolChain.getArch(); in ConstructJob() 95 D.Diag(diag::err_target_unsupported_arch) << ToolChain.getArchName() in ConstructJob() 107 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crt1.o"))); in ConstructJob() 108 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crti.o"))); in ConstructJob() 117 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtbegin))); in ConstructJob() 122 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob() [all …]
|
| H A D | ZOS.cpp | 26 : ToolChain(D, Triple, Args) {} in ZOS() 115 const ZOS &ToolChain = static_cast<const ZOS &>(getToolChain()); in ConstructJob() local 170 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob() 173 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA); in ConstructJob() 206 if (ToolChain.ShouldLinkCXXStdlib(Args)) { in ConstructJob() 207 ToolChain.AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob() 212 AddRunTimeLibs(ToolChain, ToolChain.getDriver(), CmdArgs, Args); in ConstructJob() 214 const char *Exec = Args.MakeArgString(ToolChain.GetLinkerPath()); in ConstructJob() 219 ToolChain::RuntimeLibType ZOS::GetDefaultRuntimeLibType() const { in GetDefaultRuntimeLibType() 220 return ToolChain::RLT_CompilerRT; in GetDefaultRuntimeLibType() [all …]
|
| H A D | OHOS.cpp | 60 const ToolChain &TC, in findOHOSMultilibs() 175 ToolChain::RuntimeLibType OHOS::GetRuntimeLibType( in GetRuntimeLibType() 184 return ToolChain::RLT_CompilerRT; in GetRuntimeLibType() 187 ToolChain::CXXStdlibType 196 return ToolChain::CST_Libcxx; in GetCXXStdlibType() 244 case ToolChain::CST_Libcxx: { in AddClangCXXStdlibIncludeArgs() 263 case ToolChain::CST_Libcxx: in AddCXXStdlibLibArgs() 269 case ToolChain::CST_Libstdcxx: in AddCXXStdlibLibArgs() 286 ToolChain::path_list OHOS::getRuntimePaths() const { in getRuntimePaths() 346 Type == ToolChain::FT_Object ? "" : "lib"; in getCompilerRT() [all …]
|
| H A D | BareMetal.cpp | 202 return ToolChain::getCompilerRTPath(); in getCompilerRTPath() 208 ToolChain::path_list &Paths) { in addMultilibsFilePaths() 239 ToolChain::path_list &PPaths = getProgramPaths(); in BareMetal() 262 findMultilibsFromYAML(const ToolChain &TC, const Driver &D, in findMultilibsFromYAML() 375 ToolChain::CXXStdlibType BareMetal::GetDefaultCXXStdlibType() const { in GetDefaultCXXStdlibType() 377 return ToolChain::CST_Libstdcxx; in GetDefaultCXXStdlibType() 378 return ToolChain::CST_Libcxx; in GetDefaultCXXStdlibType() 381 ToolChain::RuntimeLibType BareMetal::GetDefaultRuntimeLibType() const { in GetDefaultRuntimeLibType() 383 return ToolChain::RLT_Libgcc; in GetDefaultRuntimeLibType() 384 return ToolChain::RLT_CompilerRT; in GetDefaultRuntimeLibType() [all …]
|
| H A D | OpenBSD.h | 25 Assembler(const ToolChain &TC) in Assembler() 38 Linker(const ToolChain &TC) : Tool("openbsd::Linker", "linker", TC) {} in Linker() 67 return ToolChain::RLT_CompilerRT; in GetDefaultRuntimeLibType() 70 return ToolChain::CST_Libcxx; in GetDefaultCXXStdlibType() 83 FileType Type = ToolChain::FT_Static,
|
| H A D | MipsLinux.cpp | 79 ToolChain::CXXStdlibType 89 return ToolChain::CST_Libcxx; in GetCXXStdlibType() 108 assert((GetCXXStdlibType(Args) == ToolChain::CST_Libcxx) && in AddCXXStdlibLibArgs() 126 case ToolChain::FT_Object: in getCompilerRT() 129 case ToolChain::FT_Static: in getCompilerRT() 132 case ToolChain::FT_Shared: in getCompilerRT()
|
| H A D | AVR.cpp | 496 FileType Type = ToolChain::FT_Static, in getCompilerRT() 498 assert(Type == ToolChain::FT_Static && "AVR only supports static libraries"); in getCompilerRT() 506 SmallString<256> Path(ToolChain::getCompilerRTPath()); in getCompilerRT() 546 (RtLib == ToolChain::RLT_Libgcc || RtLib == ToolChain::RLT_CompilerRT) && in ConstructJob() 567 if (RtLib == ToolChain::RLT_Libgcc) in ConstructJob() 607 if (RtLib == ToolChain::RLT_Libgcc) in ConstructJob() 622 if (RtLib == ToolChain::RLT_CompilerRT) { in ConstructJob() 624 getToolChain().getCompilerRT(Args, "builtins", ToolChain::FT_Static); in ConstructJob()
|
| H A D | CommonArgs.cpp | 349 ToolChain::path_list &Paths) { in addPathIfExists() 452 void tools::AddLinkerInputs(const ToolChain &TC, const InputInfoList &Inputs, in AddLinkerInputs() 621 const ToolChain &TC, const llvm::opt::ArgList &Args, in addLinkerCompressDebugSectionsOption() 915 bool tools::isTLSDESCEnabled(const ToolChain &TC, in isTLSDESCEnabled() 943 void tools::addLTOOptions(const ToolChain &ToolChain, const ArgList &Args, in addLTOOptions() argument 946 const llvm::Triple &Triple = ToolChain.getTriple(); in addLTOOptions() 950 const char *LinkerPath = Args.MakeArgString(ToolChain.GetLinkerPath()); in addLTOOptions() 951 const Driver &D = ToolChain.getDriver(); in addLTOOptions() 1127 if (!ToolChain.useIntegratedAs()) in addLTOOptions() 1154 isUseSeparateSections(ToolChain.getEffectiveTriple()); in addLTOOptions() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Driver/ |
| H A D | ToolChain.cpp | 65 static ToolChain::RTTIMode CalculateRTTIMode(const ArgList &Args, in CalculateRTTIMode() 71 return ToolChain::RM_Enabled; in CalculateRTTIMode() 73 return ToolChain::RM_Disabled; in CalculateRTTIMode() 78 return NoRTTI ? ToolChain::RM_Disabled : ToolChain::RM_Enabled; in CalculateRTTIMode() 81 static ToolChain::ExceptionsMode CalculateExceptionsMode(const ArgList &Args) { in CalculateExceptionsMode() 84 return ToolChain::EM_Enabled; in CalculateExceptionsMode() 86 return ToolChain::EM_Disabled; in CalculateExceptionsMode() 89 ToolChain::ToolChain(const Driver &D, const llvm::Triple &T, in ToolChain() function in ToolChain 108 ToolChain::executeToolChainProgram(StringRef Executable) const { in executeToolChainProgram() 145 void ToolChain::setTripleEnvironment(llvm::Triple::EnvironmentType Env) { in setTripleEnvironment() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Driver/ |
| H A D | CommonArgs.h | 28 ToolChain::path_list &Paths); 30 void AddLinkerInputs(const ToolChain &TC, const InputInfoList &Inputs, 36 void addLinkerCompressDebugSectionsOption(const ToolChain &TC, 42 bool addSanitizerRuntimes(const ToolChain &TC, const llvm::opt::ArgList &Args, 45 void linkSanitizerRuntimeDeps(const ToolChain &TC, 49 bool addXRayRuntime(const ToolChain &TC, const llvm::opt::ArgList &Args, 52 void linkXRayRuntimeDeps(const ToolChain &TC, const llvm::opt::ArgList &Args, 55 void AddRunTimeLibs(const ToolChain &TC, const Driver &D, 75 void SplitDebugInfo(const ToolChain &TC, Compilation &C, const Tool &T, 79 void addLTOOptions(const ToolChain &ToolChain, const llvm::opt::ArgList &Args, [all …]
|
| H A D | Compilation.h | 41 class ToolChain; variable 50 const ToolChain &DefaultToolChain; 60 std::multimap<Action::OffloadKind, const ToolChain *> 84 const ToolChain *TC = nullptr; 88 TCArgsKey(const ToolChain *TC, StringRef BoundArch, in TCArgsKey() 130 Compilation(const Driver &D, const ToolChain &DefaultToolChain, 137 const ToolChain &getDefaultToolChain() const { return DefaultToolChain; } in getDefaultToolChain() 148 const ToolChain *>::const_iterator; 172 const ToolChain *getSingleOffloadToolChain() const { in getSingleOffloadToolChain() 182 void addOffloadDeviceToolChain(const ToolChain *DeviceToolChain, in addOffloadDeviceToolChain() [all …]
|
| H A D | Action.h | 33 class ToolChain; variable 133 const ToolChain *OffloadingToolChain = nullptr; 192 const ToolChain *OToolChain); 213 const ToolChain *getOffloadingToolChain() const { in getOffloadingToolChain() 277 using ToolChainList = SmallVector<const ToolChain *, 3>; 302 void add(Action &A, const ToolChain &TC, const char *BoundArch, 307 void add(Action &A, const ToolChain &TC, const char *BoundArch, 326 const ToolChain &HostToolChain; 335 HostDependence(Action &A, const ToolChain &TC, const char *BoundArch, in HostDependence() 342 HostDependence(Action &A, const ToolChain &TC, const char *BoundArch, [all …]
|
| H A D | Driver.h | 55 class ToolChain; variable 368 mutable llvm::StringMap<std::unique_ptr<ToolChain>> ToolChains; 371 llvm::DenseMap<const ToolChain *, llvm::SmallVector<llvm::StringRef>> 388 void generatePrefixedToolNames(StringRef Tool, const ToolChain &TC, 502 void BuildInputs(const ToolChain &TC, llvm::opt::DerivedArgList &Args, 519 void BuildUniversalActions(Compilation &C, const ToolChain &TC, 540 Action::OffloadKind Kind, const ToolChain *TC, 630 std::string GetFilePath(StringRef Name, const ToolChain &TC) const; 638 std::string GetProgramPath(StringRef Name, const ToolChain &TC) const; 648 const ToolChain &TC) const; [all …]
|
| H A D | Tool.h | 27 class ToolChain; variable 40 const ToolChain &TheToolChain; 43 Tool(const char *Name, const char *ShortName, const ToolChain &TC); 52 const ToolChain &getToolChain() const { return TheToolChain; } in getToolChain()
|