Lines Matching refs:CP
559 static unsigned getHashValue(const ConstantClass *CP) {
561 return getHashValue(LookupKey(CP->getType(), ValType(CP, Storage)));
628 void remove(ConstantClass *CP) {
629 typename MapTy::iterator I = Map.find(CP);
631 assert(*I == CP && "Didn't find correct element?");
636 ConstantClass *CP, Value *From,
639 LookupKey Key(CP->getType(), ValType(Operands, CP));
649 remove(CP);
651 assert(OperandNo < CP->getNumOperands() && "Invalid index");
652 assert(CP->getOperand(OperandNo) != To && "I didn't contain From!");
653 CP->setOperand(OperandNo, To);
655 for (unsigned I = 0, E = CP->getNumOperands(); I != E; ++I)
656 if (CP->getOperand(I) == From)
657 CP->setOperand(I, To);
659 Map.insert_as(CP, Lookup);