LLVM  14.0.0git
Macros
MCTargetOptionsCommandFlags.cpp File Reference
#include "llvm/MC/MCTargetOptionsCommandFlags.h"
#include "llvm/MC/MCTargetOptions.h"
#include "llvm/Support/CommandLine.h"
Include dependency graph for MCTargetOptionsCommandFlags.cpp:

Go to the source code of this file.

Macros

#define MCOPT(TY, NAME)
 
#define MCOPT_EXP(TY, NAME)
 
#define MCBINDOPT(NAME)
 

Macro Definition Documentation

◆ MCBINDOPT

#define MCBINDOPT (   NAME)
Value:
do { \
NAME##View = std::addressof(NAME); \
} while (0)

◆ MCOPT

#define MCOPT (   TY,
  NAME 
)
Value:
static cl::opt<TY> *NAME##View; \
TY llvm::mc::get##NAME() { \
assert(NAME##View && "RegisterMCTargetOptionsFlags not created."); \
return *NAME##View; \
}

Definition at line 21 of file MCTargetOptionsCommandFlags.cpp.

◆ MCOPT_EXP

#define MCOPT_EXP (   TY,
  NAME 
)
Value:
MCOPT(TY, NAME) \
Optional<TY> llvm::mc::getExplicit##NAME() { \
if (NAME##View->getNumOccurrences()) { \
TY res = *NAME##View; \
return res; \
} \
return None; \
}

Definition at line 28 of file MCTargetOptionsCommandFlags.cpp.

MCOPT
#define MCOPT(TY, NAME)
Definition: MCTargetOptionsCommandFlags.cpp:21
llvm::None
const NoneType None
Definition: None.h:23
llvm::cl::opt
Definition: CommandLine.h:1432
get
Should compile to something r4 addze r3 instead we get
Definition: README.txt:24