#include <instruction.h>
Collaboration diagram for CodeIterator:

Public Member Functions | |
| bool | operator!= (const CodeIterator &i) const |
| bool | operator== (const CodeIterator &i) const |
| CodeIterator & | operator++ () |
| Instruction *& | operator * () |
| CodeIterator & | removeAndIncrement () |
| void | insertBefore (Instruction *ins) |
Public Attributes | |
| InstructionList::iterator | it |
| InstructionList::iterator | listEnd |
| Code::InstructionPosition | pos |
| Code * | code |
| InstructionList * | list |
Definition at line 579 of file instruction.h.
| CodeIterator & CodeIterator::removeAndIncrement | ( | ) |
Deletes the instruction that this iterator is currently pointing at (removing it from any lists), and increments the iterator to the next instruction.
Definition at line 1180 of file instruction.cpp.
References code, it, and Code::removeInstruction().
Referenced by Optimizer::pruneInstructions().
| void CodeIterator::insertBefore | ( | Instruction * | ins | ) |
Inserts the given instruction before the instruction pointed at by this iterator.
Definition at line 1189 of file instruction.cpp.
1.5.1