static Attribute readAttribute(MLIRContext* context, DialectBytecodeReader &reader) { … } static LogicalResult writeAttribute(Attribute attribute, DialectBytecodeWriter &writer) { … } static Type readType(MLIRContext* context, DialectBytecodeReader &reader) { … } static LogicalResult writeType(Type type, DialectBytecodeWriter &writer) { … }