14 #ifndef MLIR_TABLEGEN_PROPERTY_H_
15 #define MLIR_TABLEGEN_PROPERTY_H_
19 #include "llvm/ADT/StringRef.h"
50 Property(
const llvm::Record *maybeDef, StringRef summary,
51 StringRef description, StringRef storageType,
52 StringRef interfaceType, StringRef convertFromStorageCall,
53 StringRef assignToStorageCall, StringRef convertToAttributeCall,
54 StringRef convertFromAttributeCall, StringRef parserCall,
55 StringRef optionalParserCall, StringRef printerCall,
56 StringRef readFromMlirBytecodeCall,
57 StringRef writeToMlirBytecodeCall, StringRef hashPropertyCall,
58 StringRef defaultValue, StringRef storageTypeValueOverride);
87 return convertFromAttributeCall;
110 return readFromMlirBytecodeCall;
116 return writeToMlirBytecodeCall;
131 return !storageTypeValueOverride.empty();
135 return storageTypeValueOverride;
153 StringRef description;
154 StringRef storageType;
155 StringRef interfaceType;
156 StringRef convertFromStorageCall;
157 StringRef assignToStorageCall;
158 StringRef convertToAttributeCall;
159 StringRef convertFromAttributeCall;
160 StringRef parserCall;
161 StringRef optionalParserCall;
162 StringRef printerCall;
163 StringRef readFromMlirBytecodeCall;
164 StringRef writeToMlirBytecodeCall;
165 StringRef hashPropertyCall;
166 StringRef defaultValue;
167 StringRef storageTypeValueOverride;
ConstantProp(const llvm::DefInit *def)
static bool classof(Property *p)
StringRef getValue() const
Constraint(const llvm::Record *record, Kind kind)
static bool classof(const Constraint *c)
StringRef getInterfaceType() const
StringRef getPropertyDefName() const
Pred getPredicate() const
StringRef getStorageType() const
StringRef getConvertFromStorageCall() const
StringRef getReadFromMlirBytecodeCall() const
StringRef getPrinterCall() const
bool isSubClassOf(StringRef className) const
bool hasOptionalParser() const
StringRef getDescription() const
StringRef getAssignToStorageCall() const
Property(const llvm::Record *def)
StringRef getHashPropertyCall() const
StringRef getConvertToAttributeCall() const
bool hasDefaultValue() const
StringRef getWriteToMlirBytecodeCall() const
bool hasStorageTypeValueOverride() const
Property getBaseProperty() const
StringRef getConvertFromAttributeCall() const
StringRef getSummary() const
StringRef getStorageTypeValueOverride() const
StringRef getDefaultValue() const
StringRef getParserCall() const
StringRef getInterfaceType() const
Property(const llvm::DefInit *init)
StringRef getOptionalParserCall() const
The OpAsmOpInterface, see OpAsmInterface.td for more details.
@ Type
An inlay hint that for a type annotation.
Include the generated interface declarations.