Halide
Tracing.h
Go to the documentation of this file.
1 #ifndef HALIDE_TRACING_H
2 #define HALIDE_TRACING_H
3 
4 /** \file
5  * Defines the lowering pass that injects print statements when tracing is turned on
6  */
7 
8 #include <map>
9 #include <string>
10 #include <vector>
11 
12 #include "Expr.h"
13 #include "Target.h"
14 
15 namespace Halide {
16 namespace Internal {
17 
18 class Function;
19 
20 /** Take a statement representing a halide pipeline, inject calls to
21  * tracing functions at interesting points, such as
22  * allocations. Should be done before storage flattening, but after
23  * all bounds inference. */
24 Stmt inject_tracing(Stmt, const std::string &pipeline_name,
25  bool trace_pipeline,
26  const std::map<std::string, Function> &env,
27  const std::vector<Function> &outputs,
28  const Target &Target);
29 
30 } // namespace Internal
31 } // namespace Halide
32 
33 #endif
Target.h
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.
Halide::Internal::IOKind::Function
@ Function
Expr.h
Halide::Internal::inject_tracing
Stmt inject_tracing(Stmt, const std::string &pipeline_name, bool trace_pipeline, const std::map< std::string, Function > &env, const std::vector< Function > &outputs, const Target &Target)
Take a statement representing a halide pipeline, inject calls to tracing functions at interesting poi...