Code Listener
[unstable] git snapshot
|
Control flow graph - an easy to analyse representation of the intermediate code. More...
#include <storage.hh>
Public Types | |
typedef TList::const_iterator | const_iterator |
typedef const_iterator | iterator |
Public Member Functions | |
ControlFlow () | |
~ControlFlow () | |
ControlFlow (const ControlFlow &) | |
shallow copy More... | |
ControlFlow & | operator= (const ControlFlow &) |
shallow copy More... | |
const Block * | entry () const |
return entry basic block More... | |
Block *& | operator[] (const char *name) |
look for a basic block by name, create one if not found More... | |
const Block * | operator[] (const char *name) const |
look for a basic block by name, crash if not found More... | |
const_iterator | begin () const |
return STL-like iterator to go through all basic blocks inside More... | |
const_iterator | end () const |
return STL-like iterator to go through all basic blocks inside More... | |
size_t | size () const |
return count of basic blocks inside the control flow graph More... | |
Private Types | |
typedef Block * | TList |
Private Attributes | |
TList | bbs_ |
Private * | d |
Control flow graph - an easy to analyse representation of the intermediate code.
Nodes of the graph are basic blocks - instances of Block
Definition at line 552 of file storage.hh.
typedef TList::const_iterator const_iterator |
Definition at line 557 of file storage.hh.
typedef const_iterator iterator |
Definition at line 558 of file storage.hh.
Definition at line 554 of file storage.hh.
ControlFlow | ( | ) |
~ControlFlow | ( | ) |
ControlFlow | ( | const ControlFlow & | ) |
shallow copy
|
inline |
return STL-like iterator to go through all basic blocks inside
Definition at line 591 of file storage.hh.
References ControlFlow::bbs_, and Block::begin().
|
inline |
return STL-like iterator to go through all basic blocks inside
Definition at line 596 of file storage.hh.
References ControlFlow::bbs_, and Block::end().
const Block* entry | ( | ) | const |
return entry basic block
ControlFlow& operator= | ( | const ControlFlow & | ) |
shallow copy
Block*& operator[] | ( | const char * | name) |
look for a basic block by name, create one if not found
name | name of the basic block to look for |
const Block* operator[] | ( | const char * | name) | const |
look for a basic block by name, crash if not found
name | name of the basic block to look for |
|
inline |
return count of basic blocks inside the control flow graph
Definition at line 601 of file storage.hh.
References ControlFlow::bbs_, and Block::size().
|
private |
Definition at line 604 of file storage.hh.
Referenced by ControlFlow::begin(), ControlFlow::end(), and ControlFlow::size().
|
private |
Definition at line 605 of file storage.hh.