pub enum NnilInstruction {
Show 38 variants
Add {
lhs: Insn,
rhs: Insn,
},
Sub {
lhs: Insn,
rhs: Insn,
},
Mul {
lhs: Insn,
rhs: Insn,
},
Mulh {
lhs: Insn,
rhs: Insn,
},
Div {
lhs: Insn,
rhs: Insn,
},
Mod {
lhs: Insn,
rhs: Insn,
},
Fdiv {
lhs: Insn,
rhs: Insn,
size: usize,
},
And {
lhs: Insn,
rhs: Insn,
},
Or {
lhs: Insn,
rhs: Insn,
},
Xor {
lhs: Insn,
rhs: Insn,
},
Sll {
lhs: Insn,
rhs: Insn,
},
Srl {
lhs: Insn,
rhs: Insn,
},
Sra {
lhs: Insn,
rhs: Insn,
},
Slt {
lhs: Insn,
rhs: Insn,
},
Mov {
dst: Insn,
src: Insn,
},
Set {
dst: Insn,
src: Insn,
},
Jr {
dst: Insn,
},
Jmp {
dst: Insn,
},
Beq {
lhs: Insn,
rhs: Insn,
ttgt: Label,
ftgt: Label,
},
Bne {
lhs: Insn,
rhs: Insn,
ttgt: Label,
ftgt: Label,
},
Blt {
lhs: Insn,
rhs: Insn,
ttgt: Label,
ftgt: Label,
},
Bgt {
lhs: Insn,
rhs: Insn,
ttgt: Label,
ftgt: Label,
},
Load {
dst: Insn,
src: Insn,
size: u64,
},
Store {
dst: Insn,
src: Insn,
size: u64,
},
Sext {
size: usize,
dst: Insn,
},
Zext {
size: usize,
dst: Insn,
},
Signed {
dst: Insn,
},
Unsigned {
dst: Insn,
},
IntToFloat {
src: Insn,
src_size: usize,
signed: bool,
dst_size: usize,
},
Imm {
imm: i64,
},
Reg {
reg: u64,
},
TmpReg {
reg: u64,
},
Syscall {},
Sysbreak {},
Lr {
dst: Insn,
src: Insn,
size: u64,
},
Sc {
dst: Insn,
src: Insn,
addr: Insn,
size: u64,
},
Amo {
op: AmoOp,
dst: Insn,
src: Insn,
addr: Insn,
size: u64,
},
Fence {
mode: u8,
pred: u8,
succ: u8,
},
}Variants§
Add
Sub
Mul
Mulh
Div
Mod
Fdiv
And
Or
Xor
Sll
Srl
Sra
Slt
Mov
Set
Jr
Jmp
Beq
Bne
Blt
Bgt
Load
Store
Sext
Zext
Signed
Unsigned
IntToFloat
Imm
Reg
TmpReg
Syscall
Sysbreak
Lr
Sc
Amo
Fence
Implementations§
Source§impl NnilInstruction
impl NnilInstruction
pub fn is_terminator(&self) -> bool
Trait Implementations§
Source§impl Clone for NnilInstruction
impl Clone for NnilInstruction
impl Copy for NnilInstruction
Source§impl Debug for NnilInstruction
impl Debug for NnilInstruction
impl Eq for NnilInstruction
Source§impl PartialEq for NnilInstruction
impl PartialEq for NnilInstruction
impl StructuralPartialEq for NnilInstruction
Auto Trait Implementations§
impl Freeze for NnilInstruction
impl RefUnwindSafe for NnilInstruction
impl Send for NnilInstruction
impl Sync for NnilInstruction
impl Unpin for NnilInstruction
impl UnsafeUnpin for NnilInstruction
impl UnwindSafe for NnilInstruction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more