Halide 22.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
11 namespace Halide {
12 namespace 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. */
19 Stmt bound_constant_extent_loops(const Stmt &s);
20
21} // namespace Internal
22} // namespace Halide
23
24#endif
Expr.h
Base classes for Halide expressions (Halide::Expr) and statements (Halide::Internal::Stmt)
Halide::Internal::bound_constant_extent_loops
Stmt bound_constant_extent_loops(const Stmt &s)
Replace all loop extents of unrolled or vectorized loops with constants, by substituting and simplify...
Halide
This file defines the class FunctionDAG, which is our representation of a Halide pipeline,...
Definition AbstractGenerator.h:19
Halide::LinkageType::Internal
@ Internal
Not visible externally, similar to 'static' linkage in C.
Halide::cast
Internal::ConstantInterval cast(Type t, const Internal::ConstantInterval &a)
Cast operators for ConstantIntervals.
Halide::Internal::Stmt
A reference-counted handle to a statement node.
Definition Expr.h:427