Enum cranelift_codegen::ir::ValueLoc[][src]

pub enum ValueLoc {
    Unassigned,
    Reg(RegUnit),
    Stack(StackSlot),
}

Value location.

Variants

This value has not been assigned to a location yet.

Value is assigned to a register.

Value is assigned to a stack slot.

Methods

impl ValueLoc
[src]

Is this an assigned location? (That is, not Unassigned).

Get the register unit of this location, or panic.

Get the stack slot of this location, or panic.

Return an object that can display this value location, using the register info from the target ISA.

Trait Implementations

impl Copy for ValueLoc
[src]

impl Clone for ValueLoc
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ValueLoc
[src]

Formats the value using the given formatter. Read more

impl PartialEq for ValueLoc
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ValueLoc
[src]

impl Default for ValueLoc
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for ValueLoc

impl Sync for ValueLoc