Loading...
Searching...
No Matches
RemoveDeadAllocations.h
Go to the documentation of this file.
#ifndef HALIDE_REMOVE_DEAD_ALLOCATIONS_H
#define HALIDE_REMOVE_DEAD_ALLOCATIONS_H
/** \file
* Defines the lowering pass that removes allocate and free nodes that
* are not used.
*/
#include "Expr.h"
namespace Halide {
namespace Internal {
/** Find Allocate/Free pairs that are never loaded from or stored to,
* and remove them from the Stmt. This doesn't touch Realize/Call
* nodes and so must be called after storage_flattening.
*/
Stmt remove_dead_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::remove_dead_allocations
Stmt remove_dead_allocations(const Stmt &s)
Find Allocate/Free pairs that are never loaded from or stored to, and remove them from the Stmt.
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