[−][src]Enum llhd::ir::InstData
An instruction format.
Variants
a = const iN imm
a = const time imm
opcode imm, type x
opcode args
opcode
Fields of Nullary
opcode: Opcode
opcode type x
opcode type x, y
opcode type x, y, z
opcode type x, y, z, w
opcode bb
opcode type [x, bb],*
opcode x, bb0, bb1
opcode bb, args
a = opcode type unit (inputs) -> (outputs)
a = opcode type x, y, imm0, imm1
a = reg type x (, data mode trigger)*
Implementations
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 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) -> impl Iterator<Item = Value> + '_
[src]
Get the data arguments of a register instruction.
pub fn trigger_args(&self) -> impl Iterator<Item = Value> + '_
[src]
Get the trigger arguments of a register instruction.
pub fn gating_args(&self) -> impl Iterator<Item = Option<Value>> + '_
[src]
Get the gating arguments of a register instruction.
pub fn mode_args(&self) -> impl Iterator<Item = RegMode> + '_
[src]
Get the modes of a register instruction.
pub fn triggers(&self) -> impl Iterator<Item = RegTrigger> + '_
[src]
Get the register triggers.
pub fn blocks(&self) -> &[Block]
[src]
Get the BBs of an instruction.
pub fn get_const_int(&self) -> Option<&IntValue>
[src]
Return the const int constructed by this instruction.
pub fn get_const_time(&self) -> Option<&TimeValue>
[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]
impl Debug for InstData
[src]
impl Default for InstData
[src]
impl<'de> Deserialize<'de> for InstData
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for InstData
[src]
impl Hash for InstData
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<InstData> for InstData
[src]
impl Serialize for InstData
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for InstData
[src]
impl StructuralPartialEq for InstData
[src]
Auto Trait Implementations
impl RefUnwindSafe for InstData
impl Send for InstData
impl Sync for InstData
impl Unpin for InstData
impl UnwindSafe for InstData
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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, U> TryFrom<U> 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<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,