Revision cd95b27d6b969a1da8337ba820ad8d0c50884bff authored by Steven Johnson on 27 July 2018, 16:56:13 UTC, committed by GitHub on 27 July 2018, 16:56:13 UTC
Rework runtime to allow more than 64 Target::Features (Issue #2911)
FindCalls.h
#ifndef FIND_CALLS_H
#define FIND_CALLS_H
/** \file
*
* Defines analyses to extract the functions called a function.
*/
#include <map>
#include "IR.h"
namespace Halide {
namespace Internal {
/** Construct a map from name to Function definition object for all Halide
* functions called directly in the definition of the Function f, including
* in update definitions, update index expressions, and RDom extents. This map
* _does not_ include the Function f, unless it is called recursively by
* itself.
*/
std::map<std::string, Function> find_direct_calls(Function f);
/** Construct a map from name to Function definition object for all Halide
* functions called directly in the definition of the Function f, or
* indirectly in those functions' definitions, recursively. This map always
* _includes_ the Function f.
*/
std::map<std::string, Function> find_transitive_calls(Function f);
/** Find all Functions transitively referenced by f in any way and add
* them to the given map. */
void populate_environment(Function f, std::map<std::string, Function> &env);
} // namespace Internal
} // namespace Halide
#endif
Computing file changes ...