Revision 8f6473498dc1d3bc00a3f6ddc4017ba2b193c5db authored by Dillon Sharlet on 15 February 2021, 21:10:43 UTC, committed by Dillon Sharlet on 15 February 2021, 21:10:43 UTC
EarlyFree.h
#ifndef HALIDE_EARLY_FREE_H
#define HALIDE_EARLY_FREE_H
/** \file
* Defines the lowering pass that injects markers just after
* the last use of each buffer so that they can potentially be freed
* earlier.
*/
#include "Expr.h"
namespace Halide {
namespace Internal {
/** Take a statement with allocations and inject markers (of the form
* of calls to "mark buffer dead") after the last use of each
* allocation. Targets may use this to free buffers earlier than the
* close of their Allocate node. */
Stmt inject_early_frees(const Stmt &s);
} // namespace Internal
} // namespace Halide
#endif
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...