[−][src]Enum peepmatic_runtime::operator::Operator
An operator.
These are a subset of Cranelift IR's operators.
Caveats for Branching and Trapping Operators
Branching operators are not fully modeled: we do not represent their label and jump arguments. It is up to the interpreter doing the instruction replacement to recognize when we are replacing one branch with another, and copy over the extra information.
Affected operations: brz
, brnz
, trapz
, trapnz
.
Variants
adjust_sp_down
adjust_sp_down_imm
band
band_imm
bconst
bint
bor
bor_imm
brnz
brz
bxor
bxor_imm
iadd
iadd_imm
icmp
icmp_imm
iconst
ifcmp
ifcmp_imm
imul
imul_imm
ireduce
irsub_imm
ishl
ishl_imm
isub
rotl
rotl_imm
rotr
rotr_imm
sdiv
sdiv_imm
select
sextend
srem
srem_imm
sshr
sshr_imm
trapnz
trapz
udiv
udiv_imm
uextend
urem
urem_imm
ushr
ushr_imm
Implementations
impl Operator
[src]
pub fn immediates_arity(&self) -> u8
[src]
Get the number of immediates that this operator has.
pub fn params_arity(&self) -> u8
[src]
Get the number of parameters that this operator takes.
pub const fn num_operators() -> usize
[src]
Get the total number of different operators.
Trait Implementations
impl Clone for Operator
[src]
impl Copy for Operator
[src]
impl Debug for Operator
[src]
impl<'de> Deserialize<'de> for Operator
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for Operator
[src]
impl Eq for Operator
[src]
impl Hash for Operator
[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<Operator> for Operator
[src]
impl Serialize for Operator
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for Operator
[src]
impl StructuralPartialEq for Operator
[src]
impl TryFrom<u32> for Operator
[src]
Auto Trait Implementations
impl RefUnwindSafe for Operator
impl Send for Operator
impl Sync for Operator
impl Unpin for Operator
impl UnwindSafe for Operator
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,