Halide 19.0.0
Halide compiler and libraries
Loading...
Searching...
No Matches
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
13namespace Halide {
14namespace Internal {
15
16class 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. */
23 const std::vector<Function> &outputs,
24 const std::map<std::string, Function> &env);
25
26} // namespace Internal
27} // namespace Halide
28
29#endif
Base classes for Halide expressions (Halide::Expr) and statements (Halide::Internal::Stmt)
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.
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