14 #ifndef MLIR_TABLEGEN_PROPERTY_H_
15 #define MLIR_TABLEGEN_PROPERTY_H_
19 #include "llvm/ADT/StringRef.h"
38 Property(StringRef storageType, StringRef interfaceType,
39 StringRef convertFromStorageCall, StringRef assignToStorageCall,
40 StringRef convertToAttributeCall, StringRef convertFromAttributeCall,
41 StringRef readFromMlirBytecodeCall,
42 StringRef writeToMlirBytecodeCall, StringRef hashPropertyCall,
43 StringRef defaultValue);
66 return convertFromAttributeCall;
72 return readFromMlirBytecodeCall;
78 return writeToMlirBytecodeCall;
91 const llvm::Record &
getDef()
const {
return *def; }
95 const llvm::Record *def;
98 StringRef storageType;
99 StringRef interfaceType;
100 StringRef convertFromStorageCall;
101 StringRef assignToStorageCall;
102 StringRef convertToAttributeCall;
103 StringRef convertFromAttributeCall;
104 StringRef readFromMlirBytecodeCall;
105 StringRef writeToMlirBytecodeCall;
106 StringRef hashPropertyCall;
107 StringRef defaultValue;
StringRef getStorageType() const
StringRef getConvertFromStorageCall() const
StringRef getReadFromMlirBytecodeCall() 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
StringRef getConvertFromAttributeCall() const
StringRef getDefaultValue() const
StringRef getInterfaceType() const
Property(const llvm::DefInit *init)
Include the generated interface declarations.
@ Type
An inlay hint that for a type annotation.
Include the generated interface declarations.