writesForPurposeDo

fun writesForPurposeDo(purpose: L2NamedOperandType.Purpose, consumer: (L2WriteOperand<*>) -> Unit)

Evaluate the given function with each L2WriteOperand having the given L2NamedOperandType.Purpose, which correlates with the Purpose along each outbound edge to indicate which writes have effect along which outbound edges.

This is only applicable to an instruction which altersControlFlow

Parameters

purpose

The L2NamedOperandType.Purpose with which to filter L2WriteOperands.

consumer

The lambda to evaluate with each L2WriteOperand having the given L2NamedOperandType.Purpose.