Halide 19.0.0
Halide compiler and libraries
Loading...
Searching...
No Matches
EarlyFree.h
Go to the documentation of this file.
1#ifndef HALIDE_EARLY_FREE_H
2#define HALIDE_EARLY_FREE_H
3
4/** \file
5 * Defines the lowering pass that injects markers just after
6 * the last use of each buffer so that they can potentially be freed
7 * earlier.
8 */
9
10#include "Expr.h"
11
12namespace Halide {
13namespace Internal {
14
15/** Take a statement with allocations and inject markers (of the form
16 * of calls to "mark buffer dead") after the last use of each
17 * allocation. Targets may use this to free buffers earlier than the
18 * close of their Allocate node. */
20
21} // namespace Internal
22} // namespace Halide
23
24#endif
Base classes for Halide expressions (Halide::Expr) and statements (Halide::Internal::Stmt)
Stmt inject_early_frees(const Stmt &s)
Take a statement with allocations and inject markers (of the form of calls to "mark buffer dead") aft...
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