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
xand the givenbitWidth.Precondition
xis non-negative and representable inbitWidthbits.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 }
View on GitHub