Halide  17.0.2
Halide compiler and libraries
DebugToFile.h
Go to the documentation of this file.
1 #ifndef HALIDE_DEBUG_TO_FILE_H
2 #define HALIDE_DEBUG_TO_FILE_H
3 
4 /** \file
5  * Defines the lowering pass that injects code at the end of
6  * every realization to dump functions to a file for debugging. */
7 
8 #include <map>
9 #include <vector>
10 
11 #include "Expr.h"
12 
13 namespace Halide {
14 namespace Internal {
15 
16 class Function;
17 
18 /** Takes a statement with Realize nodes still unlowered. If the
19  * corresponding functions have a debug_file set, then inject code
20  * that will dump the contents of those functions to a file after the
21  * realization. */
22 Stmt debug_to_file(Stmt s,
23  const std::vector<Function> &outputs,
24  const std::map<std::string, Function> &env);
25 
26 } // namespace Internal
27 } // namespace Halide
28 
29 #endif
This file defines the class FunctionDAG, which is our representation of a Halide pipeline, and contains methods to using Halide&#39;s bounds tools to query properties of it.
Stmt debug_to_file(Stmt s, const std::vector< Function > &outputs, const std::map< std::string, Function > &env)
Takes a statement with Realize nodes still unlowered.
Base classes for Halide expressions (Halide::Expr) and statements (Halide::Internal::Stmt) ...
Not visible externally, similar to &#39;static&#39; linkage in C.