Opcode

Enum Opcode 

Source
#[repr(u16)]
pub enum Opcode {
Show 71 variants Copy = 0, Load = 1, Store = 2, Branch = 3, CBranch = 4, IBranch = 5, Call = 6, ICall = 7, CallOther = 8, Return = 9, IntEq = 10, IntNotEq = 11, IntSLess = 12, IntSLessEq = 13, IntLess = 14, IntLessEq = 15, IntZExt = 16, IntSExt = 17, IntNeg = 18, IntNot = 19, IntAdd = 20, IntSub = 21, IntMul = 22, IntDiv = 23, IntSDiv = 24, IntRem = 25, IntSRem = 26, IntCarry = 27, IntSCarry = 28, IntSBorrow = 29, IntAnd = 30, IntOr = 31, IntXor = 32, IntLShift = 33, IntRShift = 34, IntSRShift = 35, BoolNot = 36, BoolAnd = 37, BoolOr = 38, BoolXor = 39, FloatEq = 40, FloatNotEq = 41, FloatLess = 42, FloatLessEq = 43, FloatIsNaN = 44, FloatAdd = 45, FloatSub = 46, FloatMul = 47, FloatDiv = 48, FloatNeg = 49, FloatAbs = 50, FloatSqrt = 51, FloatOfInt = 52, FloatOfFloat = 53, FloatTruncate = 54, FloatCeiling = 55, FloatFloor = 56, FloatRound = 57, Build = 58, DelaySlot = 59, Piece = 60, Subpiece = 61, Cast = 62, Label = 63, CrossBuild = 64, SegmentOp = 65, CPoolRef = 66, New = 67, Insert = 68, Extract = 69, PopCount = 70,
}

Variants§

§

Copy = 0

§

Load = 1

§

Store = 2

§

Branch = 3

§

CBranch = 4

§

IBranch = 5

§

Call = 6

§

ICall = 7

§

CallOther = 8

§

Return = 9

§

IntEq = 10

§

IntNotEq = 11

§

IntSLess = 12

§

IntSLessEq = 13

§

IntLess = 14

§

IntLessEq = 15

§

IntZExt = 16

§

IntSExt = 17

§

IntNeg = 18

§

IntNot = 19

§

IntAdd = 20

§

IntSub = 21

§

IntMul = 22

§

IntDiv = 23

§

IntSDiv = 24

§

IntRem = 25

§

IntSRem = 26

§

IntCarry = 27

§

IntSCarry = 28

§

IntSBorrow = 29

§

IntAnd = 30

§

IntOr = 31

§

IntXor = 32

§

IntLShift = 33

§

IntRShift = 34

§

IntSRShift = 35

§

BoolNot = 36

§

BoolAnd = 37

§

BoolOr = 38

§

BoolXor = 39

§

FloatEq = 40

§

FloatNotEq = 41

§

FloatLess = 42

§

FloatLessEq = 43

§

FloatIsNaN = 44

§

FloatAdd = 45

§

FloatSub = 46

§

FloatMul = 47

§

FloatDiv = 48

§

FloatNeg = 49

§

FloatAbs = 50

§

FloatSqrt = 51

§

FloatOfInt = 52

§

FloatOfFloat = 53

§

FloatTruncate = 54

§

FloatCeiling = 55

§

FloatFloor = 56

§

FloatRound = 57

§

Build = 58

§

DelaySlot = 59

§

Piece = 60

§

Subpiece = 61

§

Cast = 62

§

Label = 63

§

CrossBuild = 64

§

SegmentOp = 65

§

CPoolRef = 66

§

New = 67

§

Insert = 68

§

Extract = 69

§

PopCount = 70

Implementations§

Source§

impl Opcode

Source

pub fn from_str(input: &str) -> Result<Self, Error>

Trait Implementations§

Source§

impl Clone for Opcode

Source§

fn clone(&self) -> Opcode

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 Debug for Opcode

Source§

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

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

impl<'de> Deserialize<'de> for Opcode

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for Opcode

Source§

fn eq(&self, other: &Opcode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Opcode

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for Opcode

Source§

impl Eq for Opcode

Source§

impl StructuralPartialEq for Opcode

Auto Trait Implementations§

§

impl Freeze for Opcode

§

impl RefUnwindSafe for Opcode

§

impl Send for Opcode

§

impl Sync for Opcode

§

impl Unpin for Opcode

§

impl UnwindSafe for Opcode

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> Az for T

Source§

fn az<Dst>(self) -> Dst
where T: Cast<Dst>,

Casts the value.
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<Src, Dst> CastFrom<Src> for Dst
where Src: Cast<Dst>,

Source§

fn cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> CheckedAs for T

Source§

fn checked_as<Dst>(self) -> Option<Dst>
where T: CheckedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> CheckedCastFrom<Src> for Dst
where Src: CheckedCast<Dst>,

Source§

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<'z, T, U> IntoSpace<'z, T> for U
where T: FromSpace<'z, U>,

Source§

fn into_space(self, manager: &SpaceManager) -> T

Source§

fn into_space_with(self, arena: &'z IRBuilderArena, manager: &SpaceManager) -> T

Source§

impl<T> OverflowingAs for T

Source§

fn overflowing_as<Dst>(self) -> (Dst, bool)
where T: OverflowingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> OverflowingCastFrom<Src> for Dst
where Src: OverflowingCast<Dst>,

Source§

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
Source§

impl<T> SaturatingAs for T

Source§

fn saturating_as<Dst>(self) -> Dst
where T: SaturatingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> SaturatingCastFrom<Src> for Dst
where Src: SaturatingCast<Dst>,

Source§

fn saturating_cast_from(src: Src) -> Dst

Casts the value.
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.
Source§

impl<T> UnwrappedAs for T

Source§

fn unwrapped_as<Dst>(self) -> Dst
where T: UnwrappedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> UnwrappedCastFrom<Src> for Dst
where Src: UnwrappedCast<Dst>,

Source§

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> WrappingAs for T

Source§

fn wrapping_as<Dst>(self) -> Dst
where T: WrappingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> WrappingCastFrom<Src> for Dst
where Src: WrappingCast<Dst>,

Source§

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,