|
Nearly CC
An educational compiler skeleton
|
Annotator to return a stringified dataflow fact for a specific instruction in a basic block. More...
#include "dataflow.h"
Public Member Functions | |
| DataflowAnnotator (DataflowType &dataflow) | |
| Constructor. More... | |
| std::string | get_instruction_annotation (std::shared_ptr< InstructionSequence > bb, Instruction *ins) const |
| 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... | |
Public Attributes | |
| DataflowType & | m_dataflow |
Annotator to return a stringified dataflow fact for a specific instruction in a basic block.
This can be used with ControlFlowGraphPrinter to annotate the printed control-flow graph with dataflow facts.
| the | type of the Dataflow object containing the analysis results |
|
inline |
Constructor.
| reference | to the Dataflow object containing the analysis results |
|
inlinevirtual |
Get a begin annotation for a basic block.
This will 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.
This will return a textual representation of the dataflow fact at the end of the basic block.
| bb | the basic block |