wasmtime_regalloc_algorithm_enum enum

\brief Different ways to allocate registers.

The default is #WASMTIME_REGALLOC_BACKTRACKING.

Inheritance
Available extensions

Values

WASMTIME_REGALLOC_BACKTRACKING → const wasmtime_regalloc_algorithm_enum

Generates the fastest possible code, but may take longer.

This algorithm performs “backtracking”, which means that it may undo its earlier work and retry as it discovers conflicts. This results in better register utilization, producing fewer spills and moves, but can cause super-linear compile runtime.

const wasmtime_regalloc_algorithm_enum(0)
WASMTIME_REGALLOC_SINGLE_PASS → const wasmtime_regalloc_algorithm_enum

Generates acceptable code very quickly.

This algorithm performs a single pass through the code, guaranteed to work in linear time. (Note that the rest of Cranelift is not necessarily guaranteed to run in linear time, however.) It cannot undo earlier decisions, however, and it cannot foresee constraints or issues that may occur further ahead in the code, so the code may have more spills and moves as a result.

const wasmtime_regalloc_algorithm_enum(1)

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromValue(int value) → wasmtime_regalloc_algorithm_enum

Constants

values → const List<wasmtime_regalloc_algorithm_enum>
A constant List of the values in this enum, in order of their declaration.