1#ifndef HALIDE_CLAMPUNSAFEACCESSES_H
2#define HALIDE_CLAMPUNSAFEACCESSES_H
Methods for computing the upper and lower bounds of an expression, and the regions of a function read...
Base classes for Halide expressions (Halide::Expr) and statements (Halide::Internal::Stmt)
Defines the internal representation of a halide function and related classes.
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:
std::map< std::pair< std::string, int >, Interval > FuncValueBounds
A reference-counted handle to a statement node.