Class IPAPass

    • Constructor Detail

      • IPAPass

        public IPAPass()
    • Method Detail

      • isApplicable

        public abstract boolean isApplicable​(FunctionCallGraph fgraph)
        Indicates if an IPA pass is applicable for the current configuration such as global flags or the chosen execution mode (e.g., HYBRID).
        fgraph - function call graph
        true if applicable.
      • rewriteProgram

        public abstract boolean rewriteProgram​(DMLProgram prog,
                                               FunctionCallGraph fgraph,
                                               FunctionCallSizeInfo fcallSizes)
        Rewrites the given program or its functions in place, with access to the read-only function call graph.
        prog - dml program
        fgraph - function call graph
        fcallSizes - function call size infos
        true if function call graph should be rebuild