|
MLIR 24.0.0git
|
#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/MLIRContext.h"#include "mlir/IR/OpImplementation.h"#include "llvm/ADT/ArrayRef.h"#include "llvm/ADT/CachedHashString.h"#include "llvm/ADT/MapVector.h"#include "llvm/ADT/ScopeExit.h"#include "llvm/ADT/SmallVector.h"#include "llvm/Support/Debug.h"#include "llvm/Support/DebugLog.h"#include "llvm/Support/Endian.h"#include "llvm/Support/MathExtras.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. | |
| static bool | preservesLegacyProperties (Operation *op, DictionaryAttr attrs) |
| Check legacy property reconstruction using scratch storage. | |
| #define DEBUG_TYPE "mlir-bytecode-writer" |
Definition at line 30 of file BytecodeWriter.cpp.
Check legacy property reconstruction using scratch storage.
Only inherent attributes may restore properties; discardable attributes with native property names must remain discardable.
Definition at line 1010 of file BytecodeWriter.cpp.
References mlir::NamedAttrList::append(), mlir::OperationName::compareOpProperties(), mlir::OperationName::destroyOpProperties(), mlir::NamedAttrList::empty(), mlir::Operation::getContext(), mlir::NamedAttrList::getDictionary(), mlir::OperationName::getInherentAttr(), mlir::Operation::getName(), mlir::OperationName::getOpPropertiesTypeID(), mlir::Operation::getPropertiesStorage(), mlir::Operation::getPropertiesStorageSize(), mlir::OperationName::initOpProperties(), mlir::OperationName::isRegistered(), mlir::OperationName::populateDefaultAttrs(), and mlir::OperationName::setOpPropertiesFromAttribute().
|
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 800 of file BytecodeWriter.cpp.
References mlir::bytecode::detail::DialectNumbering::number.