getDefinition

fun <R : L2Register> getDefinition(semanticValue: L2SemanticValue, registerKind: L2Register.RegisterKind): R

Retrieve the oldest definition of the given L2SemanticValue or an equivalent, but having the given RegisterKind. Only consider registers whose definitions all include that semantic value. This should work well in SSA or non-SSA, but not after register coloring.

Return

The requested L2Register.

Parameters

R

The kind of L2Register to return.

semanticValue

The L2SemanticValue being examined.

registerKind

The RegisterKind of the desired register.