MLIR
20.0.0git
|
A class to interact with the attributes and types parser when parsing MLIR bytecode. More...
#include "mlir/Bytecode/BytecodeReaderConfig.h"
Public Member Functions | |
AttrTypeBytecodeReader ()=default | |
virtual | ~AttrTypeBytecodeReader ()=default |
virtual LogicalResult | read (DialectBytecodeReader &reader, StringRef dialectName, T &entry)=0 |
Static Public Member Functions | |
template<typename CallableT , std::enable_if_t< std::is_convertible_v< CallableT, std::function< LogicalResult(DialectBytecodeReader &, StringRef, T &)>>, bool > = true> | |
static std::unique_ptr< AttrTypeBytecodeReader< T > > | fromCallable (CallableT &&readFn) |
Return an Attribute/Type printer implemented via the given callable, whose form should match that of the parse function above. More... | |
A class to interact with the attributes and types parser when parsing MLIR bytecode.
Definition at line 29 of file BytecodeReaderConfig.h.
|
default |
Referenced by mlir::AttrTypeBytecodeReader< T >::fromCallable().
|
virtualdefault |
|
inlinestatic |
Return an Attribute/Type printer implemented via the given callable, whose form should match that of the parse
function above.
Definition at line 46 of file BytecodeReaderConfig.h.
References mlir::AttrTypeBytecodeReader< T >::AttrTypeBytecodeReader(), and mlir::AttrTypeBytecodeReader< T >::read().
|
pure virtual |
Referenced by mlir::AttrTypeBytecodeReader< T >::fromCallable().