instructionWasAdded

open fun instructionWasAdded(instruction: L2Instruction, manifest: L2ValueManifest)

This is the operation for the given instruction, which was just added to its basic block. Do any post-processing appropriate for having added the instruction. Its operands have already had their instruction fields set to the given instruction.

Automatically handle L2WriteOperands that list a L2NamedOperandType.Purpose in their corresponding L2NamedOperandType, ensuring the write is only considered to happen along the edge (L2PcOperand) having the same purpose. Subclasses may want to do additional postprocessing.

Parameters

instruction

The L2Instruction that was just added.

manifest

The L2ValueManifest that is active at this instruction.