Lines Matching refs:LoopBuilder
83 IRBuilder<> LoopBuilder(LoopBB); in convertMemCpyToLoop() local
84 PHINode *LoopIndex = LoopBuilder.CreatePHI(TypeOfCopyLen, 0); in convertMemCpyToLoop()
91 LoopBuilder.CreateLoad(LoopBuilder.CreateInBoundsGEP( in convertMemCpyToLoop()
92 LoopBuilder.getInt8Ty(), SrcAddr, LoopIndex), in convertMemCpyToLoop()
95 LoopBuilder.CreateStore(Element, in convertMemCpyToLoop()
96 LoopBuilder.CreateInBoundsGEP(LoopBuilder.getInt8Ty(), in convertMemCpyToLoop()
102 LoopBuilder.CreateAdd(LoopIndex, ConstantInt::get(TypeOfCopyLen, 1)); in convertMemCpyToLoop()
105 LoopBuilder.CreateCondBr(LoopBuilder.CreateICmpULT(NewIndex, CopyLen), LoopBB, in convertMemCpyToLoop()
171 IRBuilder<> LoopBuilder(LoopBB); in convertMemMoveToLoop() local
172 PHINode *LoopPhi = LoopBuilder.CreatePHI(TypeOfCopyLen, 0); in convertMemMoveToLoop()
173 Value *IndexPtr = LoopBuilder.CreateSub( in convertMemMoveToLoop()
175 Value *Element = LoopBuilder.CreateLoad( in convertMemMoveToLoop()
176 LoopBuilder.CreateInBoundsGEP(SrcAddr, IndexPtr), "element"); in convertMemMoveToLoop()
177 LoopBuilder.CreateStore(Element, in convertMemMoveToLoop()
178 LoopBuilder.CreateInBoundsGEP(DstAddr, IndexPtr)); in convertMemMoveToLoop()
179 LoopBuilder.CreateCondBr( in convertMemMoveToLoop()
180 LoopBuilder.CreateICmpEQ(IndexPtr, ConstantInt::get(TypeOfCopyLen, 0)), in convertMemMoveToLoop()
224 IRBuilder<> LoopBuilder(LoopBB); in convertMemSetToLoop() local
225 PHINode *LoopIndex = LoopBuilder.CreatePHI(CopyLen->getType(), 0); in convertMemSetToLoop()
228 LoopBuilder.CreateStore( in convertMemSetToLoop()
230 LoopBuilder.CreateInBoundsGEP(SetValue->getType(), DstAddr, LoopIndex), in convertMemSetToLoop()
234 LoopBuilder.CreateAdd(LoopIndex, ConstantInt::get(CopyLen->getType(), 1)); in convertMemSetToLoop()
237 LoopBuilder.CreateCondBr(LoopBuilder.CreateICmpULT(NewIndex, CopyLen), LoopBB, in convertMemSetToLoop()