FloatType

public enum FloatType: IRType

FloatType enumerates representations of a floating value of a particular bit width and semantics.

  • 16-bit floating point value

    Declaration

    Swift

    case half
  • 32-bit floating point value

    Declaration

    Swift

    case float
  • 64-bit floating point value

    Declaration

    Swift

    case double
  • 80-bit floating point value (X87)

    Declaration

    Swift

    case x86FP80
  • 128-bit floating point value (112-bit mantissa)

    Declaration

    Swift

    case fp128
  • 128-bit floating point value (two 64-bits)

    Declaration

    Swift

    case ppcFP128
  • Creates a constant floating value of this type from a Swift Double value.

    Declaration

    Swift

    public func constant(_ value: Double) -> Constant<Floating>
  • Retrieves the underlying LLVM type object.

    Declaration

    Swift

    public func asLLVM() -> LLVMTypeRef