Halide
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  */
18 Stmt remove_dead_allocations(const Stmt &s);
19 
20 } // namespace Internal
21 } // namespace Halide
22 
23 #endif
Halide
This file defines the class FunctionDAG, which is our representation of a Halide pipeline,...
Definition: AddAtomicMutex.h:21
Halide::LinkageType::Internal
@ Internal
Not visible externally, similar to 'static' linkage in C.
Expr.h
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.