Enum cranelift_codegen::ir::ValueLoc [−][src]
Value location.
Variants
This value has not been assigned to a location yet.
Reg(RegUnit)Value is assigned to a register.
Stack(StackSlot)Value is assigned to a stack slot.
Implementations
impl ValueLoc[src]
impl ValueLoc[src]pub fn is_assigned(self) -> bool[src]
Is this an assigned location? (That is, not Unassigned).
pub fn unwrap_reg(self) -> RegUnit[src]
Get the register unit of this location, or panic.
pub fn unwrap_stack(self) -> StackSlot[src]
Get the stack slot of this location, or panic.
pub fn display<'a, R: Into<Option<&'a RegInfo>>>(
self,
regs: R
) -> DisplayValueLoc<'a>[src]
self,
regs: R
) -> DisplayValueLoc<'a>
Return an object that can display this value location, using the register info from the target ISA.
Trait Implementations
impl<'de> Deserialize<'de> for ValueLoc[src]
impl<'de> Deserialize<'de> for ValueLoc[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Copy for ValueLoc[src]
impl Eq for ValueLoc[src]
impl StructuralEq for ValueLoc[src]
impl StructuralPartialEq for ValueLoc[src]
Auto Trait Implementations
impl RefUnwindSafe for ValueLoc
impl Send for ValueLoc
impl Sync for ValueLoc
impl Unpin for ValueLoc
impl UnwindSafe for ValueLoc
Blanket Implementations
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]pub fn equivalent(&self, key: &K) -> bool[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,