[][src]Enum llhd::ir::Opcode

pub enum Opcode {
    ConstInt,
    ConstTime,
    Alias,
    ArrayUniform,
    Array,
    Struct,
    Not,
    Neg,
    Add,
    Sub,
    And,
    Or,
    Xor,
    Smul,
    Sdiv,
    Smod,
    Srem,
    Umul,
    Udiv,
    Umod,
    Urem,
    Eq,
    Neq,
    Slt,
    Sgt,
    Sle,
    Sge,
    Ult,
    Ugt,
    Ule,
    Uge,
    Shl,
    Shr,
    Mux,
    Reg,
    InsField,
    InsSlice,
    ExtField,
    ExtSlice,
    Con,
    Del,
    Call,
    Inst,
    Sig,
    Drv,
    Prb,
    Var,
    Ld,
    St,
    Halt,
    Ret,
    RetValue,
    Br,
    BrCond,
    Wait,
    WaitTime,
}

An instruction opcode.

This enum represents the actual instruction, whereas InstData covers the format and arguments of the instruction.

Variants

ConstIntConstTimeAliasArrayUniformArrayStructNotNegAddSubAndOrXorSmulSdivSmodSremUmulUdivUmodUremEqNeqSltSgtSleSgeUltUgtUleUgeShlShrMuxRegInsFieldInsSliceExtFieldExtSliceConDelCallInstSigDrvPrbVarLdStHaltRetRetValueBrBrCondWaitWaitTime

Methods

impl Opcode[src]

pub fn valid_in(self) -> UnitFlags[src]

Return a set of flags where this instruction is valid.

pub fn valid_in_function(self) -> bool[src]

Check if this instruction can appear in a Function.

pub fn valid_in_process(self) -> bool[src]

Check if this instruction can appear in a Process.

pub fn valid_in_entity(self) -> bool[src]

Check if this instruction can appear in a Entity.

pub fn is_const(self) -> bool[src]

Check if this instruction is a constant.

pub fn is_terminator(self) -> bool[src]

Check if this instruction is a terminator.

pub fn is_return(self) -> bool[src]

Check if this is a return instruction.

Trait Implementations

impl Copy for Opcode[src]

impl PartialEq<Opcode> for Opcode[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Clone for Opcode[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Opcode[src]

impl Display for Opcode[src]

impl Debug for Opcode[src]

Auto Trait Implementations

impl Send for Opcode

impl Sync for Opcode

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]