LLVM 22.0.0git
CommandFlags.cpp File Reference

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)

Referenced by llvm::codegen::RegisterCodeGenFlags::RegisterCodeGenFlags().

◆ 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 39 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 32 of file CommandFlags.cpp.

◆ CGOPT_EXP

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

Definition at line 47 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)
#define F(x, y, z)
Definition MD5.cpp:55

Definition at line 663 of file CommandFlags.cpp.

Referenced by llvm::codegen::setFunctionAttributes().