Lines Matching refs:CP
527 static unsigned getHashValue(const ConstantClass *CP) {
529 return getHashValue(LookupKey(CP->getType(), ValType(CP, Storage)));
594 void insert(ConstantClass *CP) { Map[CP] = '\0'; }
597 void remove(ConstantClass *CP) {
598 typename MapTy::iterator I = Map.find(CP);
600 assert(I->first == CP && "Didn't find correct element?");
605 ConstantClass *CP, Value *From,
608 LookupKey Lookup(CP->getType(), ValType(Operands, CP));
615 remove(CP);
617 assert(OperandNo < CP->getNumOperands() && "Invalid index");
618 assert(CP->getOperand(OperandNo) != To && "I didn't contain From!");
619 CP->setOperand(OperandNo, To);
621 for (unsigned I = 0, E = CP->getNumOperands(); I != E; ++I)
622 if (CP->getOperand(I) == From)
623 CP->setOperand(I, To);
625 insert(CP);