Reduct  v4.0.5-1-g4851deb
A functional and immutable language.
Loading...
Searching...
No Matches
dump.h
Go to the documentation of this file.
1#ifndef REDUCT_DUMP_H
2#define REDUCT_DUMP_H 1
3
4#include <reduct/core.h>
5
6/**
7 * @file dump.h
8 * @brief Dumping and disassembly.
9 * @defgroup dump Dumping
10 *
11 * @{
12 */
13
14/**
15 * @brief Dump a compiled function to a file stream.
16 *
17 * @param reduct Pointer to the Reduct structure.
18 * @param function Handle to the compiled function.
19 * @param out The output file stream to write the disassembly to.
20 */
21REDUCT_API void reduct_dump_function(reduct_t* reduct, reduct_handle_t function, FILE* out);
22
23/**
24 * @brief Dump an IR graph to a file stream.
25 *
26 * @param reduct Pointer to the Reduct structure.
27 * @param graph Pointer to the IR graph.
28 * @param out The output file stream.
29 */
30REDUCT_API void reduct_dump_rvsdg(struct reduct* reduct, reduct_handle_t graph, FILE* out);
31
32/** @} */
33
34#endif
Core definitions and structures.
#define REDUCT_API
Definition defs.h:24
REDUCT_API void reduct_dump_rvsdg(struct reduct *reduct, reduct_handle_t graph, FILE *out)
Dump an IR graph to a file stream.
REDUCT_API void reduct_dump_function(reduct_t *reduct, reduct_handle_t function, FILE *out)
Dump a compiled function to a file stream.
Handle type.
Definition defs.h:119
Per-thread state structure.
Definition core.h:133