Halide 19.0.0
Halide compiler and libraries
Loading...
Searching...
No Matches
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
14namespace Halide {
15
16struct Target;
17
18namespace Internal {
19
20class Function;
21
22/** Take a statement representing a halide pipeline, inject calls to
23 * tracing functions at interesting points, such as
24 * allocations. Should be done before storage flattening, but after
25 * all bounds inference. */
26Stmt inject_tracing(Stmt, const std::string &pipeline_name,
27 bool trace_pipeline,
28 const std::map<std::string, Function> &env,
29 const std::vector<Function> &outputs,
30 const Target &Target);
31
32} // namespace Internal
33} // namespace Halide
34
35#endif
Base classes for Halide expressions (Halide::Expr) and statements (Halide::Internal::Stmt)
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...
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:427
A struct representing a target machine and os to generate code for.
Definition Target.h:19