Expand description
The walrus
WebAssembly transformations library.
Re-exports§
pub use crate::ir::Local;
pub use crate::ir::LocalId;
pub use crate::ir::InstrLocId;
Modules§
- Utilities for emitting GraphViz dot files.
- Intermediate representation for instructions.
- Passes over whole modules or individual functions.
Structs§
- Code transformation records, which is used to transform DWARF debug entries.
- A data segment.
- A passive segment which contains a list of functions
- A named item exported from the wasm.
- A wasm function.
- Build instances of
LocalFunction
. - A wasm global.
- Maps our high-level identifiers to the raw indices they end up emitted at.
- A named item imported into the wasm.
- An externally defined, imported function.
- Maps from old indices in the original Wasm binary to
walrus
IDs. - A builder returned by instruction sequence-construction methods to build up instructions within a block/loop/if-else over time.
- A function defined locally within the wasm module.
- A memory in the wasm.
- A wasm module.
- Configuration for a
Module
which currently affects parsing. - A collection of custom sections inside a Wasm module.
- All passive data sections of a wasm module, used to initialize memories via various instructions.
- The DWARF debug section in input WebAssembly binary.
- All element segments of a wasm module, used to initialize
anyfunc
tables, used as function pointers. - The set of exports in a module.
- The set of functions within a module.
- The set of globals in each function in this module.
- The set of imports in a module.
- The set of locals in each function in this module.
- The set of memories in this module.
- Representation of the wasm custom section
producers
- The set of tables in this module.
- The set of de-duplicated types within a module.
- A raw, unparsed custom section.
- A table in the wasm.
- A function type.
- The id of a
CustomSection
instance with a statically-known type in aModuleCustomSections
. - The id of some
CustomSection
instance in aModuleCustomSections
.
Enums§
- A constant which is produced in WebAssembly, typically used in global initializers or element/data offsets.
- The kind of data segment: passive or active.
- Represents the items of an element segment.
- The kind of element segment.
- A leaf wasm error type.
- An exported item.
- The local- or external-specific bits of a function.
- The different kinds of globals a wasm module can have
- An imported item.
- A reference type.
- A value type.
Traits§
- A trait for implementing custom sections.
- A common trait for custom section identifiers.
Type Aliases§
- A passive element segment identifier
- A passive element segment identifier
- The id of an export.
- Parameter(s) to a function
- Result(s) of a given function
- A function identifier.
- The id of a global.
- The id of an import.
- The id of a memory.
- Either
Ok(T)
orErr(failure::Error)
.Result<T, Error>
- The id of a table.
- An identifier for types.