Revision 2c48ba87ac173341f641479cb711f6f755d48e93 authored by Volodymyr Kysenko on 08 December 2023, 21:58:37 UTC, committed by Volodymyr Kysenko on 08 December 2023, 21:58:37 UTC
1 parent d84e3a6
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
Computing file changes ...