Lines Matching refs:CurrOffset
1242 unsigned CurrOffset = 0; in optimizeMemcpy() local
1249 CurrOffset -= CopyTy.getSizeInBytes() - Size; in optimizeMemcpy()
1253 MF.getMachineMemOperand(&SrcMMO, CurrOffset, CopyTy.getSizeInBytes()); in optimizeMemcpy()
1255 MF.getMachineMemOperand(&DstMMO, CurrOffset, CopyTy.getSizeInBytes()); in optimizeMemcpy()
1260 if (CurrOffset != 0) { in optimizeMemcpy()
1261 Offset = MIB.buildConstant(LLT::scalar(PtrTy.getSizeInBits()), CurrOffset) in optimizeMemcpy()
1269 CurrOffset == 0 ? Dst : MIB.buildPtrAdd(PtrTy, Dst, Offset).getReg(0); in optimizeMemcpy()
1271 CurrOffset += CopyTy.getSizeInBytes(); in optimizeMemcpy()
1345 unsigned CurrOffset = 0; in optimizeMemmove() local
1351 MF.getMachineMemOperand(&SrcMMO, CurrOffset, CopyTy.getSizeInBytes()); in optimizeMemmove()
1355 if (CurrOffset != 0) { in optimizeMemmove()
1357 MIB.buildConstant(LLT::scalar(PtrTy.getSizeInBits()), CurrOffset); in optimizeMemmove()
1361 CurrOffset += CopyTy.getSizeInBytes(); in optimizeMemmove()
1364 CurrOffset = 0; in optimizeMemmove()
1369 MF.getMachineMemOperand(&DstMMO, CurrOffset, CopyTy.getSizeInBytes()); in optimizeMemmove()
1372 if (CurrOffset != 0) { in optimizeMemmove()
1374 MIB.buildConstant(LLT::scalar(PtrTy.getSizeInBits()), CurrOffset); in optimizeMemmove()
1378 CurrOffset += CopyTy.getSizeInBytes(); in optimizeMemmove()