Lines Matching refs:UseMap
167 UseMap.insert(std::make_pair(Ref, std::make_pair(Owner, NextIndex))) in addRef()
177 bool WasErased = UseMap.erase(Ref); in dropRef()
184 auto I = UseMap.find(Ref); in moveRef()
185 assert(I != UseMap.end() && "Expected to move a reference"); in moveRef()
187 UseMap.erase(I); in moveRef()
188 bool WasInserted = UseMap.insert(std::make_pair(New, OwnerAndIndex)).second; in moveRef()
201 if (UseMap.empty()) in replaceAllUsesWith()
206 SmallVector<UseTy, 8> Uses(UseMap.begin(), UseMap.end()); in replaceAllUsesWith()
213 if (!UseMap.count(Pair.first)) in replaceAllUsesWith()
223 UseMap.erase(Pair.first); in replaceAllUsesWith()
245 assert(UseMap.empty() && "Expected all uses to be replaced"); in replaceAllUsesWith()
249 if (UseMap.empty()) in resolveAllUses()
253 UseMap.clear(); in resolveAllUses()
259 SmallVector<UseTy, 8> Uses(UseMap.begin(), UseMap.end()); in resolveAllUses()
263 UseMap.clear(); in resolveAllUses()