1 #ifndef HALIDE_CLAMPUNSAFEACCESSES_H 2 #define HALIDE_CLAMPUNSAFEACCESSES_H 23 #endif // HALIDE_CLAMPUNSAFEACCESSES_H
Base classes for Halide expressions (Halide::Expr) and statements (Halide::Internal::Stmt) ...
Methods for computing the upper and lower bounds of an expression, and the regions of a function read...
Defines the internal representation of a halide function and related classes.
std::map< std::pair< std::string, int >, Interval > FuncValueBounds
Stmt clamp_unsafe_accesses(const Stmt &s, const std::map< std::string, Function > &env, FuncValueBounds &func_bounds)
Inject clamps around func calls h(...) when all the following conditions hold: