MLIR 22.0.0git
mlir::BytecodeWriterConfig::Impl Struct Reference

Public Member Functions

 Impl (StringRef producer)

Public Attributes

int64_t bytecodeVersion = bytecode::kVersion
 Version to use when writing.
bool shouldElideResourceData = false
 A flag specifying whether to elide emission of resources into the bytecode file.
llvm::StringMap< std::unique_ptr< DialectVersion > > dialectVersionMap
 A map containing dialect version information for each dialect to emit.
StringRef producer
 The producer of the bytecode.
llvm::SmallVector< std::unique_ptr< AttrTypeBytecodeWriter< Attribute > > > attributeWriterCallbacks
 Printer callbacks used to emit custom type and attribute encodings.
llvm::SmallVector< std::unique_ptr< AttrTypeBytecodeWriter< Type > > > typeWriterCallbacks
SmallVector< std::unique_ptr< AsmResourcePrinter > > externalResourcePrinters
 A collection of non-dialect resource printers.

Detailed Description

Definition at line 36 of file BytecodeWriter.cpp.

Constructor & Destructor Documentation

◆ Impl()

mlir::BytecodeWriterConfig::Impl::Impl ( StringRef producer)
inline

Definition at line 37 of file BytecodeWriter.cpp.

References producer.

Member Data Documentation

◆ attributeWriterCallbacks

llvm::SmallVector<std::unique_ptr<AttrTypeBytecodeWriter<Attribute> > > mlir::BytecodeWriterConfig::Impl::attributeWriterCallbacks

Printer callbacks used to emit custom type and attribute encodings.

Definition at line 55 of file BytecodeWriter.cpp.

◆ bytecodeVersion

int64_t mlir::BytecodeWriterConfig::Impl::bytecodeVersion = bytecode::kVersion

Version to use when writing.

Note: This only differs from kVersion if a specific version is set.

Definition at line 41 of file BytecodeWriter.cpp.

◆ dialectVersionMap

llvm::StringMap<std::unique_ptr<DialectVersion> > mlir::BytecodeWriterConfig::Impl::dialectVersionMap

A map containing dialect version information for each dialect to emit.

Definition at line 48 of file BytecodeWriter.cpp.

◆ externalResourcePrinters

SmallVector<std::unique_ptr<AsmResourcePrinter> > mlir::BytecodeWriterConfig::Impl::externalResourcePrinters

A collection of non-dialect resource printers.

Definition at line 60 of file BytecodeWriter.cpp.

◆ producer

StringRef mlir::BytecodeWriterConfig::Impl::producer

The producer of the bytecode.

Definition at line 51 of file BytecodeWriter.cpp.

Referenced by Impl().

◆ shouldElideResourceData

bool mlir::BytecodeWriterConfig::Impl::shouldElideResourceData = false

A flag specifying whether to elide emission of resources into the bytecode file.

Definition at line 45 of file BytecodeWriter.cpp.

◆ typeWriterCallbacks

llvm::SmallVector<std::unique_ptr<AttrTypeBytecodeWriter<Type> > > mlir::BytecodeWriterConfig::Impl::typeWriterCallbacks

Definition at line 57 of file BytecodeWriter.cpp.


The documentation for this struct was generated from the following file: