LLVM
24.0.0git
lib
Target
X86
MCTargetDesc
X86MCOptions.h
Go to the documentation of this file.
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>
(
Options
.LibraryOptions);
27
}
28
}
// namespace llvm::X86_MC
29
30
#endif
// LLVM_LIB_TARGET_X86_MCTARGETDESC_X86MCOPTIONS_H
Options
static LVOptions Options
Definition
LVOptions.cpp:25
MCTargetOptions.h
llvm::MCTargetOptions
Definition
MCTargetOptions.h:42
llvm::cl::LibraryOptionsContext::get
const T & get() const
Definition
LibraryOptionsContext.h:45
llvm::X86_MC
Definition
X86MCOptions.h:24
llvm::X86_MC::getCLOpts
const X86MCOptions & getCLOpts(const MCTargetOptions &Options)
Definition
X86MCOptions.h:25
llvm::X86
Define some predicates that are used for node matching.
Definition
X86TargetParser.h:25
llvm::X86::AsmWriterFlavorTy
AsmWriterFlavorTy
Definition
X86MCOptions.h:18
llvm::X86::Intel
@ Intel
Definition
X86MCOptions.h:18
llvm::X86::ATT
@ ATT
Definition
X86MCOptions.h:18
Generated on
for LLVM by
1.14.0