Sparc.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //===--- Sparc.h - Sparc-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_SPARC_H
  9. #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_SPARC_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 sparc {
  19. enum class FloatABI {
  20. Invalid,
  21. Soft,
  22. Hard,
  23. };
  24. FloatABI getSparcFloatABI(const Driver &D, const llvm::opt::ArgList &Args);
  25. void getSparcTargetFeatures(const Driver &D, const llvm::opt::ArgList &Args,
  26. std::vector<llvm::StringRef> &Features);
  27. const char *getSparcAsmModeForCPU(llvm::StringRef Name,
  28. const llvm::Triple &Triple);
  29. } // end namespace sparc
  30. } // end namespace target
  31. } // end namespace driver
  32. } // end namespace clang
  33. #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_SPARC_H