IntPredicate

public enum IntPredicate

The condition codes available for integer comparison instructions.

  • Yields true if the operands are equal, false otherwise without sign interpretation.

    Declaration

    Swift

    case equal
  • Yields true if 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
  • eq

    Yields true if the operands are equal, false otherwise without sign interpretation.

    Declaration

    Swift

    public static let eq = equal
  • ne

    Yields true if the operands are unequal, false otherwise without sign interpretation.

    Declaration

    Swift

    public static let ne = notEqual
  • ugt

    Interprets the operands as unsigned values and yields true if the first is greater than the second.

    Declaration

    Swift

    public static let ugt = unsignedGreaterThan
  • uge

    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
  • ult

    Interprets the operands as unsigned values and yields true if the first is less than the second.

    Declaration

    Swift

    public static let ult = unsignedLessThan
  • ule

    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
  • sgt

    Interprets the operands as signed values and yields true if the first is greater than the second.

    Declaration

    Swift

    public static let sgt = signedGreaterThan
  • sge

    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
  • slt

    Interprets the operands as signed values and yields true if the first is less than the second.

    Declaration

    Swift

    public static let slt = signedLessThan
  • sle

    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