Revision 22f9bb9247b3e384bbd9d8e7ff96501a29b49265 authored by Steven Johnson on 17 January 2024, 16:26:43 UTC, committed by GitHub on 17 January 2024, 16:26:43 UTC
Tweak correctness_float16_t so that it uses one of the transcendal functions (sqrt) that were missing in Metal.
1 parent 3a77204
Raw File
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