[−][src]Enum llhd::ir::InstData
An instruction format.
Variants
ConstInt
a = const iN imm
Fields of ConstInt
ConstTime
a = const time imm
Fields of ConstTime
Array
opcode imm, type x
Fields of Array
Aggregate
opcode args
Fields of Aggregate
Nullary
opcode
Fields of Nullary
opcode: Opcode
Unary
opcode type x
Fields of Unary
Binary
opcode type x, y
Fields of Binary
Ternary
opcode type x, y, z
Fields of Ternary
Jump
opcode bb
Fields of Jump
Branch
opcode x, bb0, bb1
Fields of Branch
Wait
opcode bb, args
Fields of Wait
Call
a = opcode type unit (inputs) -> (outputs)
Fields of Call
InsExt
a = opcode type x, y, imm0, imm1
Fields of InsExt
Reg
a = reg type x (, data mode trigger)*
Fields of Reg
Methods
impl InstData
[src]
pub fn opcode(&self) -> Opcode
[src]
Get the opcode of the instruction.
pub fn args(&self) -> &[Value]
[src]
Get the arguments of an instruction.
pub fn args_mut(&mut self) -> &mut [Value]
[src]
Mutable access to the arguments of an instruction.
pub fn imms(&self) -> &[usize]
[src]
Get the immediates of an instruction.
pub fn input_args(&self) -> &[Value]
[src]
Get the input arguments of a call instruction.
pub fn output_args(&self) -> &[Value]
[src]
Get the output arguments of a call instruction.
pub fn data_args(&self) -> &[Value]
[src]
Get the data arguments of a register instruction.
pub fn trigger_args(&self) -> &[Value]
[src]
Get the trigger arguments of a register instruction.
pub fn mode_args(&self) -> &[RegMode]
[src]
Get the modes of a register instruction.
pub fn blocks(&self) -> &[Block]
[src]
Get the BBs of an instruction.
pub fn blocks_mut(&mut self) -> &mut [Block]
[src]
Mutable access to the BBs of an instruction.
pub fn replace_value(&mut self, from: Value, to: Value) -> usize
[src]
Replace all uses of a value with another.
pub fn replace_block(&mut self, from: Block, to: Block) -> usize
[src]
Replace all uses of a block with another.
pub fn get_const_int(&self) -> Option<&BigInt>
[src]
Return the const int constructed by this instruction.
pub fn get_const_time(&self) -> Option<&ConstTime>
[src]
Return the const time constructed by this instruction.
pub fn get_ext_unit(&self) -> Option<ExtUnit>
[src]
Return the external unit being called or instantiated by this instruction.
Trait Implementations
impl Clone for InstData
[src]
fn clone(&self) -> InstData
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for InstData
[src]
Auto Trait Implementations
Blanket Implementations
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> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
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> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,