|
MLIR 22.0.0git
|
A class containing bytecode-specific configurations of the ParserConfig. More...
#include "mlir/Bytecode/BytecodeReaderConfig.h"
Public Member Functions | |
| BytecodeReaderConfig ()=default | |
| ArrayRef< std::unique_ptr< AttrTypeBytecodeReader< Attribute > > > | getAttributeCallbacks () const |
| Returns the callbacks available to the parser. | |
| ArrayRef< std::unique_ptr< AttrTypeBytecodeReader< Type > > > | getTypeCallbacks () const |
| void | attachAttributeCallback (std::unique_ptr< AttrTypeBytecodeReader< Attribute > > parser) |
| Attach a custom bytecode parser callback to the configuration for parsing of custom type/attributes encodings. | |
| void | attachTypeCallback (std::unique_ptr< AttrTypeBytecodeReader< Type > > parser) |
| template<typename CallableT> | |
| std::enable_if_t< std::is_convertible_v< CallableT, std::function< LogicalResult(DialectBytecodeReader &, StringRef, Attribute &)> > > | attachAttributeCallback (CallableT &&parserFn) |
| Attach a custom bytecode parser callback to the configuration for parsing of custom type/attributes encodings. | |
| template<typename CallableT> | |
| std::enable_if_t< std::is_convertible_v< CallableT, std::function< LogicalResult(DialectBytecodeReader &, StringRef, Type &)> > > | attachTypeCallback (CallableT &&parserFn) |
A class containing bytecode-specific configurations of the ParserConfig.
Definition at line 66 of file BytecodeReaderConfig.h.
|
default |
|
inline |
Attach a custom bytecode parser callback to the configuration for parsing of custom type/attributes encodings.
Definition at line 97 of file BytecodeReaderConfig.h.
References attachAttributeCallback(), and mlir::AttrTypeBytecodeReader< T >::fromCallable().
|
inline |
Attach a custom bytecode parser callback to the configuration for parsing of custom type/attributes encodings.
Definition at line 82 of file BytecodeReaderConfig.h.
Referenced by attachAttributeCallback().
|
inline |
Definition at line 105 of file BytecodeReaderConfig.h.
References attachTypeCallback(), and mlir::AttrTypeBytecodeReader< T >::fromCallable().
|
inline |
Definition at line 87 of file BytecodeReaderConfig.h.
Referenced by attachTypeCallback().
|
inline |
Returns the callbacks available to the parser.
Definition at line 72 of file BytecodeReaderConfig.h.
|
inline |
Definition at line 76 of file BytecodeReaderConfig.h.