A CG writer in the dot
format (graphviz
).
More...
#include <graphviz_cg_writer.h>
|
virtual std::string | getId () const override |
| Returns the ID of the writer. More...
|
|
virtual bool | emitCG () override |
| Emits the given CG into the given output stream. More...
|
|
virtual | ~CGWriter ()=default |
|
A CG writer in the dot
format (graphviz
).
For more information on the dot
format, see http://www.graphviz.org/.
Use create() to create instances. Instances of this class have reference object semantics.
◆ NodeLabelMapping
Mapping between a node and its label.
◆ GraphvizCGWriter()
retdec::llvmir2hll::GraphvizCGWriter::GraphvizCGWriter |
( |
ShPtr< CG > |
cg, |
|
|
std::ostream & |
out |
|
) |
| |
|
private |
Constructs a new graphviz CG writer.
See create() for the description of parameters.
◆ create()
ShPtr< CGWriter > retdec::llvmir2hll::GraphvizCGWriter::create |
( |
ShPtr< CG > |
cg, |
|
|
std::ostream & |
out |
|
) |
| |
|
static |
Creates a new graphviz CG writer.
- Parameters
-
[in] | cg | CG to be emitted. |
[in] | out | Output stream into which the CG will be emitted. |
◆ emitCG()
bool retdec::llvmir2hll::GraphvizCGWriter::emitCG |
( |
| ) |
|
|
overridevirtual |
Emits the given CG into the given output stream.
The format of the written data depends on the subclass of this class.
- Returns
true
if some code has been emitted, false
otherwise.
Implements retdec::llvmir2hll::CGWriter.
◆ emitNode()
Emits the node given by caller and callees.
◆ getId()
std::string retdec::llvmir2hll::GraphvizCGWriter::getId |
( |
| ) |
const |
|
overridevirtual |
◆ getNodeLabelForFunc()
std::string retdec::llvmir2hll::GraphvizCGWriter::getNodeLabelForFunc |
( |
ShPtr< Function > |
func | ) |
|
|
private |
Returns a node label for the given function.
The documentation for this class was generated from the following files:
- /var/cache/acbs/build/acbs.6bu6osb6/retdec/include/retdec/llvmir2hll/graphs/cg/cg_writers/graphviz_cg_writer.h
- /var/cache/acbs/build/acbs.6bu6osb6/retdec/src/llvmir2hll/graphs/cg/cg_writers/graphviz_cg_writer.cpp