pub enum IrOpcode {
Show 53 variants
Add,
Sub,
Mul,
Div,
Rem,
Neg,
Abs,
Exp,
Log,
Sqrt,
Sin,
Cos,
Tanh,
Sigmoid,
And,
Or,
Not,
Xor,
Eq,
Ne,
Lt,
Le,
Gt,
Ge,
Load,
Store,
Alloca,
Reshape,
Transpose,
Slice,
Concat,
Split,
MatMul,
Conv2d,
Pool2d,
Sum,
Mean,
Max,
Min,
Argmax,
Argmin,
Relu,
Gelu,
Softmax,
Br,
CondBr,
Call,
Return,
Const,
Cast,
Bitcast,
Intrinsic(String),
Nop,
}Expand description
IR operation codes
Variants§
Add
Sub
Mul
Div
Rem
Neg
Abs
Exp
Log
Sqrt
Sin
Cos
Tanh
Sigmoid
And
Or
Not
Xor
Eq
Ne
Lt
Le
Gt
Ge
Load
Store
Alloca
Reshape
Transpose
Slice
Concat
Split
MatMul
Conv2d
Pool2d
Sum
Mean
Max
Min
Argmax
Argmin
Relu
Gelu
Softmax
Br
CondBr
Call
Return
Const
Cast
Bitcast
Intrinsic(String)
Nop
Trait Implementations§
impl StructuralPartialEq for IrOpcode
Auto Trait Implementations§
impl Freeze for IrOpcode
impl RefUnwindSafe for IrOpcode
impl Send for IrOpcode
impl Sync for IrOpcode
impl Unpin for IrOpcode
impl UnsafeUnpin for IrOpcode
impl UnwindSafe for IrOpcode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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