Lines Matching refs:CP
670 static unsigned getHashValue(const ConstantClass *CP) {
672 return getHashValue(LookupKey(CP->getType(), ValType(CP, Storage)));
745 void remove(ConstantClass *CP) {
746 typename MapTy::iterator I = Map.find(CP);
748 assert(*I == CP && "Didn't find correct element?");
753 ConstantClass *CP, Value *From,
756 LookupKey Key(CP->getType(), ValType(Operands, CP));
766 remove(CP);
768 assert(OperandNo < CP->getNumOperands() && "Invalid index");
769 assert(CP->getOperand(OperandNo) != To && "I didn't contain From!");
770 CP->setOperand(OperandNo, To);
772 for (unsigned I = 0, E = CP->getNumOperands(); I != E; ++I)
773 if (CP->getOperand(I) == From)
774 CP->setOperand(I, To);
776 Map.insert_as(CP, Lookup);