clang  14.0.0git
VEToolchain.h
Go to the documentation of this file.
1 //===--- VE.h - VE ToolChain Implementations --------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_VE_H
10 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_VE_H
11 
12 #include "Linux.h"
13 #include "clang/Driver/ToolChain.h"
14 
15 namespace clang {
16 namespace driver {
17 namespace toolchains {
18 
19 class LLVM_LIBRARY_VISIBILITY VEToolChain : public Linux {
20 public:
21  VEToolChain(const Driver &D, const llvm::Triple &Triple,
22  const llvm::opt::ArgList &Args);
23 
24 protected:
25  Tool *buildAssembler() const override;
26  Tool *buildLinker() const override;
27 
28 public:
29  bool IsIntegratedAssemblerDefault() const override { return true; }
30  bool isPICDefault() const override;
31  bool isPIEDefault() const override;
32  bool isPICDefaultForced() const override;
33  bool SupportsProfiling() const override;
34  bool hasBlocksRuntime() const override;
35  void
36  AddClangSystemIncludeArgs(const llvm::opt::ArgList &DriverArgs,
37  llvm::opt::ArgStringList &CC1Args) const override;
38  void
39  addClangTargetOptions(const llvm::opt::ArgList &DriverArgs,
40  llvm::opt::ArgStringList &CC1Args,
41  Action::OffloadKind DeviceOffloadKind) const override;
42  void AddClangCXXStdlibIncludeArgs(
43  const llvm::opt::ArgList &DriverArgs,
44  llvm::opt::ArgStringList &CC1Args) const override;
45  void AddCXXStdlibLibArgs(const llvm::opt::ArgList &Args,
46  llvm::opt::ArgStringList &CmdArgs) const override;
47 
48  llvm::ExceptionHandling
49  GetExceptionModel(const llvm::opt::ArgList &Args) const override;
50 
51  CXXStdlibType
52  GetCXXStdlibType(const llvm::opt::ArgList &Args) const override {
53  return ToolChain::CST_Libcxx;
54  }
55 
58  }
59 
60  const char *getDefaultLinker() const override { return "nld"; }
61 };
62 
63 } // end namespace toolchains
64 } // end namespace driver
65 } // end namespace clang
66 
67 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_VE_H
clang::driver::toolchains::VEToolChain
Definition: VEToolchain.h:19
clang::driver::ToolChain::RuntimeLibType
RuntimeLibType
Definition: ToolChain.h:100
clang::driver::Tool
Tool - Information on a specific compilation tool.
Definition: Tool.h:32
clang::driver::toolchains::VEToolChain::IsIntegratedAssemblerDefault
bool IsIntegratedAssemblerDefault() const override
IsIntegratedAssemblerDefault - Does this tool chain enable -integrated-as by default.
Definition: VEToolchain.h:29
clang::driver::toolchains::Linux
Definition: Linux.h:19
clang::driver::ToolChain::CST_Libcxx
@ CST_Libcxx
Definition: ToolChain.h:96
Linux.h
ToolChain.h
clang::driver::toolchains::VEToolChain::GetCXXStdlibType
CXXStdlibType GetCXXStdlibType(const llvm::opt::ArgList &Args) const override
Definition: VEToolchain.h:52
clang::driver::ToolChain::RLT_CompilerRT
@ RLT_CompilerRT
Definition: ToolChain.h:101
clang::driver::toolchains::VEToolChain::GetDefaultRuntimeLibType
RuntimeLibType GetDefaultRuntimeLibType() const override
GetDefaultRuntimeLibType - Get the default runtime library variant to use.
Definition: VEToolchain.h:56
clang
Definition: CalledOnceCheck.h:17
clang::driver::Driver
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
Definition: Driver.h:59
clang::driver::Action::OffloadKind
OffloadKind
Definition: Action.h:85
clang::driver::toolchains::VEToolChain::getDefaultLinker
const char * getDefaultLinker() const override
GetDefaultLinker - Get the default linker to use.
Definition: VEToolchain.h:60