|
MLIR 24.0.0git
|
#include "mlir/TableGen/EnumInfo.h"
Public Types | |
| enum class | BitEnumSeparatorKind { VerticalBar , Comma , Space } |
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 |
| bool | isNewStyleBitEnum () const |
| bool | hasParserPrinter () const |
| StringRef | getEnumClassName () const |
| StringRef | getCppNamespace () const |
| std::string | getQualifiedName () 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 |
| StringRef | getBitEnumSeparator () const |
| BitEnumSeparatorKind | getBitEnumSeparatorKind () const |
| StringRef | getBitEnumSeparatorParser () const |
| const llvm::Record & | getDef () const |
Protected Attributes | |
| const llvm::Record * | def |
Definition at line 54 of file EnumInfo.h.
|
strong |
| Enumerator | |
|---|---|
| VerticalBar | |
| Comma | |
| Space | |
Definition at line 142 of file EnumInfo.h.
|
explicit |
|
explicit |
|
explicit |
| std::optional< Attribute > EnumInfo::asEnumAttr | ( | ) | const |
Definition at line 53 of file EnumInfo.cpp.
References def, and isEnumAttr().
Referenced by hasParserPrinter().
| bool EnumInfo::genSpecializedAttr | ( | ) | const |
Definition at line 130 of file EnumInfo.cpp.
References def, and isSubClassOf().
| std::vector< EnumCase > EnumInfo::getAllCases | ( | ) | const |
Definition at line 117 of file EnumInfo.cpp.
References def.
| const Record * EnumInfo::getBaseAttrClass | ( | ) | const |
Definition at line 135 of file EnumInfo.cpp.
References def.
| StringRef EnumInfo::getBitEnumSeparator | ( | ) | const |
Definition at line 151 of file EnumInfo.cpp.
References def.
Referenced by getBitEnumSeparatorKind().
| EnumInfo::BitEnumSeparatorKind EnumInfo::getBitEnumSeparatorKind | ( | ) | const |
Definition at line 155 of file EnumInfo.cpp.
References Comma, def, getBitEnumSeparator(), Space, and VerticalBar.
Referenced by getBitEnumSeparatorParser().
| StringRef EnumInfo::getBitEnumSeparatorParser | ( | ) | const |
Definition at line 167 of file EnumInfo.cpp.
References Comma, def, getBitEnumSeparatorKind(), Space, and VerticalBar.
| int64_t EnumInfo::getBitwidth | ( | ) | const |
Definition at line 91 of file EnumInfo.cpp.
References def.
| StringRef EnumInfo::getCppNamespace | ( | ) | const |
| const Record & EnumInfo::getDef | ( | ) | const |
Definition at line 182 of file EnumInfo.cpp.
References def.
| StringRef EnumInfo::getDescription | ( | ) | const |
Definition at line 79 of file EnumInfo.cpp.
References def.
| StringRef EnumInfo::getEnumClassName | ( | ) | const |
| StringRef EnumInfo::getMaxEnumValFnName | ( | ) | const |
Definition at line 113 of file EnumInfo.cpp.
References def.
| std::string EnumInfo::getQualifiedName | ( | ) | const |
Definition at line 87 of file EnumInfo.cpp.
References getCppNamespace(), and getEnumClassName().
| StringRef EnumInfo::getSpecializedAttrClassName | ( | ) | const |
Definition at line 139 of file EnumInfo.cpp.
References def.
| StringRef EnumInfo::getStringToSymbolFnName | ( | ) | const |
Definition at line 101 of file EnumInfo.cpp.
References def.
| StringRef EnumInfo::getSummary | ( | ) | const |
Definition at line 75 of file EnumInfo.cpp.
References def.
| StringRef EnumInfo::getSymbolToStringFnName | ( | ) | const |
Definition at line 105 of file EnumInfo.cpp.
References def.
| StringRef EnumInfo::getSymbolToStringFnRetType | ( | ) | const |
Definition at line 109 of file EnumInfo.cpp.
References def.
| StringRef EnumInfo::getUnderlyingToSymbolFnName | ( | ) | const |
Definition at line 97 of file EnumInfo.cpp.
References def.
| StringRef EnumInfo::getUnderlyingType | ( | ) | const |
| bool EnumInfo::hasParserPrinter | ( | ) | const |
Definition at line 65 of file EnumInfo.cpp.
References asEnumAttr(), and getUnderlyingType().
| bool EnumInfo::isBitEnum | ( | ) | const |
Definition at line 59 of file EnumInfo.cpp.
References isSubClassOf().
Referenced by isNewStyleBitEnum().
| bool EnumInfo::isEnumAttr | ( | ) | const |
| bool EnumInfo::isNewStyleBitEnum | ( | ) | const |
Definition at line 61 of file EnumInfo.cpp.
References isBitEnum(), and printBitEnumQuoted().
| bool EnumInfo::isSubClassOf | ( | StringRef | className | ) | const |
Definition at line 47 of file EnumInfo.cpp.
References def.
Referenced by genSpecializedAttr(), isBitEnum(), and isEnumAttr().
| bool EnumInfo::printBitEnumPrimaryGroups | ( | ) | const |
Definition at line 143 of file EnumInfo.cpp.
References def.
| bool EnumInfo::printBitEnumQuoted | ( | ) | const |
|
protected |
Definition at line 155 of file EnumInfo.h.
Referenced by asEnumAttr(), genSpecializedAttr(), getAllCases(), getBaseAttrClass(), getBitEnumSeparator(), getBitEnumSeparatorKind(), getBitEnumSeparatorParser(), getBitwidth(), getCppNamespace(), getDef(), getDescription(), getEnumClassName(), getMaxEnumValFnName(), getSpecializedAttrClassName(), getStringToSymbolFnName(), getSummary(), getSymbolToStringFnName(), getSymbolToStringFnRetType(), getUnderlyingToSymbolFnName(), getUnderlyingType(), isSubClassOf(), printBitEnumPrimaryGroups(), and printBitEnumQuoted().