FloatingPointConstant

public struct FloatingPointConstant : Constant, Hashable
extension FloatingPointConstant: CustomStringConvertible

A floating-point number Hylo IR constant.

  • The serialized value of this constant.

    Declaration

    Swift

    public let value: String
  • The Hylo IR type of this instance.

    Declaration

    Swift

    public let type: IR.Type
  • Creates a new floating-point Hylo IR constant with value v and the given type.

    Declaration

    Swift

    private init(_ v: String, type: BuiltinType)
  • Creates a new Hylo IR float64 constant with value v.

    Declaration

    Swift

    public static func float64(_ v: String) -> FloatingPointConstant
  • Creates a new Hylo IR float32 constant with value v.

    Declaration

    Swift

    public static func float32(_ v: String) -> FloatingPointConstant
  • Declaration

    Swift

    public var description: String { get }