Op

Enum Op 

Source
pub enum Op<D: RiscVDisassembler> {
Show 105 variants Load(LoadTypeInst<D>), Fence(ITypeIntInst<D>), FenceI(ITypeIntInst<D>), AddI(ITypeIntInst<D>), SltI(ITypeIntInst<D>), SltIU(ITypeIntInst<D>), XorI(ITypeIntInst<D>), OrI(ITypeIntInst<D>), AndI(ITypeIntInst<D>), SllI(ITypeIntInst<D>), SrlI(ITypeIntInst<D>), SraI(ITypeIntInst<D>), Auipc(UTypeInst<D>), Store(StoreTypeInst<D>), Add(RTypeIntInst<D>), Sll(RTypeIntInst<D>), Slt(RTypeIntInst<D>), SltU(RTypeIntInst<D>), Xor(RTypeIntInst<D>), Srl(RTypeIntInst<D>), Or(RTypeIntInst<D>), And(RTypeIntInst<D>), Sub(RTypeIntInst<D>), Sra(RTypeIntInst<D>), Lui(UTypeInst<D>), Beq(BTypeInst<D>), Bne(BTypeInst<D>), Blt(BTypeInst<D>), Bge(BTypeInst<D>), BltU(BTypeInst<D>), BgeU(BTypeInst<D>), Jalr(ITypeIntInst<D>), Jal(JTypeInst<D>), Ecall, Ebreak, Csrrw(CsrTypeInst<D>), Csrrs(CsrTypeInst<D>), Csrrc(CsrTypeInst<D>), CsrrwI(CsrITypeInst<D>), CsrrsI(CsrITypeInst<D>), CsrrcI(CsrITypeInst<D>), Uret, Sret, Mret, Wfi, SfenceVm(RTypeIntInst<D>), SfenceVma(RTypeIntInst<D>), AddIW(ITypeIntInst<D>), SllIW(ITypeIntInst<D>), SrlIW(ITypeIntInst<D>), SraIW(ITypeIntInst<D>), AddW(RTypeIntInst<D>), SllW(RTypeIntInst<D>), SrlW(RTypeIntInst<D>), SubW(RTypeIntInst<D>), SraW(RTypeIntInst<D>), Mul(RTypeIntInst<D>), MulH(RTypeIntInst<D>), MulHSU(RTypeIntInst<D>), MulHU(RTypeIntInst<D>), Div(RTypeIntInst<D>), DivU(RTypeIntInst<D>), Rem(RTypeIntInst<D>), RemU(RTypeIntInst<D>), MulW(RTypeIntInst<D>), DivW(RTypeIntInst<D>), DivUW(RTypeIntInst<D>), RemW(RTypeIntInst<D>), RemUW(RTypeIntInst<D>), Lr(AtomicInst<D>), Sc(AtomicInst<D>), AmoSwap(AtomicInst<D>), AmoAdd(AtomicInst<D>), AmoXor(AtomicInst<D>), AmoAnd(AtomicInst<D>), AmoOr(AtomicInst<D>), AmoMin(AtomicInst<D>), AmoMax(AtomicInst<D>), AmoMinU(AtomicInst<D>), AmoMaxU(AtomicInst<D>), LoadFp(FpMemInst<D>), StoreFp(FpMemInst<D>), Fmadd(FpMAddInst<D>), Fmsub(FpMAddInst<D>), Fnmsub(FpMAddInst<D>), Fnmadd(FpMAddInst<D>), Fadd(RTypeFloatRoundInst<D>), Fsub(RTypeFloatRoundInst<D>), Fmul(RTypeFloatRoundInst<D>), Fdiv(RTypeFloatRoundInst<D>), Fsqrt(RTypeFloatRoundInst<D>), Fsgnj(RTypeFloatInst<D>), Fsgnjn(RTypeFloatInst<D>), Fsgnjx(RTypeFloatInst<D>), Fmin(RTypeFloatInst<D>), Fmax(RTypeFloatInst<D>), Fle(RTypeFloatCmpInst<D>), Flt(RTypeFloatCmpInst<D>), Feq(RTypeFloatCmpInst<D>), Fcvt(FpCvtInst<D>), FcvtToInt(FpCvtToIntInst<D>), FcvtFromInt(FpCvtFromIntInst<D>), FmvToInt(FpMvToIntInst<D>), FmvFromInt(FpMvFromIntInst<D>), Fclass(FpClassInst<D>),
}

Variants§

§

Load(LoadTypeInst<D>)

§

Fence(ITypeIntInst<D>)

§

FenceI(ITypeIntInst<D>)

§

AddI(ITypeIntInst<D>)

§

SltI(ITypeIntInst<D>)

§

SltIU(ITypeIntInst<D>)

§

XorI(ITypeIntInst<D>)

§

OrI(ITypeIntInst<D>)

§

AndI(ITypeIntInst<D>)

§

SllI(ITypeIntInst<D>)

§

SrlI(ITypeIntInst<D>)

§

SraI(ITypeIntInst<D>)

§

Auipc(UTypeInst<D>)

§

Store(StoreTypeInst<D>)

§

Add(RTypeIntInst<D>)

§

Sll(RTypeIntInst<D>)

§

Slt(RTypeIntInst<D>)

§

SltU(RTypeIntInst<D>)

§

Xor(RTypeIntInst<D>)

§

Srl(RTypeIntInst<D>)

§

Or(RTypeIntInst<D>)

§

And(RTypeIntInst<D>)

§

Sub(RTypeIntInst<D>)

§

Sra(RTypeIntInst<D>)

§

Lui(UTypeInst<D>)

§

Beq(BTypeInst<D>)

§

Bne(BTypeInst<D>)

§

Blt(BTypeInst<D>)

§

Bge(BTypeInst<D>)

§

BltU(BTypeInst<D>)

§

BgeU(BTypeInst<D>)

§

Jalr(ITypeIntInst<D>)

§

Jal(JTypeInst<D>)

§

Ecall

§

Ebreak

§

Csrrw(CsrTypeInst<D>)

§

Csrrs(CsrTypeInst<D>)

§

Csrrc(CsrTypeInst<D>)

§

CsrrwI(CsrITypeInst<D>)

§

CsrrsI(CsrITypeInst<D>)

§

CsrrcI(CsrITypeInst<D>)

§

Uret

§

Sret

§

Mret

§

Wfi

§

SfenceVm(RTypeIntInst<D>)

§

SfenceVma(RTypeIntInst<D>)

§

AddIW(ITypeIntInst<D>)

§

SllIW(ITypeIntInst<D>)

§

SrlIW(ITypeIntInst<D>)

§

SraIW(ITypeIntInst<D>)

§

AddW(RTypeIntInst<D>)

§

SllW(RTypeIntInst<D>)

§

SrlW(RTypeIntInst<D>)

§

SubW(RTypeIntInst<D>)

§

SraW(RTypeIntInst<D>)

§

Mul(RTypeIntInst<D>)

§

MulH(RTypeIntInst<D>)

§

MulHSU(RTypeIntInst<D>)

§

MulHU(RTypeIntInst<D>)

§

Div(RTypeIntInst<D>)

§

DivU(RTypeIntInst<D>)

§

Rem(RTypeIntInst<D>)

§

RemU(RTypeIntInst<D>)

§

MulW(RTypeIntInst<D>)

§

DivW(RTypeIntInst<D>)

§

DivUW(RTypeIntInst<D>)

§

RemW(RTypeIntInst<D>)

§

RemUW(RTypeIntInst<D>)

§

Lr(AtomicInst<D>)

§

Sc(AtomicInst<D>)

§

AmoSwap(AtomicInst<D>)

§

AmoAdd(AtomicInst<D>)

§

AmoXor(AtomicInst<D>)

§

AmoAnd(AtomicInst<D>)

§

AmoOr(AtomicInst<D>)

§

AmoMin(AtomicInst<D>)

§

AmoMax(AtomicInst<D>)

§

AmoMinU(AtomicInst<D>)

§

AmoMaxU(AtomicInst<D>)

§

LoadFp(FpMemInst<D>)

§

StoreFp(FpMemInst<D>)

§

Fmadd(FpMAddInst<D>)

§

Fmsub(FpMAddInst<D>)

§

Fnmsub(FpMAddInst<D>)

§

Fnmadd(FpMAddInst<D>)

§

Fadd(RTypeFloatRoundInst<D>)

§

Fsub(RTypeFloatRoundInst<D>)

§

Fmul(RTypeFloatRoundInst<D>)

§

Fdiv(RTypeFloatRoundInst<D>)

§

Fsqrt(RTypeFloatRoundInst<D>)

§

Fsgnj(RTypeFloatInst<D>)

§

Fsgnjn(RTypeFloatInst<D>)

§

Fsgnjx(RTypeFloatInst<D>)

§

Fmin(RTypeFloatInst<D>)

§

Fmax(RTypeFloatInst<D>)

§

Fle(RTypeFloatCmpInst<D>)

§

Flt(RTypeFloatCmpInst<D>)

§

Feq(RTypeFloatCmpInst<D>)

§

Fcvt(FpCvtInst<D>)

§

FcvtToInt(FpCvtToIntInst<D>)

§

FcvtFromInt(FpCvtFromIntInst<D>)

§

FmvToInt(FpMvToIntInst<D>)

§

FmvFromInt(FpMvFromIntInst<D>)

§

Fclass(FpClassInst<D>)

Trait Implementations§

Source§

impl<D: Clone + RiscVDisassembler> Clone for Op<D>

Source§

fn clone(&self) -> Op<D>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<D: Debug + RiscVDisassembler> Debug for Op<D>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D: Copy + RiscVDisassembler> Copy for Op<D>

Auto Trait Implementations§

§

impl<D> Freeze for Op<D>

§

impl<D> RefUnwindSafe for Op<D>
where D: RefUnwindSafe,

§

impl<D> Send for Op<D>

§

impl<D> Sync for Op<D>

§

impl<D> Unpin for Op<D>
where D: Unpin,

§

impl<D> UnwindSafe for Op<D>
where D: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.