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;
149 StringRef description;
150 StringRef storageType;
151 StringRef interfaceType;
152 StringRef convertFromStorageCall;
153 StringRef assignToStorageCall;
154 StringRef convertToAttributeCall;
155 StringRef convertFromAttributeCall;
156 StringRef parserCall;
157 StringRef optionalParserCall;
158 StringRef printerCall;
159 StringRef readFromMlirBytecodeCall;
160 StringRef writeToMlirBytecodeCall;
161 StringRef hashPropertyCall;
162 StringRef defaultValue;
163 StringRef storageTypeValueOverride;
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 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.