Halide  12.0.1
Halide compiler and libraries
RemoveDeadAllocations.h
Go to the documentation of this file.
1 #ifndef HALIDE_REMOVE_DEAD_ALLOCATIONS_H
2 #define HALIDE_REMOVE_DEAD_ALLOCATIONS_H
3 
4 /** \file
5  * Defines the lowering pass that removes allocate and free nodes that
6  * are not used.
7  */
8 
9 #include "Expr.h"
10 
11 namespace Halide {
12 namespace Internal {
13 
14 /** Find Allocate/Free pairs that are never loaded from or stored to,
15  * and remove them from the Stmt. This doesn't touch Realize/Call
16  * nodes and so must be called after storage_flattening.
17  */
19 
20 } // namespace Internal
21 } // namespace Halide
22 
23 #endif
Base classes for Halide expressions (Halide::Expr) and statements (Halide::Internal::Stmt)
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.
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:413