1 //===--- TCE.h - TCE Tool and 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_TCE_H
10 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_TCE_H
12 #include "clang/Driver/Driver.h"
13 #include "clang/Driver/ToolChain.h"
18 namespace toolchains
{
20 /// TCEToolChain - A tool chain using the llvm bitcode tools to perform
21 /// all subcommands. See http://tce.cs.tut.fi for our peculiar target.
22 class LLVM_LIBRARY_VISIBILITY TCEToolChain
: public ToolChain
{
24 TCEToolChain(const Driver
&D
, const llvm::Triple
&Triple
,
25 const llvm::opt::ArgList
&Args
);
26 ~TCEToolChain() override
;
28 bool IsMathErrnoDefault() const override
;
29 bool isPICDefault() const override
;
30 bool isPIEDefault(const llvm::opt::ArgList
&Args
) const override
;
31 bool isPICDefaultForced() const override
;
34 /// Toolchain for little endian TCE cores.
35 class LLVM_LIBRARY_VISIBILITY TCELEToolChain
: public TCEToolChain
{
37 TCELEToolChain(const Driver
&D
, const llvm::Triple
&Triple
,
38 const llvm::opt::ArgList
&Args
);
39 ~TCELEToolChain() override
;
42 } // end namespace toolchains
43 } // end namespace driver
44 } // end namespace clang
46 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_TCE_H