14 #ifndef MLIR_TABLEGEN_PROPERTY_H_
15 #define MLIR_TABLEGEN_PROPERTY_H_
19 #include "llvm/ADT/StringRef.h"
39 Property(StringRef summary, StringRef description, StringRef storageType,
40 StringRef interfaceType, StringRef convertFromStorageCall,
41 StringRef assignToStorageCall, StringRef convertToAttributeCall,
42 StringRef convertFromAttributeCall, StringRef parserCall,
43 StringRef optionalParserCall, StringRef printerCall,
44 StringRef readFromMlirBytecodeCall,
45 StringRef writeToMlirBytecodeCall, StringRef hashPropertyCall,
46 StringRef defaultValue, StringRef storageTypeValueOverride);
75 return convertFromAttributeCall;
98 return readFromMlirBytecodeCall;
104 return writeToMlirBytecodeCall;
119 return !storageTypeValueOverride.empty();
123 return storageTypeValueOverride;
135 const llvm::Record &
getDef()
const {
return *def; }
139 const llvm::Record *def;
143 StringRef description;
144 StringRef storageType;
145 StringRef interfaceType;
146 StringRef convertFromStorageCall;
147 StringRef assignToStorageCall;
148 StringRef convertToAttributeCall;
149 StringRef convertFromAttributeCall;
150 StringRef parserCall;
151 StringRef optionalParserCall;
152 StringRef printerCall;
153 StringRef readFromMlirBytecodeCall;
154 StringRef writeToMlirBytecodeCall;
155 StringRef hashPropertyCall;
156 StringRef defaultValue;
157 StringRef storageTypeValueOverride;
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 *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.