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