Class AbstractBlockOrder

  • All Implemented Interfaces:
    BlockOrder
    Direct Known Subclasses:
    ReverseDFSOrder, ReversePostOrder

    public abstract class AbstractBlockOrder
    extends java.lang.Object
    implements BlockOrder
    Abstract base class for BlockOrder variants. It allows the subclass to specify just a Comparator for BasicBlocks, and handles the work of doing the sorting and providing Iterators.
    See Also:
    BlockOrder
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Iterator<BasicBlock> blockIterator()
      Return an Iterator which visits the basic blocks in order.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractBlockOrder

        public AbstractBlockOrder​(CFG cfg,
                                  java.util.Comparator<BasicBlock> comparator)
    • Method Detail

      • blockIterator

        public java.util.Iterator<BasicBlock> blockIterator()
        Description copied from interface: BlockOrder
        Return an Iterator which visits the basic blocks in order.
        Specified by:
        blockIterator in interface BlockOrder