Lines Matching refs:MTI
569 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(UI)) { in CanConvertToScalar() local
573 ConstantInt *Len = dyn_cast<ConstantInt>(MTI->getLength()); in CanConvertToScalar()
695 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(User)) { in ConvertUsesToScalar() local
704 if (GetUnderlyingObject(MTI->getSource(), DL, 0) != OrigAI) { in ConvertUsesToScalar()
707 assert(MTI->getRawDest() == Ptr && "Neither use is of pointer?"); in ConvertUsesToScalar()
708 Value *SrcPtr = MTI->getSource(); in ConvertUsesToScalar()
718 SrcVal->setAlignment(MTI->getAlignment()); in ConvertUsesToScalar()
720 } else if (GetUnderlyingObject(MTI->getDest(), DL, 0) != OrigAI) { in ConvertUsesToScalar()
723 assert(MTI->getRawSource() == Ptr && "Neither use is of pointer?"); in ConvertUsesToScalar()
726 PointerType* DPTy = cast<PointerType>(MTI->getDest()->getType()); in ConvertUsesToScalar()
732 Value *DstPtr = Builder.CreateBitCast(MTI->getDest(), AIPTy); in ConvertUsesToScalar()
735 NewStore->setAlignment(MTI->getAlignment()); in ConvertUsesToScalar()
740 MTI->eraseFromParent(); in ConvertUsesToScalar()
2185 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(MI)) { // memmove/memcopy in RewriteMemIntrinUserOfAlloca() local
2186 if (Inst == MTI->getRawDest()) in RewriteMemIntrinUserOfAlloca()
2187 OtherPtr = MTI->getRawSource(); in RewriteMemIntrinUserOfAlloca()
2189 assert(Inst == MTI->getRawSource()); in RewriteMemIntrinUserOfAlloca()
2190 OtherPtr = MTI->getRawDest(); in RewriteMemIntrinUserOfAlloca()