Halide 22.0.0 Halide compiler and libraries

Loading...
Searching...
No Matches
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
Expr.h
Base classes for Halide expressions (Halide::Expr) and statements (Halide::Internal::Stmt)
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::LinkageType::Internal
@ Internal
Not visible externally, similar to 'static' linkage in C.
Halide::cast
Internal::ConstantInterval cast(Type t, const Internal::ConstantInterval &a)
Cast operators for ConstantIntervals.
Halide::Internal::Stmt
A reference-counted handle to a statement node.
Definition Expr.h:427