Halide 22.0.0 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
Expr.h
Base classes for Halide expressions (Halide::Expr) and statements (Halide::Internal::Stmt)
Halide::Internal::ArgInfoKind::Function
@ Function
Halide::Internal::debug_to_file
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.
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