LLVM: lib/CodeGen/CommandFlags.cpp File Reference (original) (raw)
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) |
◆ CGBINDOPT
| #define CGBINDOPT | ( | NAME | ) |
|---|
◆ CGLIST
| #define CGLIST | ( | TY, |
|---|---|---|
| NAME ) |
Value:
std::vector codegen::get##NAME() { \
assert(NAME##View && "Flag not registered."); \
return *NAME##View; \
}
Definition at line 49 of file CommandFlags.cpp.
◆ CGOPT
| #define CGOPT | ( | TY, |
|---|---|---|
| NAME ) |
Value:
TY codegen::get##NAME() { \
assert(NAME##View && "Flag not registered."); \
return *NAME##View; \
}
Definition at line 42 of file CommandFlags.cpp.
◆ CGOPT_EXP
| #define CGOPT_EXP | ( | TY, |
|---|---|---|
| NAME ) |
Value:
CGOPT(TY, NAME) \
std::optional codegen::getExplicit##NAME() { \
if (NAME##View->getNumOccurrences()) { \
TY res = *NAME##View; \
return res; \
} \
return std::nullopt; \
}
Definition at line 57 of file CommandFlags.cpp.
◆ HANDLE_BOOL_ATTR
| #define HANDLE_BOOL_ATTR | ( | CL, |
|---|---|---|
| AttrName ) |