pub enum BinOpcodeFlags {
Show 13 variants
Add(OverflowFlags),
Sub(OverflowFlags),
Mul(OverflowFlags),
UDiv {
exact: bool,
},
SDiv {
exact: bool,
},
URem,
SRem,
Shl(OverflowFlags),
LShr {
exact: bool,
},
AShr {
exact: bool,
},
And,
Or,
Xor,
}Expand description
Combines the opcode with its appropriate flags
Variants§
Add(OverflowFlags)
Addition with overflow flags (nuw, nsw)
Sub(OverflowFlags)
Subtraction with overflow flags (nuw, nsw)
Mul(OverflowFlags)
Multiplication with overflow flags (nuw, nsw)
UDiv
Unsigned division with exact flag
SDiv
Signed division with exact flag
URem
Unsigned remainder
SRem
Signed remainder
Shl(OverflowFlags)
Shift left with overflow flags (nuw, nsw)
LShr
Logical shift right with exact flag
AShr
Arithmetic shift right with exact flag
And
Bitwise and
Or
Bitwise or
Xor
Bitwise xor
Trait Implementations§
Source§impl Clone for BinOpcodeFlags
impl Clone for BinOpcodeFlags
Source§fn clone(&self) -> BinOpcodeFlags
fn clone(&self) -> BinOpcodeFlags
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BinOpcodeFlags
impl Debug for BinOpcodeFlags
impl Copy for BinOpcodeFlags
Auto Trait Implementations§
impl Freeze for BinOpcodeFlags
impl RefUnwindSafe for BinOpcodeFlags
impl Send for BinOpcodeFlags
impl Sync for BinOpcodeFlags
impl Unpin for BinOpcodeFlags
impl UnsafeUnpin for BinOpcodeFlags
impl UnwindSafe for BinOpcodeFlags
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