pub enum IntPredicate {
IntEQ,
IntNE,
IntUGT,
IntUGE,
IntULT,
IntULE,
IntSGT,
IntSGE,
IntSLT,
IntSLE,
}
Expand description
Represents the various integer comparison predicates in LLVM IR.
The IntPredicate
enum defines the possible predicates that can be used for integer comparisons
in LLVM IR. These predicates specify the condition under which an integer comparison is considered true.
The predicates cover both signed and unsigned comparisons, as well as equality checks.
Variants§
IntEQ
Represents an equality comparison (==
). This predicate is true if the two integers are equal.
IntNE
Represents an inequality comparison (!=
). This predicate is true if the two integers are not equal.
IntUGT
Represents an unsigned greater than comparison (>
). This predicate is true if the first integer is greater than the second, treating both as unsigned values.
IntUGE
Represents an unsigned greater than or equal comparison (>=
). This predicate is true if the first integer is greater than or equal to the second, treating both as unsigned values.
IntULT
Represents an unsigned less than comparison (<
). This predicate is true if the first integer is less than the second, treating both as unsigned values.
IntULE
Represents an unsigned less than or equal comparison (<=
). This predicate is true if the first integer is less than or equal to the second, treating both as unsigned values.
IntSGT
Represents a signed greater than comparison (>
). This predicate is true if the first integer is greater than the second, treating both as signed values.
IntSGE
Represents a signed greater than or equal comparison (>=
). This predicate is true if the first integer is greater than or equal to the second, treating both as signed values.
IntSLT
Represents a signed less than comparison (<
). This predicate is true if the first integer is less than the second, treating both as signed values.
IntSLE
Represents a signed less than or equal comparison (<=
). This predicate is true if the first integer is less than or equal to the second, treating both as signed values.
Trait Implementations§
source§impl Clone for IntPredicate
impl Clone for IntPredicate
source§fn clone(&self) -> IntPredicate
fn clone(&self) -> IntPredicate
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IntPredicate
impl Debug for IntPredicate
source§impl From<IntPredicate> for LLVMIntPredicate
impl From<IntPredicate> for LLVMIntPredicate
source§fn from(predicate: IntPredicate) -> Self
fn from(predicate: IntPredicate) -> Self
source§impl From<LLVMIntPredicate> for IntPredicate
impl From<LLVMIntPredicate> for IntPredicate
source§fn from(predicate: LLVMIntPredicate) -> Self
fn from(predicate: LLVMIntPredicate) -> Self
source§impl PartialEq for IntPredicate
impl PartialEq for IntPredicate
impl Copy for IntPredicate
impl Eq for IntPredicate
impl StructuralPartialEq for IntPredicate
Auto Trait Implementations§
impl Freeze for IntPredicate
impl RefUnwindSafe for IntPredicate
impl Send for IntPredicate
impl Sync for IntPredicate
impl Unpin for IntPredicate
impl UnwindSafe for IntPredicate
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)