Lines Matching refs:NewAI
323 void ConvertUsesToScalar(Value *Ptr, AllocaInst *NewAI, uint64_t Offset,
386 AllocaInst *NewAI =
388 ConvertUsesToScalar(AI, NewAI, 0, nullptr);
389 return NewAI;
604 void ConvertToScalarInfo::ConvertUsesToScalar(Value *Ptr, AllocaInst *NewAI,
611 ConvertUsesToScalar(CI, NewAI, Offset, NonConstantIdx);
628 ConvertUsesToScalar(GEP, NewAI, Offset+GEPOffset*8, GEPNonConstantIdx);
636 // The load is a bit extract from NewAI shifted right by Offset bits.
637 Value *LoadedVal = Builder.CreateLoad(NewAI);
648 Instruction *Old = Builder.CreateLoad(NewAI, NewAI->getName()+".in");
651 Builder.CreateStore(New, NewAI);
679 Instruction *Old = Builder.CreateLoad(NewAI, NewAI->getName()+".in");
683 Builder.CreateStore(New, NewAI);
711 PointerType* AIPTy = cast<PointerType>(NewAI->getType());
720 Builder.CreateStore(SrcVal, NewAI);
722 // Src must be OrigAI, change this to be a load from NewAI then a store
725 LoadInst *SrcVal = Builder.CreateLoad(NewAI, "srcval");
728 PointerType* AIPTy = cast<PointerType>(NewAI->getType());
1532 if (AllocaInst *NewAI =
1535 NewAI->takeName(AI);
1985 AllocaInst *NewAI = NewElts[0];
1986 BitCastInst *BCI = new BitCastInst(NewAI, AI->getType(), "", NewAI);
1987 NewAI->moveBefore(BCI);