Loading...
Searching...
No Matches
DebugToFile.h
Go to the documentation of this file.
#ifndef HALIDE_DEBUG_TO_FILE_H
#define HALIDE_DEBUG_TO_FILE_H
/** \file
* Defines the lowering pass that injects code at the end of
* every realization to dump functions to a file for debugging. */
#include <map>
#include <vector>
#include "Expr.h"
namespace Halide {
namespace Internal {
class Function;
/** Takes a statement with Realize nodes still unlowered. If the
* corresponding functions have a debug_file set, then inject code
* that will dump the contents of those functions to a file after the
* realization. */
Stmt debug_to_file(Stmt s,
const std::vector<Function> &outputs,
const std::map<std::string, Function> &env);
} // namespace Internal
} // namespace Halide
#endif
Expr.h
Base classes for Halide expressions (Halide::Expr) and statements (Halide::Internal::Stmt).
Halide::Internal::Function
A reference-counted handle to Halide's internal representation of a function.
Definition Function.h:39
Halide::Internal
Definition AbstractGenerator.h:24
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::Internal::Stmt
A reference-counted handle to a statement node.
Definition Expr.h:427