https://github.com/halide/Halide
Raw File
Tip revision: fd35c683103793fab5b55c9bfedc7c89a190df2a authored by Ron Lieberman on 04 September 2017, 00:24:52 UTC
Modify runtimes to display profile command when PACKET_ANALYZE is enabled
Tip revision: fd35c68
ScheduleFunctions.h
#ifndef HALIDE_INTERNAL_SCHEDULE_FUNCTIONS_H
#define HALIDE_INTERNAL_SCHEDULE_FUNCTIONS_H

/** \file
 *
 * Defines the function that does initial lowering of Halide Functions
 * into a loop nest using its schedule. The first stage of lowering.
 */

#include <map>

#include "IR.h"

namespace Halide {

struct Target;

namespace Internal {

class Function;

/** Build loop nests and inject Function realizations at the
 * appropriate places using the schedule. Returns a flag indicating
 * whether memoization passes need to be run. */
Stmt schedule_functions(const std::vector<Function> &outputs,
                        const std::vector<std::string> &order,
                        const std::map<std::string, Function> &env,
                        const Target &target,
                        bool &any_memoized);


}
}

#endif
back to top