Halide 22.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
12 namespace Halide {
13 namespace 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. */
19 Stmt inject_early_frees(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::inject_early_frees
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...
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