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 <optional>
16#include <string>
17#include <vector>
18
19namespace clang {
20namespace driver {
21namespace tools {
22namespace aarch64 {
23
24void getAArch64TargetFeatures(const Driver &D, const llvm::Triple &Triple,
25 const llvm::opt::ArgList &Args,
26 std::vector<llvm::StringRef> &Features,
27 bool ForAS, bool ForMultilib = false);
28
29std::string getAArch64TargetCPU(const llvm::opt::ArgList &Args,
30 const llvm::Triple &Triple, llvm::opt::Arg *&A);
31
32std::optional<std::string>
33getAArch64TargetTuneCPU(const llvm::opt::ArgList &Args,
34 const llvm::Triple &Triple);
35
36bool isAArch64BareMetal(const llvm::Triple &Triple);
37
38} // end namespace aarch64
39} // end namespace target
40} // end namespace driver
41} // end namespace clang
42
43#endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_AARCH64_H
44