Enum cranelift_codegen::ir::condcodes::IntCC
source · pub enum IntCC {
Equal,
NotEqual,
SignedLessThan,
SignedGreaterThanOrEqual,
SignedGreaterThan,
SignedLessThanOrEqual,
UnsignedLessThan,
UnsignedGreaterThanOrEqual,
UnsignedGreaterThan,
UnsignedLessThanOrEqual,
Overflow,
NotOverflow,
}
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 <=
.
Overflow
Signed Overflow.
NotOverflow
Signed No Overflow.
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§
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> CallHasher for Twhere
T: Hash + ?Sized,
impl<T> CallHasher for Twhere
T: Hash + ?Sized,
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.