Halide 22.0.0 Halide compiler and libraries

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
14 namespace Halide {
15
16 struct Target;
17
18 namespace Internal {
19
20 class 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. */
26 Stmt 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
Expr.h
Base classes for Halide expressions (Halide::Expr) and statements (Halide::Internal::Stmt)
Halide::Internal::ArgInfoKind::Function
@ Function
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...
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::Internal::Stmt
A reference-counted handle to a statement node.
Definition: Expr.h:427
Halide::Target
A struct representing a target machine and os to generate code for.
Definition: Target.h:19