Home
last modified time | relevance | path

Searched refs:ToolChain (Results 1 – 25 of 118) sorted by relevance

12345

/external/clang/lib/Driver/
DToolChain.cpp40 static ToolChain::RTTIMode CalculateRTTIMode(const ArgList &Args, in CalculateRTTIMode()
46 return ToolChain::RM_EnabledExplicitly; in CalculateRTTIMode()
48 return ToolChain::RM_DisabledExplicitly; in CalculateRTTIMode()
53 return ToolChain::RM_EnabledImplicitly; in CalculateRTTIMode()
63 return ToolChain::RM_EnabledImplicitly; in CalculateRTTIMode()
65 return ToolChain::RM_DisabledImplicitly; in CalculateRTTIMode()
68 ToolChain::ToolChain(const Driver &D, const llvm::Triple &T, in ToolChain() function in ToolChain
78 ToolChain::~ToolChain() { in ~ToolChain()
81 vfs::FileSystem &ToolChain::getVFS() const { return getDriver().getVFS(); } in getVFS()
83 bool ToolChain::useIntegratedAs() const { in useIntegratedAs()
[all …]
DTools.h41 SmallString<128> getCompilerRT(const ToolChain &TC,
61 const ToolChain *AuxToolChain) const;
109 Clang(const ToolChain &TC) : Tool("clang", "clang frontend", TC, RF_Full) {} in Clang()
125 ClangAs(const ToolChain &TC) in ClangAs()
145 GnuTool(const char *Name, const char *ShortName, const ToolChain &TC) in GnuTool()
153 Common(const char *Name, const char *ShortName, const ToolChain &TC) in Common()
173 Preprocessor(const ToolChain &TC) in Preprocessor()
185 Compiler(const ToolChain &TC) : Common("gcc::Compiler", "gcc frontend", TC) {} in Compiler()
196 Linker(const ToolChain &TC) : Common("gcc::Linker", "linker (via gcc)", TC) {} in Linker()
212 Assembler(const ToolChain &TC) in Assembler()
[all …]
DCrossWindowsToolChain.cpp22 if (GetCXXStdlibType(Args) == ToolChain::CST_Libstdcxx) { in CrossWindowsToolChain()
81 case ToolChain::CST_Libcxx: in AddClangCXXStdlibIncludeArgs()
85 case ToolChain::CST_Libstdcxx: in AddClangCXXStdlibIncludeArgs()
98 case ToolChain::CST_Libcxx: in AddCXXStdlibLibArgs()
101 case ToolChain::CST_Libstdcxx: in AddCXXStdlibLibArgs()
113 SanitizerMask Res = ToolChain::getSupportedSanitizers(); in getSupportedSanitizers()
/external/llvm-project/clang/lib/Driver/
DToolChain.cpp59 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 …]
/external/llvm-project/clang/lib/Driver/ToolChains/
DRISCVToolchain.cpp28 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()
145 const ToolChain &ToolChain = getToolChain(); in ConstructJob() local
146 const Driver &D = ToolChain.getDriver(); in ConstructJob()
152 bool IsRV64 = ToolChain.getArch() == llvm::Triple::riscv64; in ConstructJob()
166 auto RuntimeLib = ToolChain.GetRuntimeLibType(Args); in ConstructJob()
[all …]
DCommonArgs.h24 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 …]
DAnanas.cpp52 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 …]
DAIX.cpp81 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 …]
DCloudABI.cpp30 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 …]
DFuchsia.cpp36 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()
110 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("Scrt1.o"))); in ConstructJob()
117 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob()
121 addLTOOptions(ToolChain, Args, CmdArgs, Output, Inputs[0], in ConstructJob()
125 bool NeedsSanitizerDeps = addSanitizerRuntimes(ToolChain, Args, CmdArgs); in ConstructJob()
126 bool NeedsXRayDeps = addXRayRuntime(ToolChain, Args, CmdArgs); in ConstructJob()
127 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA); in ConstructJob()
[all …]
DMSP430.cpp184 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 …]
DWebAssembly.cpp37 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()
88 ToolChain.getDriver().Diag(diag::err_drv_invalid_argument_to_option) in ConstructJob()
93 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(Crt1))); in ConstructJob()
99 AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA); in ConstructJob()
102 if (ToolChain.ShouldLinkCXXStdlib(Args)) in ConstructJob()
103 ToolChain.AddCXXStdlibLibArgs(Args, CmdArgs); in ConstructJob()
[all …]
DFreeBSD.cpp141 const toolchains::FreeBSD &ToolChain = in ConstructJob() local
143 const Driver &D = ToolChain.getDriver(); in ConstructJob()
144 const llvm::Triple::ArchType Arch = ToolChain.getArch(); in ConstructJob()
147 (Args.hasArg(options::OPT_pie) || ToolChain.isPIEDefault()); in ConstructJob()
176 const llvm::Triple &T = ToolChain.getTriple(); in ConstructJob()
230 if (ToolChain.getTriple().isMIPS()) { in ConstructJob()
255 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crt1))); in ConstructJob()
257 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath("crti.o"))); in ConstructJob()
267 CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtbegin))); in ConstructJob()
271 ToolChain.AddFilePathLibArgs(Args, CmdArgs); in ConstructJob()
[all …]
DNetBSD.cpp116 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 …]
DOpenBSD.cpp95 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 …]
DNaCl.cpp34 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 …]
DCommonArgs.cpp121 ToolChain::path_list &Paths) { in addPathIfExists()
223 void tools::AddLinkerInputs(const ToolChain &TC, const InputInfoList &Inputs, in AddLinkerInputs()
275 const ToolChain &TC, const llvm::opt::ArgList &Args, in addLinkerCompressDebugSectionsOption()
468 void tools::addLTOOptions(const ToolChain &ToolChain, const ArgList &Args, in addLTOOptions() argument
471 const char *Linker = Args.MakeArgString(ToolChain.GetLinkerPath()); in addLTOOptions()
472 const Driver &D = ToolChain.getDriver(); in addLTOOptions()
499 std::string CPU = getCPUName(Args, ToolChain.getTriple()); in addLTOOptions()
548 isUseSeparateSections(ToolChain.getEffectiveTriple()); in addLTOOptions()
619 renderRemarksOptions(Args, CmdArgs, ToolChain.getEffectiveTriple(), Input, in addLTOOptions()
626 void tools::addArchSpecificRPath(const ToolChain &TC, const ArgList &Args, in addArchSpecificRPath()
[all …]
DOpenBSD.h25 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;
DBareMetal.h22 class LLVM_LIBRARY_VISIBILITY BareMetal : public ToolChain {
45 FileType Type = ToolChain::FT_Static,
49 return ToolChain::RLT_CompilerRT; in GetDefaultRuntimeLibType()
52 return ToolChain::CST_Libcxx; in GetDefaultCXXStdlibType()
80 Linker(const ToolChain &TC) : Tool("baremetal::Linker", "ld.lld", TC) {} in Linker()
DMipsLinux.cpp82 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()
/external/clang/include/clang/Driver/
DCompilation.h31 class ToolChain; variable
40 const ToolChain &DefaultToolChain;
50 std::multimap<Action::OffloadKind, const ToolChain *>
73 llvm::DenseMap<std::pair<const ToolChain *, const char *>,
93 Compilation(const Driver &D, const ToolChain &DefaultToolChain,
100 const ToolChain &getDefaultToolChain() const { return DefaultToolChain; } in getDefaultToolChain()
101 const ToolChain *getOffloadingHostToolChain() const { in getOffloadingHostToolChain()
113 const ToolChain *>::const_iterator
127 const ToolChain *getSingleOffloadToolChain() const { in getSingleOffloadToolChain()
137 void addOffloadDeviceToolChain(const ToolChain *DeviceToolChain, in addOffloadDeviceToolChain()
[all …]
DDriver.h54 class ToolChain; variable
209 mutable llvm::StringMap<ToolChain *> ToolChains;
225 void generatePrefixedToolNames(const char *Tool, const ToolChain &TC,
309 void BuildInputs(const ToolChain &TC, llvm::opt::DerivedArgList &Args,
326 void BuildUniversalActions(Compilation &C, const ToolChain &TC,
371 std::string GetFilePath(const char *Name, const ToolChain &TC) const;
379 std::string GetProgramPath(const char *Name, const ToolChain &TC) const;
398 const ToolChain *TC, const char *BoundArch,
453 const ToolChain &getToolChain(const llvm::opt::ArgList &Args,
466 Compilation &C, const Action *A, const ToolChain *TC,
/external/llvm-project/clang/include/clang/Driver/
DCompilation.h41 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 …]
DTool.h27 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()
/external/llvm-project/clang/unittests/Driver/
DToolChainTest.cpp200 ParsedClangName Res = ToolChain::getTargetAndModeFromProgramName("clang"); in TEST()
206 Res = ToolChain::getTargetAndModeFromProgramName("clang++"); in TEST()
212 Res = ToolChain::getTargetAndModeFromProgramName("clang++6.0"); in TEST()
218 Res = ToolChain::getTargetAndModeFromProgramName("clang++-release"); in TEST()
224 Res = ToolChain::getTargetAndModeFromProgramName("x86_64-clang++"); in TEST()
230 Res = ToolChain::getTargetAndModeFromProgramName( in TEST()
237 Res = ToolChain::getTargetAndModeFromProgramName( in TEST()
244 Res = ToolChain::getTargetAndModeFromProgramName("qqq"); in TEST()
250 Res = ToolChain::getTargetAndModeFromProgramName("x86_64-qqq"); in TEST()
256 Res = ToolChain::getTargetAndModeFromProgramName("qqq-clang-cl"); in TEST()

12345