Home | History | Annotate | Download | only in IR

Lines Matching refs:CP

564     static unsigned getHashValue(const ConstantClass *CP) {
566 return getHashValue(LookupKey(CP->getType(), ValType(CP, Storage)));
631 void insert(ConstantClass *CP) { Map[CP] = '\0'; }
634 void remove(ConstantClass *CP) {
635 typename MapTy::iterator I = Map.find(CP);
637 assert(I->first == CP && "Didn't find correct element?");
642 ConstantClass *CP, Value *From,
645 LookupKey Lookup(CP->getType(), ValType(Operands, CP));
652 remove(CP);
654 assert(OperandNo < CP->getNumOperands() && "Invalid index");
655 assert(CP->getOperand(OperandNo) != To && "I didn't contain From!");
656 CP->setOperand(OperandNo, To);
658 for (unsigned I = 0, E = CP->getNumOperands(); I != E; ++I)
659 if (CP->getOperand(I) == From)
660 CP->setOperand(I, To);
662 insert(CP);