Home | History | Annotate | Download | only in VMCore

Lines Matching refs:CP

481   static ValType getValType(ConstantVector *CP) {
483 Elements.reserve(CP->getNumOperands());
484 for (unsigned i = 0, e = CP->getNumOperands(); i != e; ++i)
485 Elements.push_back(CP->getOperand(i));
616 typename MapTy::iterator FindExistingElement(ConstantClass *CP) {
618 typename InverseMapTy::iterator IMI = InverseMap.find(CP);
620 IMI->second->second == CP &&
626 Map.find(MapKey(static_cast<TypeClass*>(CP->getType()),
627 ConstantKeyData<ConstantClass>::getValType(CP)));
628 if (I == Map.end() || I->second != CP) {
631 for (I = Map.begin(); I != Map.end() && I->second != CP; ++I)
671 void remove(ConstantClass *CP) {
672 typename MapTy::iterator I = FindExistingElement(CP);
674 assert(I->second == CP && "Didn't find correct element?");
677 InverseMap.erase(CP);