Halide 19.0.0
Halide compiler and libraries
Loading...
Searching...
No Matches
StmtToHTML.h
Go to the documentation of this file.
1#ifndef HALIDE_STMT_TO_HTML
2#define HALIDE_STMT_TO_HTML
3
4/** \file
5 * Defines a function to dump an HTML-formatted visualization to a file.
6 */
7
8#include <string>
9
10namespace Halide {
11
12class Module;
13
14namespace Internal {
15
16struct 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. */
23void print_to_stmt_html(const std::string &html_output_filename,
24 const Module &m,
25 const std::string &assembly_input_filename = "");
26
27/** Dump an HTML-formatted visualization of a Module's conceptual Stmt code to filename.
28 * If assembly_input_filename is not empty, it is expected to be the path
29 * to assembly output. If empty, the code will attempt to find such a
30 * file based on output_filename (replacing ".stmt.html" with ".s"),
31 * and will assert-fail if no such file is found. */
32void print_to_conceptual_stmt_html(const std::string &html_output_filename,
33 const Module &m,
34 const std::string &assembly_input_filename = "");
35
36} // namespace Internal
37} // namespace Halide
38
39#endif
A halide module.
Definition Module.h:142
void print_to_conceptual_stmt_html(const std::string &html_output_filename, const Module &m, const std::string &assembly_input_filename="")
Dump an HTML-formatted visualization of a Module's conceptual Stmt code to filename.
void print_to_stmt_html(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.
This file defines the class FunctionDAG, which is our representation of a Halide pipeline,...
@ Internal
Not visible externally, similar to 'static' linkage in C.