Home
last modified time | relevance | path

Searched refs:MTI (Results 1 – 14 of 14) 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.cpp654 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/
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.cpp353 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()
DScalarReplAggregates.cpp570 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 …]
DDeadStoreElimination.cpp239 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()
DGVN.cpp1096 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/
DMemoryLocation.h85 static MemoryLocation getForSource(const MemTransferInst *MTI);
/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/lib/Target/AArch64/
DAArch64FastISel.cpp3334 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/
DMipsFastISel.cpp1399 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/
DGlobalOpt.cpp226 } 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/
DInstCombineCalls.cpp738 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(MI)) { in visitCallInst() local
740 if (MTI->getSource() == MTI->getDest()) in visitCallInst()
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp1754 if (MemTransferInst *MTI = dyn_cast<MemTransferInst>(MI)) in optimizeCallInst() local
1755 Align = std::min(Align, getKnownAlignment(MTI->getSource(), *DL)); in optimizeCallInst()