Skip to main content

Crate wasmsh_ir

Crate wasmsh_ir 

Source
Expand description

Linear instruction representation for the wasmsh VM subset.

wasmsh-runtime still executes the full shell by interpreting HIR directly. This crate currently models only the supported subset that can be lowered into wasmsh-vm: scalar assignments, builtin command execution, selected redirections, and top-level && / || short-circuiting.

Structs§

IrProgram
A compiled program: a sequence of IR instructions.
IrRedirection
Redirection plan attached to an IR builtin command.

Enums§

Ir
A single IR instruction for the VM.
LoweringError
Explicit reason why HIR cannot be lowered into the current VM subset.

Functions§

lower_supported_and_or