AArch64.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //===--- AArch64.h - AArch64-specific (not ARM) 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_AARCH64_H
  9. #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_AARCH64_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 aarch64 {
  19. void getAArch64TargetFeatures(const Driver &D, const llvm::Triple &Triple,
  20. const llvm::opt::ArgList &Args,
  21. llvm::opt::ArgStringList &CmdArgs,
  22. std::vector<llvm::StringRef> &Features,
  23. bool ForAS);
  24. std::string getAArch64TargetCPU(const llvm::opt::ArgList &Args,
  25. const llvm::Triple &Triple, llvm::opt::Arg *&A);
  26. } // end namespace aarch64
  27. } // end namespace target
  28. } // end namespace driver
  29. } // end namespace clang
  30. #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_AARCH64_H