Halide 16.0.0
Halide compiler and libraries
Loading...
Searching...
No Matches
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
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_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
A halide module.
Definition Module.h:138
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.
This file defines the class FunctionDAG, which is our representation of a Halide pipeline,...
@ Internal
Not visible externally, similar to 'static' linkage in C.
Expr cast(Expr a)
Cast an expression to the halide type corresponding to the C++ type T.
Definition IROperator.h:358