shouldEmit

open fun shouldEmit(instruction: L2Instruction): Boolean

Answer whether an instruction using this operation should be emitted during final code generation. For example, a move between registers with the same finalIndex can be left out during code generation, although it can't actually be removed before then.

Return

A boolean indicating if this operation should be emitted.

Parameters

instruction

The instruction containing this operation.