SystemZ.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //===--- SystemZ.h - SystemZ-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_SYSTEMZ_H
  9. #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_SYSTEMZ_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 systemz {
  19. enum class FloatABI {
  20. Soft,
  21. Hard,
  22. };
  23. FloatABI getSystemZFloatABI(const Driver &D, const llvm::opt::ArgList &Args);
  24. std::string getSystemZTargetCPU(const llvm::opt::ArgList &Args);
  25. void getSystemZTargetFeatures(const Driver &D, const llvm::opt::ArgList &Args,
  26. std::vector<llvm::StringRef> &Features);
  27. } // end namespace systemz
  28. } // end namespace target
  29. } // end namespace driver
  30. } // end namespace clang
  31. #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_SYSTEMZ_H