1 //===--- VE.h - VE ToolChain Implementations --------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_VE_H
10 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_VE_H
13 #include "clang/Driver/ToolChain.h"
17 namespace toolchains
{
19 class LLVM_LIBRARY_VISIBILITY VEToolChain
: public Linux
{
21 VEToolChain(const Driver
&D
, const llvm::Triple
&Triple
,
22 const llvm::opt::ArgList
&Args
);
25 Tool
*buildAssembler() const override
;
26 Tool
*buildLinker() const override
;
29 bool isPICDefault() const override
;
30 bool isPIEDefault(const llvm::opt::ArgList
&Args
) const override
;
31 bool isPICDefaultForced() const override
;
32 bool SupportsProfiling() const override
;
33 bool hasBlocksRuntime() const override
;
35 AddClangSystemIncludeArgs(const llvm::opt::ArgList
&DriverArgs
,
36 llvm::opt::ArgStringList
&CC1Args
) const override
;
38 addClangTargetOptions(const llvm::opt::ArgList
&DriverArgs
,
39 llvm::opt::ArgStringList
&CC1Args
,
40 Action::OffloadKind DeviceOffloadKind
) const override
;
41 void AddClangCXXStdlibIncludeArgs(
42 const llvm::opt::ArgList
&DriverArgs
,
43 llvm::opt::ArgStringList
&CC1Args
) const override
;
44 void AddCXXStdlibLibArgs(const llvm::opt::ArgList
&Args
,
45 llvm::opt::ArgStringList
&CmdArgs
) const override
;
47 llvm::ExceptionHandling
48 GetExceptionModel(const llvm::opt::ArgList
&Args
) const override
;
51 GetCXXStdlibType(const llvm::opt::ArgList
&Args
) const override
{
52 return ToolChain::CST_Libcxx
;
55 RuntimeLibType
GetDefaultRuntimeLibType() const override
{
56 return ToolChain::RLT_CompilerRT
;
59 const char *getDefaultLinker() const override
{ return "nld"; }
62 } // end namespace toolchains
63 } // end namespace driver
64 } // end namespace clang
66 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_VE_H