ConstantString
public struct ConstantString : Instruction
extension ConstantString: CustomStringConvertible
Creates the internal representation of constant string allocated statically.
The result is a 64-bit integer corresponding to the byte representation of a string in Hylo.
-
The value of the string, encoded in UTF-8.
Declaration
Swift
public let value: Data -
The site of the code corresponding to that instruction.
Declaration
Swift
public let site: SourceRange -
Creates an instance with the given properties.
Declaration
Swift
fileprivate init(value: Data, site: SourceRange) -
Declaration
Swift
public var result: IR.Type? { get } -
Declaration
Swift
public var operands: [Operand] { get } -
Declaration
Swift
public mutating func replaceOperand(at i: Int, with new: Operand) -
Declaration
Swift
public var description: String { get }
View on GitHub