Enum cranelift_codegen::ir::condcodes::IntCC [−][src]
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
Get the corresponding IntCC with the equal component removed. For conditions without a zero component, this is a no-op.
Get the corresponding IntCC with the signed component removed. For conditions without a signed component, this is a no-op.
Get the corresponding string condition code for the IntCC object.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for IntCC
impl UnwindSafe for IntCC
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.