MLIR  19.0.0git
Classes | Namespaces | Functions
BytecodeReader.h File Reference
#include "mlir/IR/AsmState.h"
#include "mlir/Support/LLVM.h"
#include "mlir/Support/LogicalResult.h"
#include <functional>
#include <memory>

Go to the source code of this file.

Classes

class  mlir::BytecodeReader
 The BytecodeReader allows to load MLIR bytecode files, while keeping the state explicitly available in order to support lazy loading. More...
 

Namespaces

 llvm
 Include the generated interface declarations.
 
 mlir
 Include the generated interface declarations.
 

Functions

bool mlir::isBytecode (llvm::MemoryBufferRef buffer)
 Returns true if the given buffer starts with the magic bytes that signal MLIR bytecode. More...
 
LogicalResult mlir::readBytecodeFile (llvm::MemoryBufferRef buffer, Block *block, const ParserConfig &config)
 Read the operations defined within the given memory buffer, containing MLIR bytecode, into the provided block. More...
 
LogicalResult mlir::readBytecodeFile (const std::shared_ptr< llvm::SourceMgr > &sourceMgr, Block *block, const ParserConfig &config)
 An overload with a source manager whose main file buffer is used for parsing. More...