/external/llvm/lib/Analysis/ |
D | MemoryLocation.cpp | 67 MemoryLocation MemoryLocation::getForSource(const MemTransferInst *MTI) { in getForSource() argument 69 if (ConstantInt *C = dyn_cast<ConstantInt>(MTI->getLength())) in getForSource() 75 MTI->getAAMetadata(AATags); in getForSource() 77 return MemoryLocation(MTI->getRawSource(), Size, AATags); in getForSource() 80 MemoryLocation MemoryLocation::getForDest(const MemIntrinsic *MTI) { in getForDest() argument 82 if (ConstantInt *C = dyn_cast<ConstantInt>(MTI->getLength())) in getForDest() 88 MTI->getAAMetadata(AATags); in getForDest() 90 return MemoryLocation(MTI->getRawDest(), Size, AATags); in getForDest()
|
D | LazyValueInfo.cpp | 654 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(MI)) in InstructionDereferencesPointer() local 655 if (MTI->getSourceAddressSpace() == 0) in InstructionDereferencesPointer() 656 if (GetUnderlyingObject(MTI->getRawSource(), in InstructionDereferencesPointer() 657 MTI->getModule()->getDataLayout()) == Ptr) in InstructionDereferencesPointer()
|
/external/llvm/lib/Transforms/Utils/ |
D | GlobalStatus.cpp | 145 } else if (const MemTransferInst *MTI = dyn_cast<MemTransferInst>(I)) { in analyzeGlobalAux() local 146 if (MTI->isVolatile()) in analyzeGlobalAux() 148 if (MTI->getArgOperand(0) == V) in analyzeGlobalAux() 150 if (MTI->getArgOperand(1) == V) in analyzeGlobalAux()
|
/external/llvm/lib/Transforms/Scalar/ |
D | AlignmentFromAssumptions.cpp | 353 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(MI)) { in processAssumption() local 355 MTI->getSource(), SE); in processAssumption() 358 NewDestAlignments.find(MTI); in processAssumption() 363 NewSrcAlignments.find(MTI); in processAssumption() 388 NewDestAlignments.insert(std::make_pair(MTI, NewDestAlignment)); in processAssumption() 389 NewSrcAlignments.insert(std::make_pair(MTI, NewSrcAlignment)); in processAssumption()
|
D | ScalarReplAggregates.cpp | 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() [all …]
|
D | DeadStoreElimination.cpp | 239 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(Inst)) in getLocForRead() local 240 return MemoryLocation::getForSource(MTI); in getLocForRead() 912 } else if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(BBI)) { in handleEndBlock() local 913 LoadedLoc = MemoryLocation::getForSource(MTI); in handleEndBlock()
|
D | GVN.cpp | 1096 MemTransferInst *MTI = cast<MemTransferInst>(MI); in AnalyzeLoadFromClobberingMemInst() local 1098 Constant *Src = dyn_cast<Constant>(MTI->getSource()); in AnalyzeLoadFromClobberingMemInst() 1269 MemTransferInst *MTI = cast<MemTransferInst>(SrcInst); in GetMemInstValueForLoad() local 1270 Constant *Src = cast<Constant>(MTI->getSource()); in GetMemInstValueForLoad()
|
/external/llvm/include/llvm/Analysis/ |
D | MemoryLocation.h | 85 static MemoryLocation getForSource(const MemTransferInst *MTI);
|
/external/llvm/lib/Target/ARM/ |
D | ARMFastISel.cpp | 2513 const MemTransferInst &MTI = cast<MemTransferInst>(I); in SelectIntrinsicCall() local 2515 if (MTI.isVolatile()) in SelectIntrinsicCall() 2521 if (isa<ConstantInt>(MTI.getLength()) && isMemCpy) { in SelectIntrinsicCall() 2524 uint64_t Len = cast<ConstantInt>(MTI.getLength())->getZExtValue(); in SelectIntrinsicCall() 2527 if (!ARMComputeAddress(MTI.getRawDest(), Dest) || in SelectIntrinsicCall() 2528 !ARMComputeAddress(MTI.getRawSource(), Src)) in SelectIntrinsicCall() 2530 unsigned Alignment = MTI.getAlignment(); in SelectIntrinsicCall() 2536 if (!MTI.getLength()->getType()->isIntegerTy(32)) in SelectIntrinsicCall() 2539 if (MTI.getSourceAddressSpace() > 255 || MTI.getDestAddressSpace() > 255) in SelectIntrinsicCall()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64FastISel.cpp | 3334 const auto *MTI = cast<MemTransferInst>(II); in fastLowerIntrinsicCall() local 3336 if (MTI->isVolatile()) in fastLowerIntrinsicCall() 3342 if (isa<ConstantInt>(MTI->getLength()) && IsMemCpy) { in fastLowerIntrinsicCall() 3345 uint64_t Len = cast<ConstantInt>(MTI->getLength())->getZExtValue(); in fastLowerIntrinsicCall() 3346 unsigned Alignment = MTI->getAlignment(); in fastLowerIntrinsicCall() 3349 if (!computeAddress(MTI->getRawDest(), Dest) || in fastLowerIntrinsicCall() 3350 !computeAddress(MTI->getRawSource(), Src)) in fastLowerIntrinsicCall() 3357 if (!MTI->getLength()->getType()->isIntegerTy(64)) in fastLowerIntrinsicCall() 3360 if (MTI->getSourceAddressSpace() > 255 || MTI->getDestAddressSpace() > 255) in fastLowerIntrinsicCall()
|
/external/llvm/lib/Target/Mips/ |
D | MipsFastISel.cpp | 1399 const auto *MTI = cast<MemTransferInst>(II); in fastLowerIntrinsicCall() local 1401 if (MTI->isVolatile()) in fastLowerIntrinsicCall() 1403 if (!MTI->getLength()->getType()->isIntegerTy(32)) in fastLowerIntrinsicCall()
|
/external/llvm/lib/Transforms/IPO/ |
D | GlobalOpt.cpp | 226 } else if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(U)) { in CleanupPointerRootUsers() local 227 GlobalVariable *MemSrc = dyn_cast<GlobalVariable>(MTI->getSource()); in CleanupPointerRootUsers() 230 MTI->eraseFromParent(); in CleanupPointerRootUsers() 233 Dead.push_back(std::make_pair(I, MTI)); in CleanupPointerRootUsers()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCalls.cpp | 738 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(MI)) { in visitCallInst() local 740 if (MTI->getSource() == MTI->getDest()) in visitCallInst()
|
/external/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 1754 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(MI)) in optimizeCallInst() local 1755 Align = std::min(Align, getKnownAlignment(MTI->getSource(), *DL)); in optimizeCallInst()
|