[−][src]Enum llhd::InstKind
The different forms an instruction can take.
Variants
UnaryInst(UnaryOp, Type, ValueRef)
BinaryInst(BinaryOp, Type, ValueRef, ValueRef)
CompareInst(CompareOp, Type, ValueRef, ValueRef)
CallInst(Type, ValueRef, Vec<ValueRef>)
InstanceInst(Type, ValueRef, Vec<ValueRef>, Vec<ValueRef>)
WaitInst(BlockRef, Option<ValueRef>, Vec<ValueRef>)
ReturnInst(ReturnKind)
BranchInst(BranchKind)
SignalInst(Type, Option<ValueRef>)
ProbeInst(Type, ValueRef)
DriveInst(ValueRef, ValueRef, Option<ValueRef>)
VariableInst(Type)
<result> = var <type>
LoadInst(Type, ValueRef)
<result> = load <type> <ptr>
StoreInst(Type, ValueRef, ValueRef)
store <type> <ptr> <value>
HaltInst
halt
InsertInst(Type, ValueRef, SliceMode, ValueRef)
The insert
instruction.
ExtractInst(Type, ValueRef, SliceMode)
The extract
instruction.
ShiftInst(ShiftDir, Type, ValueRef, ValueRef, ValueRef)
The shl
and shr
instructions.
Methods
impl InstKind
[src]
pub fn ty(&self) -> Type
[src]
Get the result type of the instruction.
pub fn mnemonic(&self) -> Mnemonic
[src]
pub fn is_instance(&self) -> bool
[src]
Check if this is an instantiation instruction.
Trait Implementations
impl Clone for InstKind
[src]
fn clone(&self) -> InstKind
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for InstKind
[src]
impl PartialEq<InstKind> for InstKind
[src]
impl Debug for InstKind
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,