MLIR  20.0.0git
Classes | Macros | Functions
BytecodeWriter.cpp File Reference
#include "mlir/Bytecode/BytecodeWriter.h"
#include "IRNumbering.h"
#include "mlir/Bytecode/BytecodeImplementation.h"
#include "mlir/Bytecode/BytecodeOpInterface.h"
#include "mlir/Bytecode/Encoding.h"
#include "mlir/IR/Attributes.h"
#include "mlir/IR/Diagnostics.h"
#include "mlir/IR/OpImplementation.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/CachedHashString.h"
#include "llvm/ADT/MapVector.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/raw_ostream.h"
#include <optional>

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 26 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 775 of file BytecodeWriter.cpp.

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