Loading...
Searching...
No Matches
BoundSmallAllocations.h
Go to the documentation of this file.
#ifndef HALIDE_BOUND_SMALL_ALLOCATIONS
#define HALIDE_BOUND_SMALL_ALLOCATIONS
#include "Expr.h"
/** \file
* Defines the lowering pass that attempts to rewrite small
* allocations to have constant size.
*/
namespace Halide {
namespace Internal {
/** \file
*
* Use bounds analysis to attempt to bound the sizes of small
* allocations. Inside GPU kernels this is necessary in order to
* compile. On the CPU this is also useful, because it prevents malloc
* calls for (provably) tiny allocations. */
Stmt bound_small_allocations(const Stmt &s);
} // namespace Internal
} // namespace Halide
#endif
Expr.h
Base classes for Halide expressions (Halide::Expr) and statements (Halide::Internal::Stmt).
Halide::Internal
Definition AbstractGenerator.h:24
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::Internal::Stmt
A reference-counted handle to a statement node.
Definition Expr.h:427