L2NamedOperandType

class L2NamedOperandType

An L2NamedOperandType is used to specify both an L2OperandType and a String naming its purpose with respect to some L2Operation. This effectively allows operations to declare named operands, increasing the descriptiveness of the level two instruction set. The names are not used in any way at runtime.

Author

Mark van Gulik

Todd L Smith

Parameters

operandType

The L2OperandType to wrap.

name

The name of this operand.

purpose

The Purpose that best describes the L2NamedOperandType, if any.

Types

Link copied to clipboard
enum Purpose : Enum<L2NamedOperandType.Purpose>

A Purpose specifies additional semantic meaning for an L2NamedOperandType.

Functions

Link copied to clipboard
fun name(): String

Answer the String that names the receiver.

Link copied to clipboard
fun operandType(): L2OperandType

Answer the L2OperandType that this decorates.

Link copied to clipboard
fun purpose(): L2NamedOperandType.Purpose?

Answer the Purpose that best describes the L2NamedOperandType, if any.

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val name: String

The String that names the receiver within an L2Operation.

Link copied to clipboard
val operandType: L2OperandType

The L2OperandType that the receiver decorates.

Link copied to clipboard
val purpose: L2NamedOperandType.Purpose?

The Purpose that best describes the L2NamedOperandType, if any.