MLIR  16.0.0git
Classes | Macros | Functions
BytecodeWriter.cpp File Reference
#include "mlir/Bytecode/BytecodeWriter.h"
#include "../Encoding.h"
#include "IRNumbering.h"
#include "mlir/Bytecode/BytecodeImplementation.h"
#include "mlir/IR/BuiltinDialect.h"
#include "mlir/IR/OpImplementation.h"
#include "llvm/ADT/CachedHashString.h"
#include "llvm/ADT/MapVector.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/Support/Debug.h"
#include <random>
+ Include dependency graph for BytecodeWriter.cpp:

Go to the source code of this file.

Classes

struct  mlir::BytecodeWriterConfig::Impl
 

Macros

#define DEBUG_TYPE   "mlir-bytecode-writer"
 

Functions

template<typename EntriesT , typename EntryCallbackT >
static void writeDialectGrouping (EncodingEmitter &emitter, EntriesT &&entries, EntryCallbackT &&callback)
 Write the given entries in contiguous groups with the same parent dialect. More...
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "mlir-bytecode-writer"

Definition at line 21 of file BytecodeWriter.cpp.

Function Documentation

◆ writeDialectGrouping()

template<typename EntriesT , typename EntryCallbackT >
static void writeDialectGrouping ( EncodingEmitter &  emitter,
EntriesT &&  entries,
EntryCallbackT &&  callback 
)
static

Write the given entries in contiguous groups with the same parent dialect.

Each dialect sub-group is encoded with the parent dialect and number of elements, followed by the encoding for the entries. The given callback is invoked to encode each individual entry.

Definition at line 440 of file BytecodeWriter.cpp.

References mlir::bytecode::detail::DialectNumbering::number.