|
Nearly CC
An educational compiler skeleton
|
Control-flow graph edge data type. More...
#include "cfg.h"
Public Member Functions | |
| Edge (std::shared_ptr< InstructionSequence > source, std::shared_ptr< InstructionSequence > target, EdgeKind kind) | |
| Constructor. More... | |
| EdgeKind | get_kind () const |
| Get the EdgeKind of this Edge. More... | |
| std::shared_ptr< InstructionSequence > | get_source () const |
| Get the source basic block. More... | |
| std::shared_ptr< InstructionSequence > | get_target () const |
| Get the target basic block. More... | |
Control-flow graph edge data type.
An Edge is a predecessor/successor connection between a source basic block and a target basic block.
| Edge::Edge | ( | std::shared_ptr< InstructionSequence > | source, |
| std::shared_ptr< InstructionSequence > | target, | ||
| EdgeKind | kind | ||
| ) |
Constructor.
| source | the source basic block |
| target | the target basic block |
| EdgeKind | the kind of control edge |
|
inline |
|
inline |
Get the source basic block.
|
inline |
Get the target basic block.