1//===----------------------------------------------------------------------===//
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_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64MCOPTIONS_H
10#define LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64MCOPTIONS_H
11
12#include "llvm/MC/MCTargetOptions.h"
13#include <optional>
14
15namespace llvm::AArch64 {
16enum AsmWriterVariantTy { Generic = 0, Apple = 1 };
17} // namespace llvm::AArch64
18
19#define OPTIONS_STRUCT_DECL
20#include "AArch64MCOptions.inc"
21
22namespace llvm::AArch64_MC {
23inline const AArch64MCOptions &getCLOpts(const MCTargetOptions &Options) {
24 return cl::LibraryOptionsContext::get<AArch64MCOptions>(
25 C: Options.LibraryOptions);
26}
27} // namespace llvm::AArch64_MC
28
29#endif // LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64MCOPTIONS_H
30