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 for IntCC
impl PartialEq for IntCC
impl Copy for IntCC
impl Eq for IntCC
impl StructuralPartialEq for IntCC
Auto Trait Implementations§
impl Freeze for IntCC
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 Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.