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 more