https://github.com/halide/Halide
Raw File
Tip revision: fc4a3c65da381c1130d2ee7908c33ed5c67a3732 authored by Volodymyr Kysenko on 14 February 2023, 19:55:15 UTC
Generate PACKVRNR for i16(i32(i48x) >> wild_i32)
Tip revision: fc4a3c6
SlidingWindow.h
#ifndef HALIDE_SLIDING_WINDOW_H
#define HALIDE_SLIDING_WINDOW_H

/** \file
 *
 * Defines the sliding_window lowering optimization pass, which avoids
 * computing provably-already-computed values.
 */

#include <map>
#include <string>

#include "Expr.h"

namespace Halide {
namespace Internal {

class Function;

/** Perform sliding window optimizations on a halide
 * statement. I.e. don't bother computing points in a function that
 * have provably already been computed by a previous iteration.
 */
Stmt sliding_window(const Stmt &s, const std::map<std::string, Function> &env);

}  // namespace Internal
}  // namespace Halide

#endif
back to top