Class PolicyImpl

    • Constructor Detail

      • PolicyImpl

        public PolicyImpl​(List<CompileTimePass> compileTimePasses,
                          Set<RunTimePass<?>> runTimePasses)
        Constructor.
        Parameters:
        compileTimePasses - compile time passes of the policy.
        runTimePasses - run time passes of the policy.
    • Method Detail

      • runCompileTimeOptimization

        public IRDAG runCompileTimeOptimization​(IRDAG dag,
                                                String dagDirectory)
        Description copied from interface: Policy
        Optimize the DAG with the compile-time optimizations.
        Specified by:
        runCompileTimeOptimization in interface Policy
        Parameters:
        dag - input DAG.
        dagDirectory - directory to save the DAG information.
        Returns:
        optimized DAG, reshaped or tagged with execution properties.
      • runRunTimeOptimizations

        public IRDAG runRunTimeOptimizations​(IRDAG irdag,
                                             Message message)
        Description copied from interface: Policy
        Optimize the DAG with the run-time optimizations.
        Specified by:
        runRunTimeOptimizations in interface Policy
        Parameters:
        irdag - input DAG.
        message - from the DAG execution.
        Returns:
        optimized DAG, reshaped or tagged with execution properties.