Lines Matching refs:MTI
570 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(UI)) { in CanConvertToScalar() local
574 ConstantInt *Len = dyn_cast<ConstantInt>(MTI->getLength()); in CanConvertToScalar()
696 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(User)) { in ConvertUsesToScalar() local
705 if (GetUnderlyingObject(MTI->getSource(), DL, 0) != OrigAI) { in ConvertUsesToScalar()
708 assert(MTI->getRawDest() == Ptr && "Neither use is of pointer?"); in ConvertUsesToScalar()
709 Value *SrcPtr = MTI->getSource(); in ConvertUsesToScalar()
719 SrcVal->setAlignment(MTI->getAlignment()); in ConvertUsesToScalar()
721 } else if (GetUnderlyingObject(MTI->getDest(), DL, 0) != OrigAI) { in ConvertUsesToScalar()
724 assert(MTI->getRawSource() == Ptr && "Neither use is of pointer?"); in ConvertUsesToScalar()
727 PointerType* DPTy = cast<PointerType>(MTI->getDest()->getType()); in ConvertUsesToScalar()
733 Value *DstPtr = Builder.CreateBitCast(MTI->getDest(), AIPTy); in ConvertUsesToScalar()
736 NewStore->setAlignment(MTI->getAlignment()); in ConvertUsesToScalar()
741 MTI->eraseFromParent(); in ConvertUsesToScalar()
2186 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(MI)) { // memmove/memcopy in RewriteMemIntrinUserOfAlloca() local
2187 if (Inst == MTI->getRawDest()) in RewriteMemIntrinUserOfAlloca()
2188 OtherPtr = MTI->getRawSource(); in RewriteMemIntrinUserOfAlloca()
2190 assert(Inst == MTI->getRawSource()); in RewriteMemIntrinUserOfAlloca()
2191 OtherPtr = MTI->getRawDest(); in RewriteMemIntrinUserOfAlloca()