Halide 19.0.0
Halide compiler and libraries
Loading...
Searching...
No Matches
SlidingWindow.h
Go to the documentation of this file.
1#ifndef HALIDE_SLIDING_WINDOW_H
2#define HALIDE_SLIDING_WINDOW_H
3
4/** \file
5 *
6 * Defines the sliding_window lowering optimization pass, which avoids
7 * computing provably-already-computed values.
8 */
9
10#include <map>
11#include <string>
12
13#include "Expr.h"
14
15namespace Halide {
16namespace Internal {
17
18class Function;
19
20/** Perform sliding window optimizations on a halide
21 * statement. I.e. don't bother computing points in a function that
22 * have provably already been computed by a previous iteration.
23 */
24Stmt sliding_window(const Stmt &s, const std::map<std::string, Function> &env);
25
26} // namespace Internal
27} // namespace Halide
28
29#endif
Base classes for Halide expressions (Halide::Expr) and statements (Halide::Internal::Stmt)
Stmt sliding_window(const Stmt &s, const std::map< std::string, Function > &env)
Perform sliding window optimizations on a halide statement.
This file defines the class FunctionDAG, which is our representation of a Halide pipeline,...
@ Internal
Not visible externally, similar to 'static' linkage in C.
A reference-counted handle to a statement node.
Definition Expr.h:427