TCE.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_TCE_H
  9. #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_TCE_H
  10. #include "clang/Driver/Driver.h"
  11. #include "clang/Driver/ToolChain.h"
  12. #include <set>
  13. namespace clang {
  14. namespace driver {
  15. namespace toolchains {
  16. /// TCEToolChain - A tool chain using the llvm bitcode tools to perform
  17. /// all subcommands. See http://tce.cs.tut.fi for our peculiar target.
  18. class LLVM_LIBRARY_VISIBILITY TCEToolChain : public ToolChain {
  19. public:
  20. TCEToolChain(const Driver &D, const llvm::Triple &Triple,
  21. const llvm::opt::ArgList &Args);
  22. ~TCEToolChain() override;
  23. bool IsMathErrnoDefault() const override;
  24. bool isPICDefault() const override;
  25. bool isPIEDefault(const llvm::opt::ArgList &Args) const override;
  26. bool isPICDefaultForced() const override;
  27. };
  28. /// Toolchain for little endian TCE cores.
  29. class LLVM_LIBRARY_VISIBILITY TCELEToolChain : public TCEToolChain {
  30. public:
  31. TCELEToolChain(const Driver &D, const llvm::Triple &Triple,
  32. const llvm::opt::ArgList &Args);
  33. ~TCELEToolChain() override;
  34. };
  35. } // end namespace toolchains
  36. } // end namespace driver
  37. } // end namespace clang
  38. #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_TCE_H