IntPredicate
public enum IntPredicate
The condition codes available for integer comparison instructions.
-
Yields
trueif the operands are equal, false otherwise without sign interpretation.Declaration
Swift
case equal
-
Yields
trueif the operands are unequal, false otherwise without sign interpretation.Declaration
Swift
case notEqual
-
Interprets the operands as unsigned values and yields true if the first is greater than the second.
Declaration
Swift
case unsignedGreaterThan
-
Interprets the operands as unsigned values and yields true if the first is greater than or equal to the second.
Declaration
Swift
case unsignedGreaterThanOrEqual
-
Interprets the operands as unsigned values and yields true if the first is less than the second.
Declaration
Swift
case unsignedLessThan
-
Interprets the operands as unsigned values and yields true if the first is less than or equal to the second.
Declaration
Swift
case unsignedLessThanOrEqual
-
Interprets the operands as signed values and yields true if the first is greater than the second.
Declaration
Swift
case signedGreaterThan
-
Interprets the operands as signed values and yields true if the first is greater than or equal to the second.
Declaration
Swift
case signedGreaterThanOrEqual
-
Interprets the operands as signed values and yields true if the first is less than the second.
Declaration
Swift
case signedLessThan
-
Interprets the operands as signed values and yields true if the first is less than or equal to the second.
Declaration
Swift
case signedLessThanOrEqual
-
Retrieves the corresponding
LLVMIntPredicate.Declaration
Swift
public var llvm: LLVMIntPredicate
-
Yields
trueif the operands are equal, false otherwise without sign interpretation.Declaration
Swift
public static let eq = equal -
Yields
trueif the operands are unequal, false otherwise without sign interpretation.Declaration
Swift
public static let ne = notEqual -
Interprets the operands as unsigned values and yields true if the first is greater than the second.
Declaration
Swift
public static let ugt = unsignedGreaterThan -
Interprets the operands as unsigned values and yields true if the first is greater than or equal to the second.
Declaration
Swift
public static let uge = unsignedGreaterThanOrEqual -
Interprets the operands as unsigned values and yields true if the first is less than the second.
Declaration
Swift
public static let ult = unsignedLessThan -
Interprets the operands as unsigned values and yields true if the first is less than or equal to the second.
Declaration
Swift
public static let ule = unsignedLessThanOrEqual -
Interprets the operands as signed values and yields true if the first is greater than the second.
Declaration
Swift
public static let sgt = signedGreaterThan -
Interprets the operands as signed values and yields true if the first is greater than or equal to the second.
Declaration
Swift
public static let sge = signedGreaterThanOrEqual -
Interprets the operands as signed values and yields true if the first is less than the second.
Declaration
Swift
public static let slt = signedLessThan -
Interprets the operands as signed values and yields true if the first is less than or equal to the second.
Declaration
Swift
public static let sle = signedLessThanOrEqual
IntPredicate Enum Reference