|
Nearly CC
An educational compiler skeleton
|
Default annotator for printing a control flow graph. More...
#include "cfg_printer.h"


Public Member Functions | |
| virtual std::string | get_block_begin_annotation (std::shared_ptr< InstructionSequence > bb) const |
| Get a begin annotation for a basic block. More... | |
| virtual std::string | get_block_end_annotation (std::shared_ptr< InstructionSequence > bb) const |
| Get an end annotation for a basic block. More... | |
| std::string | get_instruction_annotation (std::shared_ptr< InstructionSequence > iseq, Instruction *ins) const |
Default annotator for printing a control flow graph.
Uses DefaultInstructionAnnotator for instruction annotations, and returns empty begin and end annotations for basic blocks.
|
inlinevirtual |
Get a begin annotation for a basic block.
For example, this could be overridden to return a textual representation of the dataflow fact at the beginning of the basic block.
| bb | the basic block |
|
inlinevirtual |
Get an end annotation for a basic block.
For example, this could be overridden to return a textual representation of the dataflow fact at the end of the basic block.
| bb | the basic block |