LLZK 2.0.0
An open-source IR for Zero Knowledge (ZK) circuits
Loading...
Searching...
No Matches
llzk::component::StructDialectBytecodeInterface Struct Reference

Implement version upgrade for StructDialect. More...

Inheritance diagram for llzk::component::StructDialectBytecodeInterface:
[legend]
Collaboration diagram for llzk::component::StructDialectBytecodeInterface:
[legend]

Public Member Functions

LogicalResult upgradeFromVersion (mlir::Operation *rootOp, const LLZKDialectVersion &current, const LLZKDialectVersion &requested) const override
 LLZKDialectBytecodeInterface (mlir::Dialect *dia)
Public Member Functions inherited from llzk::LLZKDialectBytecodeInterface< StructDialect >
 LLZKDialectBytecodeInterface (mlir::Dialect *dia)
void writeVersion (mlir::DialectBytecodeWriter &writer) const override
 Writes the current version of the LLZK-lib to the given writer.
std::unique_ptr< mlir::DialectVersion > readVersion (mlir::DialectBytecodeReader &reader) const override
 Read the version of this dialect from the provided reader and return it as a unique_ptr to a dialect version object (or nullptr on failure).
mlir::LogicalResult upgradeFromVersion (mlir::Operation *rootOp, const mlir::DialectVersion &version) const final
 Hook invoked for each custom dialect after parsing is completed if a version directive was present and included an entry for the current dialect.

Detailed Description

Implement version upgrade for StructDialect.

Definition at line 212 of file Dialect.cpp.

Member Function Documentation

◆ LLZKDialectBytecodeInterface()

llzk::LLZKDialectBytecodeInterface< DialectTy >::LLZKDialectBytecodeInterface ( mlir::Dialect * dia)
inline

Definition at line 42 of file Versioning.h.

◆ upgradeFromVersion()

LogicalResult llzk::component::StructDialectBytecodeInterface::upgradeFromVersion ( mlir::Operation * rootOp,
const LLZKDialectVersion & current,
const LLZKDialectVersion & requested ) const
inlineoverride

Definition at line 215 of file Dialect.cpp.


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