Enum cranelift_codegen::ir::condcodes::IntCC
source · pub enum IntCC {
Equal,
NotEqual,
SignedLessThan,
SignedGreaterThanOrEqual,
SignedGreaterThan,
SignedLessThanOrEqual,
UnsignedLessThan,
UnsignedGreaterThanOrEqual,
UnsignedGreaterThan,
UnsignedLessThanOrEqual,
}
Expand description
Condition code for comparing integers.
This condition code is used by the icmp
instruction to compare integer values. There are
separate codes for comparing the integers as signed or unsigned numbers where it makes a
difference.
Variants§
Equal
==
.
NotEqual
!=
.
SignedLessThan
Signed <
.
SignedGreaterThanOrEqual
Signed >=
.
SignedGreaterThan
Signed >
.
SignedLessThanOrEqual
Signed <=
.
UnsignedLessThan
Unsigned <
.
UnsignedGreaterThanOrEqual
Unsigned >=
.
UnsignedGreaterThan
Unsigned >
.
UnsignedLessThanOrEqual
Unsigned <=
.
Implementations§
source§impl IntCC
impl IntCC
sourcepub fn without_equal(self) -> Self
pub fn without_equal(self) -> Self
Get the corresponding IntCC with the equal component removed. For conditions without a zero component, this is a no-op.
sourcepub fn unsigned(self) -> Self
pub fn unsigned(self) -> Self
Get the corresponding IntCC with the signed component removed. For conditions without a signed component, this is a no-op.
sourcepub fn to_static_str(self) -> &'static str
pub fn to_static_str(self) -> &'static str
Get the corresponding string condition code for the IntCC object.
Trait Implementations§
source§impl PartialEq<IntCC> for IntCC
impl PartialEq<IntCC> for IntCC
impl Copy for IntCC
impl Eq for IntCC
impl StructuralEq for IntCC
impl StructuralPartialEq for IntCC
Auto Trait Implementations§
impl RefUnwindSafe for IntCC
impl Send for IntCC
impl Sync for IntCC
impl Unpin for IntCC
impl UnwindSafe for IntCC
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.