1//===--- TCE.h - TCE Tool and 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_TCE_H 10#define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_TCE_H 11 12#include "clang/Driver/Driver.h" 13#include "clang/Driver/ToolChain.h" 14#include <set> 15 16namespace clang { 17namespace driver { 18namespace toolchains { 19 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. 22class LLVM_LIBRARY_VISIBILITY TCEToolChain : public ToolChain { 23public: 24 TCEToolChain(const Driver &D, const llvm::Triple &Triple, 25 const llvm::opt::ArgList &Args); 26 ~TCEToolChain() override; 27 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; 32}; 33 34/// Toolchain for little endian TCE cores. 35class LLVM_LIBRARY_VISIBILITY TCELEToolChain : public TCEToolChain { 36public: 37 TCELEToolChain(const Driver &D, const llvm::Triple &Triple, 38 const llvm::opt::ArgList &Args); 39 ~TCELEToolChain() override; 40}; 41 42} // end namespace toolchains 43} // end namespace driver 44} // end namespace clang 45 46#endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_TCE_H 47