readOperand

abstract fun <R : L2Register, RR : L2ReadOperand<R>> readOperand(semanticValue: L2SemanticValue, restriction: TypeRestriction, register: R): RR

Answer a suitable L2ReadOperand for extracting the indicated L2SemanticValue of this kind.

Return

The new L2ReadOperand.

Parameters

semanticValue

The L2SemanticValue to consume via an L2ReadOperand.

restriction

The TypeRestriction relevant to this read.

register

The earliest known defining L2Register of the L2SemanticValue.

R

The L2Register subclass.

RR

The L2ReadOperand subclass.