| 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_X86_MCTARGETDESC_X86MCOPTIONS_H |
| 10 | #define LLVM_LIB_TARGET_X86_MCTARGETDESC_X86MCOPTIONS_H |
| 11 | |
| 12 | #include "llvm/MC/MCTargetOptions.h" |
| 13 | #include <optional> |
| 14 | |
| 15 | namespace llvm::X86 { |
| 16 | // The numbering matches the GCC assembler dialects, which inline asm |
| 17 | // alternatives index. |
| 18 | enum AsmWriterFlavorTy { ATT = 0, Intel = 1 }; |
| 19 | } // namespace llvm::X86 |
| 20 | |
| 21 | #define OPTIONS_STRUCT_DECL |
| 22 | #include "X86MCOptions.inc" |
| 23 | |
| 24 | namespace llvm::X86_MC { |
| 25 | inline const X86MCOptions &getCLOpts(const MCTargetOptions &Options) { |
| 26 | return cl::LibraryOptionsContext::get<X86MCOptions>(C: Options.LibraryOptions); |
| 27 | } |
| 28 | } // namespace llvm::X86_MC |
| 29 | |
| 30 | #endif // LLVM_LIB_TARGET_X86_MCTARGETDESC_X86MCOPTIONS_H |
| 31 | |