Home
last modified time | relevance | path

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

/external/llvm/lib/Analysis/
DMemoryLocation.cpp67 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()
DLazyValueInfo.cpp724 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(MI)) in InstructionDereferencesPointer() local
725 if (MTI->getSourceAddressSpace() == 0) in InstructionDereferencesPointer()
726 if (GetUnderlyingObject(MTI->getRawSource(), in InstructionDereferencesPointer()
727 MTI->getModule()->getDataLayout()) == Ptr) in InstructionDereferencesPointer()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DAliasAnalysis.cpp255 AliasAnalysis::getLocationForSource(const MemTransferInst *MTI) { in getLocationForSource() argument
257 if (ConstantInt *C = dyn_cast<ConstantInt>(MTI->getLength())) in getLocationForSource()
262 MDNode *TBAATag = MTI->getMetadata(LLVMContext::MD_tbaa); in getLocationForSource()
264 return Location(MTI->getRawSource(), Size, TBAATag); in getLocationForSource()
268 AliasAnalysis::getLocationForDest(const MemIntrinsic *MTI) { in getLocationForDest() argument
270 if (ConstantInt *C = dyn_cast<ConstantInt>(MTI->getLength())) in getLocationForDest()
275 MDNode *TBAATag = MTI->getMetadata(LLVMContext::MD_tbaa); in getLocationForDest()
277 return Location(MTI->getRawDest(), Size, TBAATag); in getLocationForDest()
DLazyValueInfo.cpp600 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(MI)) in InstructionDereferencesPointer() local
601 if (MTI->getSourceAddressSpace() == 0) in InstructionDereferencesPointer()
602 if (MTI->getRawSource() == Ptr || MTI->getSource() == Ptr) in InstructionDereferencesPointer()
/external/llvm/lib/Transforms/Utils/
DGlobalStatus.cpp145 } 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/
DAlignmentFromAssumptions.cpp342 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(MI)) { in processAssumption() local
344 MTI->getSource(), SE); in processAssumption()
347 NewDestAlignments.find(MTI); in processAssumption()
352 NewSrcAlignments.find(MTI); in processAssumption()
377 NewDestAlignments.insert(std::make_pair(MTI, NewDestAlignment)); in processAssumption()
378 NewSrcAlignments.insert(std::make_pair(MTI, NewSrcAlignment)); in processAssumption()
DDeadStoreElimination.cpp185 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(Inst)) in getLocForRead() local
186 return MemoryLocation::getForSource(MTI); in getLocForRead()
798 } else if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(BBI)) { in handleEndBlock() local
799 LoadedLoc = MemoryLocation::getForSource(MTI); in handleEndBlock()
DGVN.cpp951 MemTransferInst *MTI = cast<MemTransferInst>(MI); in AnalyzeLoadFromClobberingMemInst() local
953 Constant *Src = dyn_cast<Constant>(MTI->getSource()); in AnalyzeLoadFromClobberingMemInst()
1123 MemTransferInst *MTI = cast<MemTransferInst>(SrcInst); in GetMemInstValueForLoad() local
1124 Constant *Src = cast<Constant>(MTI->getSource()); in GetMemInstValueForLoad()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DScalarReplAggregates.cpp492 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(User)) { in CanConvertToScalar() local
493 ConstantInt *Len = dyn_cast<ConstantInt>(MTI->getLength()); in CanConvertToScalar()
604 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(User)) { in ConvertUsesToScalar() local
612 if (GetUnderlyingObject(MTI->getSource(), &TD, 0) != OrigAI) { in ConvertUsesToScalar()
615 assert(MTI->getRawDest() == Ptr && "Neither use is of pointer?"); in ConvertUsesToScalar()
616 Value *SrcPtr = MTI->getSource(); in ConvertUsesToScalar()
626 SrcVal->setAlignment(MTI->getAlignment()); in ConvertUsesToScalar()
628 } else if (GetUnderlyingObject(MTI->getDest(), &TD, 0) != OrigAI) { in ConvertUsesToScalar()
631 assert(MTI->getRawSource() == Ptr && "Neither use is of pointer?"); in ConvertUsesToScalar()
634 PointerType* DPTy = cast<PointerType>(MTI->getDest()->getType()); in ConvertUsesToScalar()
[all …]
DDeadStoreElimination.cpp209 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(Inst)) in getLocForRead() local
210 return AA.getLocationForSource(MTI); in getLocForRead()
680 } else if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(BBI)) { in handleEndBlock() local
681 LoadedLoc = AA->getLocationForSource(MTI); in handleEndBlock()
DGVN.cpp910 MemTransferInst *MTI = cast<MemTransferInst>(MI); in AnalyzeLoadFromClobberingMemInst() local
912 Constant *Src = dyn_cast<Constant>(MTI->getSource()); in AnalyzeLoadFromClobberingMemInst()
1080 MemTransferInst *MTI = cast<MemTransferInst>(SrcInst); in GetMemInstValueForLoad() local
1081 Constant *Src = cast<Constant>(MTI->getSource()); in GetMemInstValueForLoad()
/external/llvm/include/llvm/Analysis/
DMemoryLocation.h85 static MemoryLocation getForSource(const MemTransferInst *MTI);
/external/llvm/lib/Target/ARM/
DARMFastISel.cpp2507 const MemTransferInst &MTI = cast<MemTransferInst>(I); in SelectIntrinsicCall() local
2509 if (MTI.isVolatile()) in SelectIntrinsicCall()
2515 if (isa<ConstantInt>(MTI.getLength()) && isMemCpy) { in SelectIntrinsicCall()
2518 uint64_t Len = cast<ConstantInt>(MTI.getLength())->getZExtValue(); in SelectIntrinsicCall()
2521 if (!ARMComputeAddress(MTI.getRawDest(), Dest) || in SelectIntrinsicCall()
2522 !ARMComputeAddress(MTI.getRawSource(), Src)) in SelectIntrinsicCall()
2524 unsigned Alignment = MTI.getAlignment(); in SelectIntrinsicCall()
2530 if (!MTI.getLength()->getType()->isIntegerTy(32)) in SelectIntrinsicCall()
2533 if (MTI.getSourceAddressSpace() > 255 || MTI.getDestAddressSpace() > 255) in SelectIntrinsicCall()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineCalls.cpp227 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(MI)) { in visitCallInst() local
229 if (MTI->getSource() == MTI->getDest()) in visitCallInst()
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/
DAliasAnalysis.h141 static Location getLocationForSource(const MemTransferInst *MTI);
/external/llvm/lib/Target/AArch64/
DAArch64FastISel.cpp3363 const auto *MTI = cast<MemTransferInst>(II); in fastLowerIntrinsicCall() local
3365 if (MTI->isVolatile()) in fastLowerIntrinsicCall()
3371 if (isa<ConstantInt>(MTI->getLength()) && IsMemCpy) { in fastLowerIntrinsicCall()
3374 uint64_t Len = cast<ConstantInt>(MTI->getLength())->getZExtValue(); in fastLowerIntrinsicCall()
3375 unsigned Alignment = MTI->getAlignment(); in fastLowerIntrinsicCall()
3378 if (!computeAddress(MTI->getRawDest(), Dest) || in fastLowerIntrinsicCall()
3379 !computeAddress(MTI->getRawSource(), Src)) in fastLowerIntrinsicCall()
3386 if (!MTI->getLength()->getType()->isIntegerTy(64)) in fastLowerIntrinsicCall()
3389 if (MTI->getSourceAddressSpace() > 255 || MTI->getDestAddressSpace() > 255) in fastLowerIntrinsicCall()
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp185 } else if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(U)) { in CleanupPointerRootUsers() local
186 GlobalVariable *MemSrc = dyn_cast<GlobalVariable>(MTI->getSource()); in CleanupPointerRootUsers()
189 MTI->eraseFromParent(); in CleanupPointerRootUsers()
192 Dead.push_back(std::make_pair(I, MTI)); in CleanupPointerRootUsers()
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/
DGlobalOpt.cpp246 } else if (const MemTransferInst *MTI = dyn_cast<MemTransferInst>(I)) { in AnalyzeGlobal() local
247 if (MTI->isVolatile()) return true; in AnalyzeGlobal()
248 if (MTI->getArgOperand(0) == V) in AnalyzeGlobal()
250 if (MTI->getArgOperand(1) == V) in AnalyzeGlobal()
/external/llvm/lib/Target/Mips/
DMipsFastISel.cpp1412 const auto *MTI = cast<MemTransferInst>(II); in fastLowerIntrinsicCall() local
1414 if (MTI->isVolatile()) in fastLowerIntrinsicCall()
1416 if (!MTI->getLength()->getType()->isIntegerTy(32)) in fastLowerIntrinsicCall()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp1301 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(MI)) { in visitCallInst() local
1303 if (MTI->getSource() == MTI->getDest()) in visitCallInst()
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp1792 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(MI)) in optimizeCallInst() local
1793 Align = std::min(Align, getKnownAlignment(MTI->getSource(), *DL)); in optimizeCallInst()