[−][src]Enum llhd::ir::Opcode
An instruction opcode.
This enum represents the actual instruction, whereas InstData
covers the
format and arguments of the instruction.
Variants
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
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 Eq for Opcode
[src]
impl Copy for Opcode
[src]
impl Clone for Opcode
[src]
fn clone(&self) -> Opcode
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<Opcode> for Opcode
[src]
fn eq(&self, other: &Opcode) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl Debug for Opcode
[src]
impl Display for Opcode
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::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,