|
Nearly CC
An educational compiler skeleton
|
Print a textual representation of a ControlFlowGraph. More...
#include "cfg_printer.h"
Public Member Functions | |
| ControlFlowGraphPrinter (const std::shared_ptr< ControlFlowGraph > &cfg, Formatter formatter=Formatter(), BlockAnnotator annotator=BlockAnnotator()) | |
| Constructor. More... | |
| void | print () |
| Print the ControlFlowGraph to the standard output. | |
Print a textual representation of a ControlFlowGraph.
| Formatter | the Formatter to use for converting an Instruction to its textual representation (either HighLevelFormatter or LowLevelFormatter) |
| BlockAnnotator | the annotator to use to annotate instructions |
| ControlFlowGraphPrinter< Formatter, BlockAnnotator >::ControlFlowGraphPrinter | ( | const std::shared_ptr< ControlFlowGraph > & | cfg, |
| Formatter | formatter = Formatter(), |
||
| BlockAnnotator | annotator = BlockAnnotator() |
||
| ) |
Constructor.
| cfg | shared pointer to the ControlFlowGraph to print |
| formatter | the Formatter to use |
| annotator | the annotator to use to annotate basic blocks |