Lines Matching refs:NewInsts
745 DenseMap<Value *, Value *> NewInsts; in rewriteGEPAsOffset() local
746 NewInsts[Base] = ConstantInt::getNullValue(IndexType); in rewriteGEPAsOffset()
755 NewInsts[PHI] = PHINode::Create(IndexType, PHI->getNumIncomingValues(), in rewriteGEPAsOffset()
763 if (NewInsts.find(Val) != NewInsts.end()) in rewriteGEPAsOffset()
767 NewInsts[CI] = NewInsts[CI->getOperand(0)]; in rewriteGEPAsOffset()
771 Value *Index = NewInsts[GEP->getOperand(1)] ? NewInsts[GEP->getOperand(1)] in rewriteGEPAsOffset()
777 NewInsts[GEP->getOperand(0)]->getType()->getScalarSizeInBits()) { in rewriteGEPAsOffset()
779 Index, NewInsts[GEP->getOperand(0)]->getType(), in rewriteGEPAsOffset()
783 auto *Op = NewInsts[GEP->getOperand(0)]; in rewriteGEPAsOffset()
785 NewInsts[GEP] = Index; in rewriteGEPAsOffset()
787 NewInsts[GEP] = Builder.CreateNSWAdd( in rewriteGEPAsOffset()
804 PHINode *NewPhi = static_cast<PHINode *>(NewInsts[PHI]); in rewriteGEPAsOffset()
808 if (NewInsts.find(NewIncoming) != NewInsts.end()) in rewriteGEPAsOffset()
809 NewIncoming = NewInsts[NewIncoming]; in rewriteGEPAsOffset()
832 makeArrayRef(NewInsts[Val]), Val->getName() + ".ptr"); in rewriteGEPAsOffset()
842 return NewInsts[Start]; in rewriteGEPAsOffset()