CodeIterator Class Reference

#include <instruction.h>

Collaboration diagram for CodeIterator:

Collaboration graph
[legend]
List of all members.

Public Member Functions

bool operator!= (const CodeIterator &i) const
bool operator== (const CodeIterator &i) const
CodeIteratoroperator++ ()
Instruction *& operator * ()
CodeIteratorremoveAndIncrement ()
void insertBefore (Instruction *ins)

Public Attributes

InstructionList::iterator it
InstructionList::iterator listEnd
Code::InstructionPosition pos
Codecode
InstructionList * list

Detailed Description

Iterates over all the instructions, going seamlessly between the different lists and avoiding the non-assembly instructions.

Author:
David Saxton

Definition at line 579 of file instruction.h.


Member Function Documentation

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.

References it, and list.


The documentation for this class was generated from the following files:
Generated on Tue May 8 17:05:36 2007 for KTechLab by  doxygen 1.5.1