Halide 22.0.0 Halide compiler and libraries

BoundSmallAllocations.h
Go to the documentation of this file.
1#ifndef HALIDE_BOUND_SMALL_ALLOCATIONS
2#define HALIDE_BOUND_SMALL_ALLOCATIONS
3
4#include "Expr.h"
5
6/** \file
7 * Defines the lowering pass that attempts to rewrite small
8 * allocations to have constant size.
9 */
10
11namespace Halide {
12namespace Internal {
13
14/** \file
15 *
16 * Use bounds analysis to attempt to bound the sizes of small
17 * allocations. Inside GPU kernels this is necessary in order to
18 * compile. On the CPU this is also useful, because it prevents malloc
19 * calls for (provably) tiny allocations. */
20 Stmt bound_small_allocations(const Stmt &s);
21
22} // namespace Internal
23} // namespace Halide
24
25#endif
Expr.h
Base classes for Halide expressions (Halide::Expr) and statements (Halide::Internal::Stmt)
Halide::Internal::bound_small_allocations
Stmt bound_small_allocations(const Stmt &s)
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::Internal::Stmt
A reference-counted handle to a statement node.
Definition: Expr.h:427