Expand description

Cranelift IR interpreter.

This module is a project for interpreting Cranelift IR.

Modules

Virtual Addressing Scheme for the Interpreter

Implements the function environment (e.g. a name-to-function mapping) for interpretation.

Implements a call frame (activation record) for the Cranelift interpreter.

The InstructionContext trait describes a Cranelift instruction; a default implementation is provided with DfgInstructionContext

Cranelift IR interpreter.

Cranelift instructions modify the state of the machine; the State trait describes these ways this can happen.

The step function interprets a single Cranelift instruction given its State and InstructionContext; the interpretation is generic over Values.

The Value trait describes what operations can be performed on interpreter values. The interpreter usually executes using DataValues so an implementation is provided here. The fact that Value is a trait, however, allows interpretation of Cranelift IR on other kinds of values.