SELECTOR

Like a CONSTANT, the L2SelectorOperand holds the actual AvailObject, but it is known to be an A_Bundle. The L2Chunk depends on this bundle, invalidating itself if its definitions change.

Functions

Link copied to clipboard
fun named(roleName: String): L2NamedOperandType

Create a L2NamedOperandType from the receiver and a String naming its role within some L2Operation.

fun named(roleName: String, purpose: L2NamedOperandType.Purpose): L2NamedOperandType

Create a L2NamedOperandType from the receiver, a String naming its role within some L2Operation, and a designator of its purpose. The purpose is used to designate branch edges, and correlate them to register writes that only happen if the corresponding edge is taken.

Properties

Link copied to clipboard
val canHavePurpose: Boolean = false

Whether this kind of operand can have a Purpose.

Link copied to clipboard
val name: String
Link copied to clipboard
val ordinal: Int