Home
last modified time | relevance | path

Searched refs:MTI (Results 1 – 11 of 11) sorted by relevance

/external/llvm/lib/Transforms/Utils/
DGlobalStatus.cpp138 } else if (const MemTransferInst *MTI = dyn_cast<MemTransferInst>(I)) { in analyzeGlobalAux() local
139 if (MTI->isVolatile()) in analyzeGlobalAux()
141 if (MTI->getArgOperand(0) == V) in analyzeGlobalAux()
143 if (MTI->getArgOperand(1) == V) in analyzeGlobalAux()
/external/llvm/lib/Analysis/
DAliasAnalysis.cpp282 AliasAnalysis::getLocationForSource(const MemTransferInst *MTI) { in getLocationForSource() argument
284 if (ConstantInt *C = dyn_cast<ConstantInt>(MTI->getLength())) in getLocationForSource()
289 MDNode *TBAATag = MTI->getMetadata(LLVMContext::MD_tbaa); in getLocationForSource()
291 return Location(MTI->getRawSource(), Size, TBAATag); in getLocationForSource()
295 AliasAnalysis::getLocationForDest(const MemIntrinsic *MTI) { in getLocationForDest() argument
297 if (ConstantInt *C = dyn_cast<ConstantInt>(MTI->getLength())) in getLocationForDest()
302 MDNode *TBAATag = MTI->getMetadata(LLVMContext::MD_tbaa); in getLocationForDest()
304 return Location(MTI->getRawDest(), Size, TBAATag); in getLocationForDest()
DLazyValueInfo.cpp577 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(MI)) in InstructionDereferencesPointer() local
578 if (MTI->getSourceAddressSpace() == 0) in InstructionDereferencesPointer()
579 if (GetUnderlyingObject(MTI->getRawSource()) == Ptr) in InstructionDereferencesPointer()
/external/llvm/lib/Transforms/Scalar/
DScalarReplAggregates.cpp564 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(UI)) { in CanConvertToScalar() local
568 ConstantInt *Len = dyn_cast<ConstantInt>(MTI->getLength()); in CanConvertToScalar()
690 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(User)) { in ConvertUsesToScalar() local
699 if (GetUnderlyingObject(MTI->getSource(), &DL, 0) != OrigAI) { in ConvertUsesToScalar()
702 assert(MTI->getRawDest() == Ptr && "Neither use is of pointer?"); in ConvertUsesToScalar()
703 Value *SrcPtr = MTI->getSource(); in ConvertUsesToScalar()
713 SrcVal->setAlignment(MTI->getAlignment()); in ConvertUsesToScalar()
715 } else if (GetUnderlyingObject(MTI->getDest(), &DL, 0) != OrigAI) { in ConvertUsesToScalar()
718 assert(MTI->getRawSource() == Ptr && "Neither use is of pointer?"); in ConvertUsesToScalar()
721 PointerType* DPTy = cast<PointerType>(MTI->getDest()->getType()); in ConvertUsesToScalar()
[all …]
DDeadStoreElimination.cpp242 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(Inst)) in getLocForRead() local
243 return AA.getLocationForSource(MTI); in getLocForRead()
832 } else if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(BBI)) { in handleEndBlock() local
833 LoadedLoc = AA->getLocationForSource(MTI); in handleEndBlock()
DGVN.cpp1077 MemTransferInst *MTI = cast<MemTransferInst>(MI); in AnalyzeLoadFromClobberingMemInst() local
1079 Constant *Src = dyn_cast<Constant>(MTI->getSource()); in AnalyzeLoadFromClobberingMemInst()
1249 MemTransferInst *MTI = cast<MemTransferInst>(SrcInst); in GetMemInstValueForLoad() local
1250 Constant *Src = cast<Constant>(MTI->getSource()); in GetMemInstValueForLoad()
/external/llvm/lib/Target/AArch64/
DAArch64FastISel.cpp1496 const MemTransferInst &MTI = cast<MemTransferInst>(I); in SelectIntrinsicCall() local
1498 if (MTI.isVolatile()) in SelectIntrinsicCall()
1504 if (isa<ConstantInt>(MTI.getLength()) && isMemCpy) { in SelectIntrinsicCall()
1507 uint64_t Len = cast<ConstantInt>(MTI.getLength())->getZExtValue(); in SelectIntrinsicCall()
1508 unsigned Alignment = MTI.getAlignment(); in SelectIntrinsicCall()
1511 if (!ComputeAddress(MTI.getRawDest(), Dest) || in SelectIntrinsicCall()
1512 !ComputeAddress(MTI.getRawSource(), Src)) in SelectIntrinsicCall()
1519 if (!MTI.getLength()->getType()->isIntegerTy(64)) in SelectIntrinsicCall()
1522 if (MTI.getSourceAddressSpace() > 255 || MTI.getDestAddressSpace() > 255) in SelectIntrinsicCall()
/external/llvm/lib/Target/ARM/
DARMFastISel.cpp2513 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/include/llvm/Analysis/
DAliasAnalysis.h149 static Location getLocationForSource(const MemTransferInst *MTI);
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp256 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(MI)) { in visitCallInst() local
258 if (MTI->getSource() == MTI->getDest()) in visitCallInst()
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp221 } 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()