named

fun named(roleName: String): L2NamedOperandType

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

Return

A named operand type.

Parameters

roleName

The name of this operand.


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.

Return

A named operand type.

Parameters

roleName

The name of this operand.

purpose

The Purpose that best describes the L2NamedOperandType.