Home
last modified time | relevance | path

Searched refs:MemoryLocation (Results 1 – 25 of 45) sorted by relevance

12

/external/llvm/include/llvm/Analysis/
DMemoryLocation.h40 class MemoryLocation {
65 static MemoryLocation get(const LoadInst *LI);
66 static MemoryLocation get(const StoreInst *SI);
67 static MemoryLocation get(const VAArgInst *VI);
68 static MemoryLocation get(const AtomicCmpXchgInst *CXI);
69 static MemoryLocation get(const AtomicRMWInst *RMWI);
70 static MemoryLocation get(const Instruction *Inst) { in get()
85 static MemoryLocation getForSource(const MemTransferInst *MTI);
89 static MemoryLocation getForDest(const MemIntrinsic *MI);
92 static MemoryLocation getForArgument(ImmutableCallSite CS, unsigned ArgIdx,
[all …]
DAliasAnalysis.h185 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
190 return alias(MemoryLocation(V1, V1Size), MemoryLocation(V2, V2Size)); in alias()
195 return alias(V1, MemoryLocation::UnknownSize, V2, in alias()
196 MemoryLocation::UnknownSize); in alias()
201 bool isNoAlias(const MemoryLocation &LocA, const MemoryLocation &LocB) { in isNoAlias()
208 return isNoAlias(MemoryLocation(V1, V1Size), MemoryLocation(V2, V2Size)); in isNoAlias()
213 return isNoAlias(MemoryLocation(V1), MemoryLocation(V2)); in isNoAlias()
218 bool isMustAlias(const MemoryLocation &LocA, const MemoryLocation &LocB) { in isMustAlias()
229 bool pointsToConstantMemory(const MemoryLocation &Loc, bool OrLocal = false);
234 return pointsToConstantMemory(MemoryLocation(P), OrLocal);
[all …]
DTypeBasedAliasAnalysis.h39 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
40 bool pointsToConstantMemory(const MemoryLocation &Loc, bool OrLocal);
43 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
DObjCARCAliasAnalysis.h55 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
56 bool pointsToConstantMemory(const MemoryLocation &Loc, bool OrLocal);
62 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
DBasicAliasAnalysis.h64 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
66 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
71 bool pointsToConstantMemory(const MemoryLocation &Loc, bool OrLocal);
111 typedef std::pair<MemoryLocation, MemoryLocation> LocPair;
DCFLAliasAnalysis.h52 AliasResult query(const MemoryLocation &LocA, const MemoryLocation &LocB);
54 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB) { in alias()
DScopedNoAliasAA.h40 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
41 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
DMemoryDependenceAnalysis.h294 NonLocalPointerInfo() : Size(MemoryLocation::UnknownSize) {} in NonLocalPointerInfo()
409 MemDepResult getPointerDependencyFrom(const MemoryLocation &Loc,
415 MemDepResult getSimplePointerDependencyFrom(const MemoryLocation &MemLoc,
448 const MemoryLocation &Loc, bool isLoad,
454 const MemoryLocation &Loc, bool isLoad,
DGlobalsModRef.h86 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
89 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
DScalarEvolutionAliasAnalysis.h35 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
/external/llvm/lib/Analysis/
DMemoryLocation.cpp21 MemoryLocation MemoryLocation::get(const LoadInst *LI) { in get()
26 return MemoryLocation(LI->getPointerOperand(), in get()
30 MemoryLocation MemoryLocation::get(const StoreInst *SI) { in get()
35 return MemoryLocation(SI->getPointerOperand(), in get()
40 MemoryLocation MemoryLocation::get(const VAArgInst *VI) { in get()
44 return MemoryLocation(VI->getPointerOperand(), UnknownSize, AATags); in get()
47 MemoryLocation MemoryLocation::get(const AtomicCmpXchgInst *CXI) { in get()
52 return MemoryLocation( in get()
57 MemoryLocation MemoryLocation::get(const AtomicRMWInst *RMWI) { in get()
62 return MemoryLocation(RMWI->getPointerOperand(), in get()
[all …]
DAliasAnalysis.cpp82 AliasResult AAResults::alias(const MemoryLocation &LocA, in alias()
83 const MemoryLocation &LocB) { in alias()
92 bool AAResults::pointsToConstantMemory(const MemoryLocation &Loc, in pointsToConstantMemory()
125 const MemoryLocation DefLoc = MemoryLocation::get(I); in getModRefInfo()
133 const MemoryLocation &Loc) { in getModRefInfo()
195 const MemoryLocation &Loc) { in getModRefInfo()
202 if (Loc.Ptr && !alias(MemoryLocation::get(L), Loc)) in getModRefInfo()
210 const MemoryLocation &Loc) { in getModRefInfo()
218 if (!alias(MemoryLocation::get(S), Loc)) in getModRefInfo()
232 const MemoryLocation &Loc) { in getModRefInfo()
[all …]
DObjCARCAliasAnalysis.cpp40 AliasResult ObjCARCAAResult::alias(const MemoryLocation &LocA, in alias()
41 const MemoryLocation &LocB) { in alias()
50 AAResultBase::alias(MemoryLocation(SA, LocA.Size, LocA.AATags), in alias()
51 MemoryLocation(SB, LocB.Size, LocB.AATags)); in alias()
60 Result = AAResultBase::alias(MemoryLocation(UA), MemoryLocation(UB)); in alias()
72 bool ObjCARCAAResult::pointsToConstantMemory(const MemoryLocation &Loc, in pointsToConstantMemory()
81 MemoryLocation(S, Loc.Size, Loc.AATags), OrLocal)) in pointsToConstantMemory()
88 return AAResultBase::pointsToConstantMemory(MemoryLocation(U), OrLocal); in pointsToConstantMemory()
110 const MemoryLocation &Loc) { in getModRefInfo()
DBasicAliasAnalysis.cpp116 return MemoryLocation::UnknownSize; in getObjectSize()
157 return ObjectSize != MemoryLocation::UnknownSize && ObjectSize < Size; in isObjectSmallerThan()
164 return ObjectSize != MemoryLocation::UnknownSize && ObjectSize == Size; in isObjectSize()
473 bool BasicAAResult::pointsToConstantMemory(const MemoryLocation &Loc, in pointsToConstantMemory()
653 AliasResult BasicAAResult::alias(const MemoryLocation &LocA, in alias()
654 const MemoryLocation &LocB) { in alias()
683 const MemoryLocation &Loc) { in getModRefInfo()
720 getBestAAResults().alias(MemoryLocation(*CI), MemoryLocation(Object)); in getModRefInfo()
773 if (V1Size == MemoryLocation::UnknownSize || in aliasSameBasePointerGEPs()
774 V2Size == MemoryLocation::UnknownSize) in aliasSameBasePointerGEPs()
[all …]
DScalarEvolutionAliasAnalysis.cpp26 AliasResult SCEVAAResult::alias(const MemoryLocation &LocA, in alias()
27 const MemoryLocation &LocB) { in alias()
81 if (alias(MemoryLocation(AO ? AO : LocA.Ptr, in alias()
82 AO ? +MemoryLocation::UnknownSize : LocA.Size, in alias()
84 MemoryLocation(BO ? BO : LocB.Ptr, in alias()
85 BO ? +MemoryLocation::UnknownSize : LocB.Size, in alias()
DLint.cpp207 visitMemoryReference(I, Callee, MemoryLocation::UnknownSize, 0, nullptr, in visitCallSite()
286 visitMemoryReference(I, MCI->getDest(), MemoryLocation::UnknownSize, in visitCallSite()
288 visitMemoryReference(I, MCI->getSource(), MemoryLocation::UnknownSize, in visitCallSite()
308 visitMemoryReference(I, MMI->getDest(), MemoryLocation::UnknownSize, in visitCallSite()
310 visitMemoryReference(I, MMI->getSource(), MemoryLocation::UnknownSize, in visitCallSite()
317 visitMemoryReference(I, MSI->getDest(), MemoryLocation::UnknownSize, in visitCallSite()
327 visitMemoryReference(I, CS.getArgument(0), MemoryLocation::UnknownSize, 0, in visitCallSite()
331 visitMemoryReference(I, CS.getArgument(0), MemoryLocation::UnknownSize, 0, in visitCallSite()
333 visitMemoryReference(I, CS.getArgument(1), MemoryLocation::UnknownSize, 0, in visitCallSite()
337 visitMemoryReference(I, CS.getArgument(0), MemoryLocation::UnknownSize, 0, in visitCallSite()
[all …]
DMemoryDependenceAnalysis.cpp130 static ModRefInfo GetLocation(const Instruction *Inst, MemoryLocation &Loc, in GetLocation()
134 Loc = MemoryLocation::get(LI); in GetLocation()
138 Loc = MemoryLocation::get(LI); in GetLocation()
141 Loc = MemoryLocation(); in GetLocation()
147 Loc = MemoryLocation::get(SI); in GetLocation()
151 Loc = MemoryLocation::get(SI); in GetLocation()
154 Loc = MemoryLocation(); in GetLocation()
159 Loc = MemoryLocation::get(V); in GetLocation()
165 Loc = MemoryLocation(CI->getArgOperand(0)); in GetLocation()
177 Loc = MemoryLocation( in GetLocation()
[all …]
DAliasSetTracker.cpp49 if (AA.alias(MemoryLocation(L->getValue(), L->getSize(), L->getAAInfo()), in mergeSetIn()
50 MemoryLocation(R->getValue(), R->getSize(), R->getAAInfo())) != in mergeSetIn()
106 AA.alias(MemoryLocation(P->getValue(), P->getSize(), P->getAAInfo()), in addPointer()
107 MemoryLocation(Entry.getValue(), Size, AAInfo)); in addPointer()
155 return AA.alias(MemoryLocation(SomePtr->getValue(), SomePtr->getSize(), in aliasesPointer()
157 MemoryLocation(Ptr, Size, AAInfo)); in aliasesPointer()
163 if (AA.alias(MemoryLocation(Ptr, Size, AAInfo), in aliasesPointer()
164 MemoryLocation(I.getPointer(), I.getSize(), I.getAAInfo()))) in aliasesPointer()
171 MemoryLocation(Ptr, Size, AAInfo)) != MRI_NoModRef) in aliasesPointer()
191 if (AA.getModRefInfo(Inst, MemoryLocation(I.getPointer(), I.getSize(), in aliasesUnknownInst()
[all …]
DAliasAnalysisEvaluator.cpp192 uint64_t I1Size = MemoryLocation::UnknownSize; in runOnFunction()
197 uint64_t I2Size = MemoryLocation::UnknownSize; in runOnFunction()
229 switch (AA.alias(MemoryLocation::get(cast<LoadInst>(*I1)), in runOnFunction()
230 MemoryLocation::get(cast<StoreInst>(*I2)))) { in runOnFunction()
259 switch (AA.alias(MemoryLocation::get(cast<StoreInst>(*I1)), in runOnFunction()
260 MemoryLocation::get(cast<StoreInst>(*I2)))) { in runOnFunction()
292 uint64_t Size = MemoryLocation::UnknownSize; in runOnFunction()
DScopedNoAliasAA.cpp76 AliasResult ScopedNoAliasAAResult::alias(const MemoryLocation &LocA, in alias()
77 const MemoryLocation &LocB) { in alias()
97 const MemoryLocation &Loc) { in getModRefInfo()
/external/llvm/lib/Transforms/Scalar/
DDeadStoreElimination.cpp84 void RemoveAccessedObjects(const MemoryLocation &LoadedLoc,
203 static MemoryLocation getLocForWrite(Instruction *Inst, AliasAnalysis &AA) { in getLocForWrite()
205 return MemoryLocation::get(SI); in getLocForWrite()
209 MemoryLocation Loc = MemoryLocation::getForDest(MI); in getLocForWrite()
215 return MemoryLocation(); in getLocForWrite()
219 return MemoryLocation(); // Unhandled intrinsic. in getLocForWrite()
223 return MemoryLocation(II->getArgOperand(0)); in getLocForWrite()
226 return MemoryLocation(II->getArgOperand(1), Len); in getLocForWrite()
233 static MemoryLocation getLocForRead(Instruction *Inst, in getLocForRead()
240 return MemoryLocation::getForSource(MTI); in getLocForRead()
[all …]
DMergedLoadStoreMotion.cpp151 const Instruction &End, MemoryLocation Loc);
246 MemoryLocation Loc = MemoryLocation::get(LI); in isLoadHoistBarrierInRange()
271 MemoryLocation Loc0 = MemoryLocation::get(Load0); in canHoistFromBlock()
272 MemoryLocation Loc1 = MemoryLocation::get(Load1); in canHoistFromBlock()
401 MemoryLocation Loc) { in isStoreSinkBarrierInRange()
423 MemoryLocation Loc0 = MemoryLocation::get(Store0); in canSinkFromBlock()
424 MemoryLocation Loc1 = MemoryLocation::get(Store1); in canSinkFromBlock()
DMemCpyOptimizer.cpp514 MemoryLocation StoreLoc = MemoryLocation::get(SI); in processStore()
803 MD->getPointerDependencyFrom(MemoryLocation::getForSource(MDep), false, in processMemCpyMemCpyDependence()
812 if (!AA.isNoAlias(MemoryLocation::getForDest(M), in processMemCpyMemCpyDependence()
813 MemoryLocation::getForSource(MDep))) in processMemCpyMemCpyDependence()
862 MD->getPointerDependencyFrom(MemoryLocation::getForDest(MemSet), false, in processMemSetMemCpyDependence()
999 MemoryLocation SrcLoc = MemoryLocation::getForSource(M); in processMemCpy()
1048 if (!AA.isNoAlias(MemoryLocation::getForDest(M), in processMemMove()
1049 MemoryLocation::getForSource(M))) in processMemMove()
1077 MemoryLocation(ByValArg, ByValSize), true, in processByValArgument()
1121 MemoryLocation::getForSource(MDep), false, in processByValArgument()
/external/llvm/unittests/Analysis/
DAliasAnalysisTest.cpp59 (void)AA.alias(P1, MemoryLocation::UnknownSize, P2, in runOnFunction()
60 MemoryLocation::UnknownSize); in runOnFunction()
91 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB) { in alias()
196 EXPECT_EQ(AA.getModRefInfo(Store1, MemoryLocation()), MRI_Mod); in TEST_F()
198 EXPECT_EQ(AA.getModRefInfo(Load1, MemoryLocation()), MRI_Ref); in TEST_F()
200 EXPECT_EQ(AA.getModRefInfo(Add1, MemoryLocation()), MRI_NoModRef); in TEST_F()
202 EXPECT_EQ(AA.getModRefInfo(VAArg1, MemoryLocation()), MRI_ModRef); in TEST_F()
204 EXPECT_EQ(AA.getModRefInfo(CmpXChg1, MemoryLocation()), MRI_ModRef); in TEST_F()
206 EXPECT_EQ(AA.getModRefInfo(AtomicRMW, MemoryLocation()), MRI_ModRef); in TEST_F()
/external/compiler-rt/lib/ubsan/
Dubsan_diag.h51 typedef uptr MemoryLocation; typedef
63 MemoryLocation MemoryLoc;
70 Location(MemoryLocation Loc) : in Location()
86 MemoryLocation getMemoryLocation() const { in getMemoryLocation()
109 Range(MemoryLocation Start, MemoryLocation End, const char *Text) in Range()

12