Class Pass

  • Direct Known Subclasses:
    CompileTimePass, RunTimePass

    public abstract class Pass
    extends java.lang.Object
    Abstract class for optimization passes. All passes basically extends this class.
    • Constructor Summary

      Constructors 
      Constructor Description
      Pass()
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Pass addCondition​(java.util.function.Predicate<IRDAG> newCondition)
      Add the condition to the existing condition to run the pass.
      java.util.function.Predicate<IRDAG> getCondition()
      Getter for the condition under which to apply the pass.
      • Methods inherited from class java.lang.Object

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

      • Pass

        public Pass()
        Default constructor.
    • Method Detail

      • getCondition

        public final java.util.function.Predicate<IRDAG> getCondition()
        Getter for the condition under which to apply the pass.
        Returns:
        the condition under which to apply the pass.
      • addCondition

        public final Pass addCondition​(java.util.function.Predicate<IRDAG> newCondition)
        Add the condition to the existing condition to run the pass.
        Parameters:
        newCondition - the new condition to add to the existing condition.
        Returns:
        the condition with the new condition added.