Halide 19.0.0
Halide compiler and libraries
Loading...
Searching...
No Matches
BoundConstantExtentLoops.h
Go to the documentation of this file.
1#ifndef HALIDE_BOUND_CONSTANT_EXTENT_LOOPS_H
2#define HALIDE_BOUND_CONSTANT_EXTENT_LOOPS_H
3
4/** \file
5 * Defines the lowering pass that enforces a constant extent on all
6 * vectorized or unrolled loops.
7 */
8
9#include "Expr.h"
10
11namespace Halide {
12namespace Internal {
13
14/** Replace all loop extents of unrolled or vectorized loops with constants, by
15 * substituting and simplifying as needed. If we can't determine a constant
16 * extent, but can determine a constant upper bound, inject an if statement into
17 * the body. If we can't even determine a constant upper bound, throw a user
18 * error. */
20
21} // namespace Internal
22} // namespace Halide
23
24#endif
Base classes for Halide expressions (Halide::Expr) and statements (Halide::Internal::Stmt)
Stmt bound_constant_extent_loops(const Stmt &s)
Replace all loop extents of unrolled or vectorized loops with constants, by substituting and simplify...
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