Trait cranelift_codegen::ir::condcodes::CondCode [−][src]
pub trait CondCode: Copy { #[must_use] pub fn inverse(self) -> Self; #[must_use] pub fn reverse(self) -> Self; }
Common traits of condition codes.
Required methods
#[must_use]pub fn inverse(self) -> Self[src]
#[must_use]
pub fn inverse(self) -> SelfGet the inverse condition code of self.
The inverse condition code produces the opposite result for all comparisons.
That is, cmp CC, x, y is true if and only if cmp CC.inverse(), x, y is false.
#[must_use]pub fn reverse(self) -> Self[src]
#[must_use]
pub fn reverse(self) -> SelfGet the reversed condition code for self.
The reversed condition code produces the same result as swapping x and y in the
comparison. That is, cmp CC, x, y is the same as cmp CC.reverse(), y, x.