49class InstructionReference;
62 ins_(&ins), refMan_(&irm) {}
84 while (!
refs_.empty()) {
87 if (!(*
refs_.begin())->setImpl(NULL)) {
136 std::set<InstructionReference*> otherRefs = other.
refs_;
137 for (std::set<InstructionReference*>::iterator iter =
138 otherRefs.begin(); iter != otherRefs.end(); iter++) {
139 (*iter)->setImpl(
this);
162 return **
refs_.begin();
#define assert(condition)
InstructionReferenceManager * refMan_
std::set< InstructionReference * > refs_
~InstructionReferenceImpl()
void addRef(InstructionReference &ref)
const InstructionReference & ref()
void merge(InstructionReferenceImpl &other)
InstructionReferenceImpl()
void setInstruction(Instruction &ins)
bool removeRef(InstructionReference &ref)
void referenceDied(Instruction *ins)