Class Pass

  • Direct Known Subclasses:
    CompileTimePass, RunTimePass

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

      • Pass

        public Pass()
        Default constructor.
    • Method Detail

      • getCondition

        public final 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​(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.