LLVM  14.0.0git
Macros
CommandFlags.cpp File Reference
#include "llvm/CodeGen/CommandFlags.h"
#include "llvm/IR/Module.h"
#include "llvm/MC/SubtargetFeature.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Host.h"
#include "llvm/Support/MemoryBuffer.h"
Include dependency graph for CommandFlags.cpp:

Go to the source code of this file.

Macros

#define CGOPT(TY, NAME)
 
#define CGLIST(TY, NAME)
 
#define CGOPT_EXP(TY, NAME)
 
#define CGBINDOPT(NAME)
 
#define HANDLE_BOOL_ATTR(CL, AttrName)
 

Macro Definition Documentation

◆ CGBINDOPT

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

◆ CGLIST

#define CGLIST (   TY,
  NAME 
)
Value:
static cl::list<TY> *NAME##View; \
std::vector<TY> codegen::get##NAME() { \
assert(NAME##View && "RegisterCodeGenFlags not created."); \
return *NAME##View; \
}

Definition at line 31 of file CommandFlags.cpp.

◆ CGOPT

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

Definition at line 24 of file CommandFlags.cpp.

◆ CGOPT_EXP

#define CGOPT_EXP (   TY,
  NAME 
)
Value:
CGOPT(TY, NAME) \
Optional<TY> codegen::getExplicit##NAME() { \
if (NAME##View->getNumOccurrences()) { \
TY res = *NAME##View; \
return res; \
} \
return None; \
}

Definition at line 38 of file CommandFlags.cpp.

◆ HANDLE_BOOL_ATTR

#define HANDLE_BOOL_ATTR (   CL,
  AttrName 
)
Value:
do { \
if (CL->getNumOccurrences() > 0 && !F.hasFnAttribute(AttrName)) \
renderBoolStringAttr(NewAttrs, AttrName, *CL); \
} while (0)

Definition at line 611 of file CommandFlags.cpp.

F
#define F(x, y, z)
Definition: MD5.cpp:56
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
CGOPT
#define CGOPT(TY, NAME)
Definition: CommandFlags.cpp:24
llvm::cl::list
Definition: CommandLine.h:1640