pub enum Op {
Show 41 variants
Add,
Sub,
Mul,
UDiv,
SDiv,
URem,
SRem,
Shl,
LShr,
AShr,
And,
Or,
Xor,
FAdd,
FSub,
FMul,
FDiv,
FRem,
FNeg,
ICmp(IPred),
FCmp(FPred),
Select,
Freeze,
Trunc,
ZExt,
SExt,
FPTrunc,
FPExt,
FPToUI,
FPToSI,
UIToFP,
SIToFP,
BitCast,
Phi,
Call(Intrinsic),
Copy,
Load,
Store,
Gep(u16),
Alloca,
Resize,
}Expand description
An instruction’s operation.
Variants§
Add
Sub
Mul
UDiv
SDiv
URem
SRem
Shl
LShr
AShr
And
Or
Xor
FAdd
FSub
FMul
FDiv
FRem
FNeg
ICmp(IPred)
FCmp(FPred)
Select
Freeze
Trunc
ZExt
SExt
FPTrunc
FPExt
FPToUI
FPToSI
UIToFP
SIToFP
BitCast
Phi
Call(Intrinsic)
Copy
%r = <operand>: the operand itself (the transformation syntax).
Load
load <ty>, ptr %p (lifting only: the verifier refuses memory).
Store
store <ty> %v, ptr %p.
Gep(u16)
getelementptr <elem>, ptr %p, <ty> %i: p + i · size, the element’s size in bytes.
Alloca
alloca <ty>: a fresh address.
Resize
ptrtoint and inttoptr: an address resized (zero extension or truncation).
Trait Implementations§
impl Copy for Op
impl Eq for Op
impl StructuralPartialEq for Op
Auto Trait Implementations§
impl Forget for Op
impl Freeze for Op
impl Move for Op
impl RefUnwindSafe for Op
impl Send for Op
impl Sync for Op
impl Unpin for Op
impl UnsafeUnpin for Op
impl UnwindSafe for Op
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