xref: /freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/Arch/AArch64.h (revision 8ddb146abcdf061be9f2c0db7e391697dafad85c)
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 
9 #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_AARCH64_H
10 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_AARCH64_H
11 
12 #include "clang/Driver/Driver.h"
13 #include "llvm/ADT/StringRef.h"
14 #include "llvm/Option/Option.h"
15 #include <string>
16 #include <vector>
17 
18 namespace clang {
19 namespace driver {
20 namespace tools {
21 namespace aarch64 {
22 
23 void getAArch64TargetFeatures(const Driver &D, const llvm::Triple &Triple,
24                               const llvm::opt::ArgList &Args,
25                               llvm::opt::ArgStringList &CmdArgs,
26                               std::vector<llvm::StringRef> &Features,
27                               bool ForAS);
28 
29 std::string getAArch64TargetCPU(const llvm::opt::ArgList &Args,
30                                 const llvm::Triple &Triple, llvm::opt::Arg *&A);
31 
32 } // end namespace aarch64
33 } // end namespace target
34 } // end namespace driver
35 } // end namespace clang
36 
37 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_AARCH64_H
38