Halide
StmtToViz.h
Go to the documentation of this file.
1 #ifndef HALIDE_STMT_TO_VIZ
2 #define HALIDE_STMT_TO_VIZ
3 
4 /** \file
5  * Defines a function to dump an HTML-formatted visualization to a file.
6  */
7 
8 #include <string>
9 
10 namespace Halide {
11 
12 class Module;
13 
14 namespace Internal {
15 
16 struct Stmt;
17 
18 /** Dump an HTML-formatted visualization of a Module to filename.
19  * If assembly_input_filename is not empty, it is expected to be the path
20  * to assembly output. If empty, the code will attempt to find such a
21  * file based on output_filename (replacing ".stmt.html" with ".s"),
22  * and will assert-fail if no such file is found. */
23 void print_to_viz(const std::string &html_output_filename,
24  const Module &m,
25  const std::string &assembly_input_filename = "");
26 
27 } // namespace Internal
28 } // namespace Halide
29 
30 #endif
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::print_to_viz
void print_to_viz(const std::string &html_output_filename, const Module &m, const std::string &assembly_input_filename="")
Dump an HTML-formatted visualization of a Module to filename.