/netbsd-src/external/apache2/llvm/dist/clang/lib/Driver/ |
H A D | ToolChain.cpp | 59 static ToolChain::RTTIMode CalculateRTTIMode(const ArgList &Args, in CalculateRTTIMode() 65 return ToolChain::RM_Enabled; in CalculateRTTIMode() 67 return ToolChain::RM_Disabled; in CalculateRTTIMode() 71 return (Triple.isPS4CPU()) ? ToolChain::RM_Disabled : ToolChain::RM_Enabled; in CalculateRTTIMode() 74 ToolChain::ToolChain(const Driver &D, const llvm::Triple &T, in ToolChain() function in ToolChain 91 void ToolChain::setTripleEnvironment(llvm::Triple::EnvironmentType Env) { in setTripleEnvironment() 97 ToolChain::~ToolChain() = default; 99 llvm::vfs::FileSystem &ToolChain::getVFS() const { in getVFS() 103 bool ToolChain::useIntegratedAs() const { in useIntegratedAs() 109 bool ToolChain::useRelaxRelocations() const { in useRelaxRelocations() [all …]
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Driver/ToolChains/ |
H A D | RISCVToolchain.cpp | 28 ToolChain::path_list &Paths) { in addMultilibsFilePaths() 62 ToolChain::path_list &PPaths = getProgramPaths(); in RISCVToolChain() 79 ToolChain::RuntimeLibType RISCVToolChain::GetDefaultRuntimeLibType() const { in GetDefaultRuntimeLibType() 81 ToolChain::RLT_Libgcc : ToolChain::RLT_CompilerRT; in GetDefaultRuntimeLibType() 84 ToolChain::UnwindLibType 86 return ToolChain::UNW_None; in GetUnwindLibType() 146 const ToolChain &ToolChain = getToolChain(); in ConstructJob() local 147 const Driver &D = ToolChain.getDriver(); in ConstructJob() 153 bool IsRV64 = ToolChain.getArch() == llvm::Triple::riscv64; in ConstructJob() 167 auto RuntimeLib = ToolChain.GetRuntimeLibType(Args); in ConstructJob() [all …]
|
H A D | CommonArgs.h | 24 ToolChain::path_list &Paths); 26 void AddLinkerInputs(const ToolChain &TC, const InputInfoList &Inputs, 30 void addLinkerCompressDebugSectionsOption(const ToolChain &TC, 36 bool addSanitizerRuntimes(const ToolChain &TC, const llvm::opt::ArgList &Args, 39 void linkSanitizerRuntimeDeps(const ToolChain &TC, 42 bool addXRayRuntime(const ToolChain &TC, const llvm::opt::ArgList &Args, 45 void linkXRayRuntimeDeps(const ToolChain &TC, 48 void AddRunTimeLibs(const ToolChain &TC, const Driver &D, 55 void SplitDebugInfo(const ToolChain &TC, Compilation &C, const Tool &T, 59 void addLTOOptions(const ToolChain &ToolChain, const llvm::opt::ArgList &Args, [all …]
|
H A D | Ananas.cpp | 52 const ToolChain &ToolChain = getToolChain(); in ConstructJob() local 53 const Driver &D = ToolChain.getDriver(); in ConstructJob() 90 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crt0.o"))); in ConstructJob() 92 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crti.o"))); in ConstructJob() 94 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtbeginS.o"))); in ConstructJob() 96 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtbegin.o"))); in ConstructJob() 101 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob() 108 addLTOOptions(ToolChain, Args, CmdArgs, Output, Inputs[0], in ConstructJob() 112 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA); in ConstructJob() 114 if (ToolChain.ShouldLinkCXXStdlib(Args)) in ConstructJob() [all …]
|
H A D | AIX.cpp | 81 const AIX &ToolChain = static_cast<const AIX &>(getToolChain()); in ConstructJob() local 82 const Driver &D = ToolChain.getDriver(); in ConstructJob() 85 const bool IsArch32Bit = ToolChain.getTriple().isArch32Bit(); in ConstructJob() 86 const bool IsArch64Bit = ToolChain.getTriple().isArch64Bit(); in ConstructJob() 135 Args.MakeArgString(ToolChain.GetFilePath(getCrt0Basename()))); in ConstructJob() 138 ToolChain.GetFilePath(IsArch32Bit ? "crti.o" : "crti_64.o"))); in ConstructJob() 148 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA); in ConstructJob() 152 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob() 153 ToolChain.addProfileRTLibs(Args, CmdArgs); in ConstructJob() 159 AddRunTimeLibs(ToolChain, D, CmdArgs, Args); in ConstructJob() [all …]
|
H A D | CloudABI.cpp | 30 const ToolChain &ToolChain = getToolChain(); in ConstructJob() local 31 const Driver &D = ToolChain.getDriver(); in ConstructJob() 50 if (ToolChain.isPIEDefault()) { in ConstructJob() 66 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crt0.o"))); in ConstructJob() 67 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crtbegin.o"))); in ConstructJob() 71 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob() 78 addLTOOptions(ToolChain, Args, CmdArgs, Output, Inputs[0], in ConstructJob() 82 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA); in ConstructJob() 84 if (ToolChain.ShouldLinkCXXStdlib(Args)) in ConstructJob() 85 ToolChain.AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob() [all …]
|
H A D | FreeBSD.cpp | 142 const toolchains::FreeBSD &ToolChain = in ConstructJob() local 144 const Driver &D = ToolChain.getDriver(); in ConstructJob() 145 const llvm::Triple::ArchType Arch = ToolChain.getArch(); in ConstructJob() 148 (Args.hasArg(options::OPT_pie) || ToolChain.isPIEDefault()); in ConstructJob() 177 const llvm::Triple &T = ToolChain.getTriple(); in ConstructJob() 236 if (ToolChain.getTriple().isMIPS()) { in ConstructJob() 261 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crt1))); in ConstructJob() 263 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crti.o"))); in ConstructJob() 273 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtbegin))); in ConstructJob() 277 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob() [all …]
|
H A D | WebAssembly.cpp | 37 const ToolChain &ToolChain = getToolChain(); in getLinkerPath() local 47 ToolChain.getDriver().Diag(diag::err_drv_invalid_linker_name) in getLinkerPath() 52 return ToolChain.GetProgramPath(ToolChain.getDefaultLinker()); in getLinkerPath() 61 const ToolChain &ToolChain = getToolChain(); in ConstructJob() local 76 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob() 87 if (ToolChain.GetFilePath("crt1-command.o") != "crt1-command.o") in ConstructJob() 98 ToolChain.getDriver().Diag(diag::err_drv_invalid_argument_to_option) in ConstructJob() 103 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(Crt1))); in ConstructJob() 109 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA); in ConstructJob() 112 if (ToolChain.ShouldLinkCXXStdlib(Args)) in ConstructJob() [all …]
|
H A D | Fuchsia.cpp | 36 const toolchains::Fuchsia &ToolChain = in ConstructJob() local 38 const Driver &D = ToolChain.getDriver(); in ConstructJob() 56 const char *Exec = Args.MakeArgString(ToolChain.GetLinkerPath()); in ConstructJob() 92 const SanitizerArgs &SanArgs = ToolChain.getSanitizerArgs(); in ConstructJob() 112 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("Scrt1.o"))); in ConstructJob() 119 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob() 123 addLTOOptions(ToolChain, Args, CmdArgs, Output, Inputs[0], in ConstructJob() 127 bool NeedsSanitizerDeps = addSanitizerRuntimes(ToolChain, Args, CmdArgs); in ConstructJob() 128 bool NeedsXRayDeps = addXRayRuntime(ToolChain, Args, CmdArgs); in ConstructJob() 129 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA); in ConstructJob() [all …]
|
H A D | MSP430.cpp | 184 const ToolChain &ToolChain = getToolChain(); in AddStartFiles() local 186 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crt0.o"))); in AddStartFiles() 188 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtbegin))); in AddStartFiles() 193 const ToolChain &ToolChain = getToolChain(); in AddDefaultLibs() local 194 const Driver &D = ToolChain.getDriver(); in AddDefaultLibs() 199 AddRunTimeLibs(ToolChain, D, CmdArgs, Args); in AddDefaultLibs() 215 AddRunTimeLibs(ToolChain, D, CmdArgs, Args); in AddDefaultLibs() 220 const ToolChain &ToolChain = getToolChain(); in AddEndFiles() local 221 const Driver &D = ToolChain.getDriver(); in AddEndFiles() 224 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtend))); in AddEndFiles() [all …]
|
H A D | NetBSD.cpp | 116 const toolchains::NetBSD &ToolChain = in ConstructJob() local 118 const Driver &D = ToolChain.getDriver(); in ConstructJob() 145 switch (ToolChain.getArch()) { in ConstructJob() 153 switch (ToolChain.getTriple().getEnvironment()) { in ConstructJob() 169 arm::appendBE8LinkFlag(Args, CmdArgs, ToolChain.getEffectiveTriple()); in ConstructJob() 171 switch (ToolChain.getTriple().getEnvironment()) { in ConstructJob() 189 if (ToolChain.getArch() == llvm::Triple::mips64) in ConstructJob() 195 if (ToolChain.getArch() == llvm::Triple::mips64) in ConstructJob() 236 Args.MakeArgString(ToolChain.GetFilePath("crt0.o"))); in ConstructJob() 239 Args.MakeArgString(ToolChain.GetFilePath("crti.o"))); in ConstructJob() [all …]
|
H A D | OpenBSD.cpp | 95 const toolchains::OpenBSD &ToolChain = in ConstructJob() local 108 if (ToolChain.getArch() == llvm::Triple::mips64) in ConstructJob() 110 else if (ToolChain.getArch() == llvm::Triple::mips64el) in ConstructJob() 162 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crt0))); in ConstructJob() 163 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtbegin))); in ConstructJob() 167 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob() 172 bool NeedsSanitizerDeps = addSanitizerRuntimes(ToolChain, Args, CmdArgs); in ConstructJob() 173 bool NeedsXRayDeps = addXRayRuntime(ToolChain, Args, CmdArgs); in ConstructJob() 174 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA); in ConstructJob() 178 if (ToolChain.ShouldLinkCXXStdlib(Args)) in ConstructJob() [all …]
|
H A D | NaCl.cpp | 34 const toolchains::NaClToolChain &ToolChain = in ConstructJob() local 36 InputInfo NaClMacros(types::TY_PP_Asm, ToolChain.GetNaClArmMacrosPath(), in ConstructJob() 55 const toolchains::NaClToolChain &ToolChain = in ConstructJob() local 57 const Driver &D = ToolChain.getDriver(); in ConstructJob() 58 const llvm::Triple::ArchType Arch = ToolChain.getArch(); in ConstructJob() 98 D.Diag(diag::err_target_unsupported_arch) << ToolChain.getArchName() in ConstructJob() 110 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crt1.o"))); in ConstructJob() 111 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crti.o"))); in ConstructJob() 120 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtbegin))); in ConstructJob() 126 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob() [all …]
|
H A D | CommonArgs.cpp | 122 ToolChain::path_list &Paths) { in addPathIfExists() 224 void tools::AddLinkerInputs(const ToolChain &TC, const InputInfoList &Inputs, in AddLinkerInputs() 276 const ToolChain &TC, const llvm::opt::ArgList &Args, in addLinkerCompressDebugSectionsOption() 478 void tools::addLTOOptions(const ToolChain &ToolChain, const ArgList &Args, in addLTOOptions() argument 481 const char *Linker = Args.MakeArgString(ToolChain.GetLinkerPath()); in addLTOOptions() 482 const Driver &D = ToolChain.getDriver(); in addLTOOptions() 509 std::string CPU = getCPUName(Args, ToolChain.getTriple()); in addLTOOptions() 560 isUseSeparateSections(ToolChain.getEffectiveTriple()); in addLTOOptions() 638 renderRemarksOptions(Args, CmdArgs, ToolChain.getEffectiveTriple(), Input, in addLTOOptions() 644 addMachineOutlinerArgs(D, Args, CmdArgs, ToolChain.getEffectiveTriple(), in addLTOOptions() [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() 65 return ToolChain::RLT_CompilerRT; in GetDefaultRuntimeLibType() 68 return ToolChain::CST_Libcxx; in GetDefaultCXXStdlibType() 81 FileType Type = ToolChain::FT_Static) const override;
|
H A D | MipsLinux.cpp | 82 ToolChain::CXXStdlibType 92 return ToolChain::CST_Libcxx; in GetCXXStdlibType() 111 assert((GetCXXStdlibType(Args) == ToolChain::CST_Libcxx) && in AddCXXStdlibLibArgs() 127 case ToolChain::FT_Object: in getCompilerRT() 130 case ToolChain::FT_Static: in getCompilerRT() 133 case ToolChain::FT_Shared: in getCompilerRT()
|
H A D | BareMetal.h | 22 class LLVM_LIBRARY_VISIBILITY BareMetal : public ToolChain { 38 FileType Type = ToolChain::FT_Static, 54 return ToolChain::RLT_CompilerRT; in GetDefaultRuntimeLibType() 57 return ToolChain::CST_Libcxx; in GetDefaultCXXStdlibType() 85 Linker(const ToolChain &TC) : Tool("baremetal::Linker", "ld.lld", TC) {} in Linker()
|
H A D | PS4CPU.cpp | 28 void tools::PS4cpu::addProfileRTArgs(const ToolChain &TC, const ArgList &Args, in addProfileRTArgs() 74 static void AddPS4SanitizerArgs(const ToolChain &TC, ArgStringList &CmdArgs) { in AddPS4SanitizerArgs() 84 void tools::PS4cpu::addSanitizerArgs(const ToolChain &TC, in addSanitizerArgs() 98 const toolchains::FreeBSD &ToolChain = in ConstructJob() local 100 const Driver &D = ToolChain.getDriver(); in ConstructJob() 130 AddPS4SanitizerArgs(ToolChain, CmdArgs); in ConstructJob() 142 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA); in ConstructJob() 154 Args.MakeArgString(ToolChain.GetProgramPath("orbis-ld")); in ConstructJob() 233 SanitizerMask Res = ToolChain::getSupportedSanitizers(); in getSupportedSanitizers()
|
H A D | Gnu.h | 43 Assembler(const ToolChain &TC) : Tool("GNU::Assembler", "assembler", TC) {} in Assembler() 55 Linker(const ToolChain &TC) : Tool("GNU::Linker", "linker", TC) {} in Linker() 68 StaticLibTool(const ToolChain &TC) in StaticLibTool() 85 Common(const char *Name, const char *ShortName, const ToolChain &TC) in Common() 105 Preprocessor(const ToolChain &TC) in Preprocessor() 117 Compiler(const ToolChain &TC) : Common("gcc::Compiler", "gcc frontend", TC) {} in Compiler() 128 Linker(const ToolChain &TC) : Common("gcc::Linker", "linker (via gcc)", TC) {} in Linker() 144 class LLVM_LIBRARY_VISIBILITY Generic_GCC : public ToolChain { 322 void PushPPaths(ToolChain::path_list &PPaths);
|
H A D | Gnu.cpp | 307 static bool getPIE(const ArgList &Args, const ToolChain &TC) { in getPIE() 319 static bool getStaticPIE(const ArgList &Args, const ToolChain &TC) { in getStaticPIE() 391 const toolchains::Generic_ELF &ToolChain = in ConstructJob() local 393 const Driver &D = ToolChain.getDriver(); in ConstructJob() 397 const llvm::Triple::ArchType Arch = ToolChain.getArch(); in ConstructJob() 398 const bool isAndroid = ToolChain.getTriple().isAndroid(); in ConstructJob() 399 const bool IsIAMCU = ToolChain.getTriple().isOSIAMCU(); in ConstructJob() 400 const bool IsVE = ToolChain.getTriple().isVE(); in ConstructJob() 401 const bool IsPIE = getPIE(Args, ToolChain); in ConstructJob() 402 const bool IsStaticPIE = getStaticPIE(Args, ToolChain); in ConstructJob() [all …]
|
H A D | Cuda.h | 89 Assembler(const ToolChain &TC) : Tool("NVPTX::Assembler", "ptxas", TC) {} in Assembler() 103 Linker(const ToolChain &TC) : Tool("NVPTX::Linker", "fatbinary", TC) {} in Linker() 115 OpenMPLinker(const ToolChain &TC) in OpenMPLinker() 131 class LLVM_LIBRARY_VISIBILITY CudaToolChain : public ToolChain { 134 const ToolChain &HostTC, const llvm::opt::ArgList &Args, 191 const ToolChain &HostTC;
|
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Driver/ |
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() 133 Compilation(const Driver &D, const ToolChain &DefaultToolChain, 140 const ToolChain &getDefaultToolChain() const { return DefaultToolChain; } in getDefaultToolChain() 149 const ToolChain *>::const_iterator; 168 const ToolChain *getSingleOffloadToolChain() const { in getSingleOffloadToolChain() 178 void addOffloadDeviceToolChain(const ToolChain *DeviceToolChain, in addOffloadDeviceToolChain() [all …]
|
H A D | Driver.h | 47 class ToolChain; variable 265 mutable llvm::StringMap<std::unique_ptr<ToolChain>> ToolChains; 289 void generatePrefixedToolNames(StringRef Tool, const ToolChain &TC, 402 void BuildInputs(const ToolChain &TC, llvm::opt::DerivedArgList &Args, 419 void BuildUniversalActions(Compilation &C, const ToolChain &TC, 480 std::string GetFilePath(StringRef Name, const ToolChain &TC) const; 488 std::string GetProgramPath(StringRef Name, const ToolChain &TC) const; 513 BuildJobsForAction(Compilation &C, const Action *A, const ToolChain *TC, 599 const ToolChain &getToolChain(const llvm::opt::ArgList &Args, 612 Compilation &C, const Action *A, const ToolChain *TC, StringRef BoundArch,
|
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()
|
H A D | Action.h | 33 class ToolChain; variable 262 using ToolChainList = SmallVector<const ToolChain *, 3>; 287 void add(Action &A, const ToolChain &TC, const char *BoundArch, 306 const ToolChain &HostToolChain; 315 HostDependence(Action &A, const ToolChain &TC, const char *BoundArch, in HostDependence() 322 HostDependence(Action &A, const ToolChain &TC, const char *BoundArch, 325 const ToolChain *getToolChain() const { return &HostToolChain; } in getToolChain() 331 llvm::function_ref<void(Action *, const ToolChain *, const char *)>; 335 const ToolChain *HostTC = nullptr; 593 const ToolChain *DependentToolChain = nullptr; [all …]
|