Enum riscu::instruction::Instruction [−][src]
Variants
Lui(UType)
Jal(JType)
Jalr(IType)
Beq(BType)
Ld(IType)
Sd(SType)
Addi(IType)
Add(RType)
Sub(RType)
Sltu(RType)
Mul(RType)
Divu(RType)
Remu(RType)
Ecall(IType)
Implementations
impl Instruction
[src]
pub fn new_nop() -> Instruction
[src]
pub fn new_add(rd: Register, rs1: Register, rs2: Register) -> Instruction
[src]
pub fn new_sub(rd: Register, rs1: Register, rs2: Register) -> Instruction
[src]
pub fn new_mul(rd: Register, rs1: Register, rs2: Register) -> Instruction
[src]
pub fn new_divu(rd: Register, rs1: Register, rs2: Register) -> Instruction
[src]
pub fn new_remu(rd: Register, rs1: Register, rs2: Register) -> Instruction
[src]
pub fn new_sltu(rd: Register, rs1: Register, rs2: Register) -> Instruction
[src]
pub fn new_addi(rd: Register, rs1: Register, immediate: i32) -> Instruction
[src]
pub fn new_ld(rd: Register, rs1: Register, immediate: i32) -> Instruction
[src]
pub fn new_ecall() -> Instruction
[src]
pub fn new_jalr(rd: Register, rs1: Register, immediate: i32) -> Instruction
[src]
pub fn new_sd(rs1: Register, rs2: Register, immediate: i32) -> Instruction
[src]
pub fn new_beq(rs1: Register, rs2: Register, immediate: i32) -> Instruction
[src]
pub fn new_jal(rd: Register, immediate: i32) -> Instruction
[src]
pub fn new_lui(rd: Register, immediate: i32) -> Instruction
[src]
Trait Implementations
impl Clone for Instruction
[src]
fn clone(&self) -> Instruction
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Instruction
[src]
impl Debug for Instruction
[src]
impl Eq for Instruction
[src]
impl Hash for Instruction
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Instruction> for Instruction
[src]
fn eq(&self, other: &Instruction) -> bool
[src]
fn ne(&self, other: &Instruction) -> bool
[src]
impl StructuralEq for Instruction
[src]
impl StructuralPartialEq for Instruction
[src]
Auto Trait Implementations
impl RefUnwindSafe for Instruction
[src]
impl Send for Instruction
[src]
impl Sync for Instruction
[src]
impl Unpin for Instruction
[src]
impl UnwindSafe for Instruction
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,