14 #ifndef MLIR_TABLEGEN_PROPERTY_H_
15 #define MLIR_TABLEGEN_PROPERTY_H_
19 #include "llvm/ADT/StringRef.h"
38 Property(StringRef summary, StringRef description, StringRef storageType,
39 StringRef interfaceType, StringRef convertFromStorageCall,
40 StringRef assignToStorageCall, StringRef convertToAttributeCall,
41 StringRef convertFromAttributeCall, StringRef parserCall,
42 StringRef optionalParserCall, StringRef printerCall,
43 StringRef readFromMlirBytecodeCall,
44 StringRef writeToMlirBytecodeCall, StringRef hashPropertyCall,
45 StringRef defaultValue, StringRef storageTypeValueOverride);
74 return convertFromAttributeCall;
93 return readFromMlirBytecodeCall;
99 return writeToMlirBytecodeCall;
114 return !storageTypeValueOverride.empty();
118 return storageTypeValueOverride;
130 const llvm::Record &
getDef()
const {
return *def; }
134 const llvm::Record *def;
138 StringRef description;
139 StringRef storageType;
140 StringRef interfaceType;
141 StringRef convertFromStorageCall;
142 StringRef assignToStorageCall;
143 StringRef convertToAttributeCall;
144 StringRef convertFromAttributeCall;
145 StringRef parserCall;
146 StringRef optionalParserCall;
147 StringRef printerCall;
148 StringRef readFromMlirBytecodeCall;
149 StringRef writeToMlirBytecodeCall;
150 StringRef hashPropertyCall;
151 StringRef defaultValue;
152 StringRef storageTypeValueOverride;
StringRef getPropertyDefName() 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 *record)
const llvm::Record & getDef() const
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.