/external/llvm/lib/Analysis/ |
D | AliasAnalysis.cpp | 313 AliasAnalysis::getLocationForSource(const MemTransferInst *MTI) { in getLocationForSource() argument 315 if (ConstantInt *C = dyn_cast<ConstantInt>(MTI->getLength())) in getLocationForSource() 321 MTI->getAAMetadata(AATags); in getLocationForSource() 323 return Location(MTI->getRawSource(), Size, AATags); in getLocationForSource() 327 AliasAnalysis::getLocationForDest(const MemIntrinsic *MTI) { in getLocationForDest() argument 329 if (ConstantInt *C = dyn_cast<ConstantInt>(MTI->getLength())) in getLocationForDest() 335 MTI->getAAMetadata(AATags); in getLocationForDest() 337 return Location(MTI->getRawDest(), Size, AATags); in getLocationForDest()
|
D | LazyValueInfo.cpp | 593 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(MI)) in InstructionDereferencesPointer() local 594 if (MTI->getSourceAddressSpace() == 0) in InstructionDereferencesPointer() 595 if (GetUnderlyingObject(MTI->getRawSource(), in InstructionDereferencesPointer() 596 MTI->getModule()->getDataLayout()) == Ptr) in InstructionDereferencesPointer()
|
/external/llvm/lib/Transforms/Utils/ |
D | GlobalStatus.cpp | 141 } else if (const MemTransferInst *MTI = dyn_cast<MemTransferInst>(I)) { in analyzeGlobalAux() local 142 if (MTI->isVolatile()) in analyzeGlobalAux() 144 if (MTI->getArgOperand(0) == V) in analyzeGlobalAux() 146 if (MTI->getArgOperand(1) == V) in analyzeGlobalAux()
|
/external/llvm/lib/Transforms/Scalar/ |
D | AlignmentFromAssumptions.cpp | 350 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(MI)) { in processAssumption() local 352 MTI->getSource(), SE); in processAssumption() 355 NewDestAlignments.find(MTI); in processAssumption() 360 NewSrcAlignments.find(MTI); in processAssumption() 385 NewDestAlignments.insert(std::make_pair(MTI, NewDestAlignment)); in processAssumption() 386 NewSrcAlignments.insert(std::make_pair(MTI, NewSrcAlignment)); in processAssumption()
|
D | ScalarReplAggregates.cpp | 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() [all …]
|
D | DeadStoreElimination.cpp | 233 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(Inst)) in getLocForRead() local 234 return AA.getLocationForSource(MTI); in getLocForRead() 821 } else if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(BBI)) { in handleEndBlock() local 822 LoadedLoc = AA->getLocationForSource(MTI); in handleEndBlock()
|
D | GVN.cpp | 1084 MemTransferInst *MTI = cast<MemTransferInst>(MI); in AnalyzeLoadFromClobberingMemInst() local 1086 Constant *Src = dyn_cast<Constant>(MTI->getSource()); in AnalyzeLoadFromClobberingMemInst() 1257 MemTransferInst *MTI = cast<MemTransferInst>(SrcInst); in GetMemInstValueForLoad() local 1258 Constant *Src = cast<Constant>(MTI->getSource()); in GetMemInstValueForLoad()
|
/external/llvm/lib/Target/ARM/ |
D | ARMFastISel.cpp | 2515 const MemTransferInst &MTI = cast<MemTransferInst>(I); in SelectIntrinsicCall() local 2517 if (MTI.isVolatile()) in SelectIntrinsicCall() 2523 if (isa<ConstantInt>(MTI.getLength()) && isMemCpy) { in SelectIntrinsicCall() 2526 uint64_t Len = cast<ConstantInt>(MTI.getLength())->getZExtValue(); in SelectIntrinsicCall() 2529 if (!ARMComputeAddress(MTI.getRawDest(), Dest) || in SelectIntrinsicCall() 2530 !ARMComputeAddress(MTI.getRawSource(), Src)) in SelectIntrinsicCall() 2532 unsigned Alignment = MTI.getAlignment(); in SelectIntrinsicCall() 2538 if (!MTI.getLength()->getType()->isIntegerTy(32)) in SelectIntrinsicCall() 2541 if (MTI.getSourceAddressSpace() > 255 || MTI.getDestAddressSpace() > 255) in SelectIntrinsicCall()
|
/external/llvm/include/llvm/Analysis/ |
D | AliasAnalysis.h | 146 static Location getLocationForSource(const MemTransferInst *MTI);
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64FastISel.cpp | 3358 const auto *MTI = cast<MemTransferInst>(II); in fastLowerIntrinsicCall() local 3360 if (MTI->isVolatile()) in fastLowerIntrinsicCall() 3366 if (isa<ConstantInt>(MTI->getLength()) && IsMemCpy) { in fastLowerIntrinsicCall() 3369 uint64_t Len = cast<ConstantInt>(MTI->getLength())->getZExtValue(); in fastLowerIntrinsicCall() 3370 unsigned Alignment = MTI->getAlignment(); in fastLowerIntrinsicCall() 3373 if (!computeAddress(MTI->getRawDest(), Dest) || in fastLowerIntrinsicCall() 3374 !computeAddress(MTI->getRawSource(), Src)) in fastLowerIntrinsicCall() 3381 if (!MTI->getLength()->getType()->isIntegerTy(64)) in fastLowerIntrinsicCall() 3384 if (MTI->getSourceAddressSpace() > 255 || MTI->getDestAddressSpace() > 255) in fastLowerIntrinsicCall()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCalls.cpp | 361 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(MI)) { in visitCallInst() local 363 if (MTI->getSource() == MTI->getDest()) in visitCallInst()
|
/external/llvm/lib/Transforms/IPO/ |
D | GlobalOpt.cpp | 221 } else if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(U)) { in CleanupPointerRootUsers() local 222 GlobalVariable *MemSrc = dyn_cast<GlobalVariable>(MTI->getSource()); in CleanupPointerRootUsers() 225 MTI->eraseFromParent(); in CleanupPointerRootUsers() 228 Dead.push_back(std::make_pair(I, MTI)); in CleanupPointerRootUsers()
|
/external/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 1315 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(MI)) in OptimizeCallInst() local 1316 Align = std::min(Align, getKnownAlignment(MTI->getSource(), *TD)); in OptimizeCallInst()
|