M68k.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //===--- M68k.h - M68k-specific Tool Helpers -----------------*- 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_ARCH_M680X0_H
  9. #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_M680X0_H
  10. #include "clang/Driver/Driver.h"
  11. #include "llvm/ADT/StringRef.h"
  12. #include "llvm/Option/Option.h"
  13. #include <string>
  14. #include <vector>
  15. namespace clang {
  16. namespace driver {
  17. namespace tools {
  18. namespace m68k {
  19. enum class FloatABI {
  20. Invalid,
  21. Soft,
  22. Hard,
  23. };
  24. FloatABI getM68kFloatABI(const Driver &D, const llvm::opt::ArgList &Args);
  25. std::string getM68kTargetCPU(const llvm::opt::ArgList &Args);
  26. void getM68kTargetFeatures(const Driver &D, const llvm::Triple &Triple,
  27. const llvm::opt::ArgList &Args,
  28. std::vector<llvm::StringRef> &Features);
  29. } // end namespace m68k
  30. } // end namespace tools
  31. } // end namespace driver
  32. } // end namespace clang
  33. #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_M680X0_H