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()).
Stateless: hold one.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceWhat a walk tells its visitor. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidwalk(List<IRInstr> instructions, IRStructureWalk.Visitor visitor) Walk an instruction list and everything nested in it.voidwalk(BasicBlockInstr body, IRStructureWalk.Visitor visitor) Walk an operation body.
-
Constructor Details
-
IRStructureWalk
public IRStructureWalk()
-
-
Method Details
-
walk
Walk an operation body. -
walk
Walk an instruction list and everything nested in it.
-