Home | History | Annotate | Download | only in IR

Lines Matching refs:CP

558   typename MapTy::iterator FindExistingElement(ConstantClass *CP) {
560 typename InverseMapTy::iterator IMI = InverseMap.find(CP);
562 IMI->second->second == CP &&
568 Map.find(MapKey(static_cast<TypeClass*>(CP->getType()),
569 ConstantKeyData<ConstantClass>::getValType(CP)));
570 if (I == Map.end() || I->second != CP) {
573 for (I = Map.begin(); I != Map.end() && I->second != CP; ++I)
613 void remove(ConstantClass *CP) {
614 typename MapTy::iterator I = FindExistingElement(CP);
616 assert(I->second == CP && "Didn't find correct element?");
619 InverseMap.erase(CP);
666 static unsigned getHashValue(const ConstantClass *CP) {
668 CPOperands.reserve(CP->getNumOperands());
669 for (unsigned I = 0, E = CP->getNumOperands(); I < E; ++I)
670 CPOperands.push_back(CP->getOperand(I));
671 return getHashValue(LookupKey(CP->getType(), CPOperands));
715 typename MapTy::iterator findExistingElement(ConstantClass *CP) {
716 return Map.find(CP);
755 void insert(ConstantClass *CP) {
756 Map[CP] = '\0';
760 void remove(ConstantClass *CP) {
761 typename MapTy::iterator I = findExistingElement(CP);
763 assert(I->first == CP && "Didn't find correct element?");