Go to the documentation of this file.
62 #ifndef TTA_INSTRUCTION_REFERENCE_MANAGER_HH
63 #define TTA_INSTRUCTION_REFERENCE_MANAGER_HH
72 class InstructionReference;
73 class InstructionReferenceImpl;
85 typedef std::map<Instruction*, InstructionReferenceImpl*>
RefMap;
105 inline Iterator(RefMap::iterator iter);
106 inline Iterator(RefMap::iterator& iter);
RefMap references_
Instruction references to maintain.
InstructionReference createReference(Instruction &ins)
InstructionReferenceManager()
Iterator(RefMap::iterator iter)
bool operator!=(const Iterator &i) const
virtual ~InstructionReferenceManager()
bool hasReference(Instruction &ins) const
void replace(Instruction &insA, Instruction &insB)
unsigned int referenceCount(Instruction &ins) const
InstructionReferenceManager & operator=(const InstructionReferenceManager &)
std::map< Instruction *, InstructionReferenceImpl * > RefMap
Map for instruction references. faster to search than list.
void referenceDied(Instruction *ins)
const InstructionReference * operator->() const
const InstructionReference & operator*() const