Loading...
Searching...
No Matches
SkipStages.h
Go to the documentation of this file.
#ifndef HALIDE_SKIP_STAGES
#define HALIDE_SKIP_STAGES
#include <map>
#include <string>
#include <vector>
#include "Expr.h"
/** \file
* Defines a pass that dynamically avoids realizing unnecessary stages.
*/
namespace Halide {
namespace Internal {
class Function;
/** Avoid computing certain stages if we can infer a runtime condition
* to check that tells us they won't be used. Does this by analyzing
* all reads of each buffer allocated, and inferring some condition
* that tells us if the reads occur. If the condition is non-trivial,
* inject ifs that guard the production. */
Stmt skip_stages(const Stmt &s,
const std::vector<Function> &outputs,
const std::vector<std::vector<std::string>> &order,
const std::map<std::string, Function> &env);
} // namespace Internal
} // namespace Halide
#endif
Expr.h
Base classes for Halide expressions (Halide::Expr) and statements (Halide::Internal::Stmt).
Halide::Internal::Function
A reference-counted handle to Halide's internal representation of a function.
Definition Function.h:39
Halide::Internal
Definition AbstractGenerator.h:24
Halide::Internal::skip_stages
Stmt skip_stages(const Stmt &s, const std::vector< Function > &outputs, const std::vector< std::vector< std::string > > &order, const std::map< std::string, Function > &env)
Avoid computing certain stages if we can infer a runtime condition to check that tells us they won't ...
Halide
This file defines the class FunctionDAG, which is our representation of a Halide pipeline,...
Definition AbstractGenerator.h:19
Halide::Internal::Stmt
A reference-counted handle to a statement node.
Definition Expr.h:427