Class IRStructureWalk
java.lang.Object
org.ek9lang.compiler.ir.support.IRStructureWalk
THE structured walk of the IR: every instruction, in every nested list, in rendering order, with each nested list's
role and
CompositeInstr.Activation (once, or once per loop iteration). Use this - never a private recursion
over composites - for any analysis that must see the whole of an operation: the ownership rules, the ARC balance
verifier, the lowering. A composite's lists come from the composite itself (CompositeInstr.nestedLists()).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceWhat a walk tells its visitor. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidwalk(List<IRInstr> instructions, IRStructureWalk.Visitor visitor) Walk an instruction list and everything nested in it.static voidwalk(BasicBlockInstr body, IRStructureWalk.Visitor visitor) Walk an operation body.
-
Method Details
-
walk
Walk an operation body. -
walk
Walk an instruction list and everything nested in it.
-