MLIR
21.0.0git
|
#include "mlir/TableGen/EnumInfo.h"
Public Member Functions | |
EnumInfo (const llvm::Record *record) | |
EnumInfo (const llvm::Record &record) | |
EnumInfo (const llvm::DefInit *init) | |
bool | isSubClassOf (StringRef className) const |
bool | isEnumAttr () const |
std::optional< Attribute > | asEnumAttr () const |
bool | isBitEnum () const |
StringRef | getEnumClassName () const |
StringRef | getCppNamespace () const |
StringRef | getSummary () const |
StringRef | getDescription () const |
int64_t | getBitwidth () const |
StringRef | getUnderlyingType () const |
StringRef | getUnderlyingToSymbolFnName () const |
StringRef | getStringToSymbolFnName () const |
StringRef | getSymbolToStringFnName () const |
StringRef | getSymbolToStringFnRetType () const |
StringRef | getMaxEnumValFnName () const |
std::vector< EnumCase > | getAllCases () const |
bool | genSpecializedAttr () const |
const llvm::Record * | getBaseAttrClass () const |
StringRef | getSpecializedAttrClassName () const |
bool | printBitEnumPrimaryGroups () const |
bool | printBitEnumQuoted () const |
const llvm::Record & | getDef () const |
Protected Attributes | |
const llvm::Record * | def |
Definition at line 54 of file EnumInfo.h.
|
explicit |
|
explicit |
|
explicit |
std::optional< Attribute > EnumInfo::asEnumAttr | ( | ) | const |
Definition at line 52 of file EnumInfo.cpp.
References def, and isEnumAttr().
bool EnumInfo::genSpecializedAttr | ( | ) | const |
Definition at line 115 of file EnumInfo.cpp.
References def, and isSubClassOf().
std::vector< EnumCase > EnumInfo::getAllCases | ( | ) | const |
Definition at line 102 of file EnumInfo.cpp.
References def.
const Record * EnumInfo::getBaseAttrClass | ( | ) | const |
Definition at line 120 of file EnumInfo.cpp.
References def.
int64_t EnumInfo::getBitwidth | ( | ) | const |
Definition at line 76 of file EnumInfo.cpp.
References def.
StringRef EnumInfo::getCppNamespace | ( | ) | const |
Definition at line 72 of file EnumInfo.cpp.
References def.
const Record & EnumInfo::getDef | ( | ) | const |
Definition at line 136 of file EnumInfo.cpp.
References def.
StringRef EnumInfo::getDescription | ( | ) | const |
Definition at line 68 of file EnumInfo.cpp.
References def.
StringRef EnumInfo::getEnumClassName | ( | ) | const |
Definition at line 60 of file EnumInfo.cpp.
References def.
StringRef EnumInfo::getMaxEnumValFnName | ( | ) | const |
Definition at line 98 of file EnumInfo.cpp.
References def.
StringRef EnumInfo::getSpecializedAttrClassName | ( | ) | const |
Definition at line 124 of file EnumInfo.cpp.
References def.
StringRef EnumInfo::getStringToSymbolFnName | ( | ) | const |
Definition at line 86 of file EnumInfo.cpp.
References def.
StringRef EnumInfo::getSummary | ( | ) | const |
Definition at line 64 of file EnumInfo.cpp.
References def.
StringRef EnumInfo::getSymbolToStringFnName | ( | ) | const |
Definition at line 90 of file EnumInfo.cpp.
References def.
StringRef EnumInfo::getSymbolToStringFnRetType | ( | ) | const |
Definition at line 94 of file EnumInfo.cpp.
References def.
StringRef EnumInfo::getUnderlyingToSymbolFnName | ( | ) | const |
Definition at line 82 of file EnumInfo.cpp.
References def.
StringRef EnumInfo::getUnderlyingType | ( | ) | const |
Definition at line 78 of file EnumInfo.cpp.
References def.
bool EnumInfo::isBitEnum | ( | ) | const |
Definition at line 58 of file EnumInfo.cpp.
References isSubClassOf().
bool EnumInfo::isEnumAttr | ( | ) | const |
bool EnumInfo::isSubClassOf | ( | StringRef | className | ) | const |
Definition at line 46 of file EnumInfo.cpp.
References def.
Referenced by genSpecializedAttr(), isBitEnum(), and isEnumAttr().
bool EnumInfo::printBitEnumPrimaryGroups | ( | ) | const |
Definition at line 128 of file EnumInfo.cpp.
References def.
bool EnumInfo::printBitEnumQuoted | ( | ) | const |
Definition at line 132 of file EnumInfo.cpp.
References def.
|
protected |
Definition at line 132 of file EnumInfo.h.
Referenced by asEnumAttr(), genSpecializedAttr(), getAllCases(), getBaseAttrClass(), getBitwidth(), getCppNamespace(), getDef(), getDescription(), getEnumClassName(), getMaxEnumValFnName(), getSpecializedAttrClassName(), getStringToSymbolFnName(), getSummary(), getSymbolToStringFnName(), getSymbolToStringFnRetType(), getUnderlyingToSymbolFnName(), getUnderlyingType(), isSubClassOf(), printBitEnumPrimaryGroups(), and printBitEnumQuoted().