IntegerConstant

public struct IntegerConstant : Constant, Hashable
extension IntegerConstant: CustomStringConvertible

An unsigned integer Hylo IR constant.

  • Undocumented

    Declaration

    Swift

    public let value: WideUInt
  • Creates a new integer Hylo IR constant with value x and the given bitWidth.

    Precondition

    x is non-negative and representable in bitWidth bits.

    Declaration

    Swift

    public init<V>(_ x: V, bitWidth: Int) where V : BinaryInteger
  • Creates a new Hylo IR constant with given value.

    Declaration

    Swift

    public init(_ value: WideUInt)
  • Declaration

    Swift

    public var type: IR.Type { get }
  • Declaration

    Swift

    public var description: String { get }