Home
last modified time | relevance | path

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

123

/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.h190 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
195 return alias(MemoryLocation(V1, V1Size), MemoryLocation(V2, V2Size)); in alias()
200 return alias(V1, MemoryLocation::UnknownSize, V2, in alias()
201 MemoryLocation::UnknownSize); in alias()
206 bool isNoAlias(const MemoryLocation &LocA, const MemoryLocation &LocB) { in isNoAlias()
213 return isNoAlias(MemoryLocation(V1, V1Size), MemoryLocation(V2, V2Size)); in isNoAlias()
218 return isNoAlias(MemoryLocation(V1), MemoryLocation(V2)); in isNoAlias()
223 bool isMustAlias(const MemoryLocation &LocA, const MemoryLocation &LocB) { in isMustAlias()
234 bool pointsToConstantMemory(const MemoryLocation &Loc, bool OrLocal = false);
239 return pointsToConstantMemory(MemoryLocation(P), OrLocal);
[all …]
DObjCARCAliasAnalysis.h53 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
54 bool pointsToConstantMemory(const MemoryLocation &Loc, bool OrLocal);
60 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
DTypeBasedAliasAnalysis.h38 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
39 bool pointsToConstantMemory(const MemoryLocation &Loc, bool OrLocal);
42 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
DBasicAliasAnalysis.h66 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
68 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
73 bool pointsToConstantMemory(const MemoryLocation &Loc, bool OrLocal);
127 typedef std::pair<MemoryLocation, MemoryLocation> LocPair;
DCFLSteensAliasAnalysis.h63 AliasResult query(const MemoryLocation &LocA, const MemoryLocation &LocB);
65 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB) { in alias()
DScopedNoAliasAA.h39 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
40 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
DGlobalsModRef.h88 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
91 ModRefInfo getModRefInfo(ImmutableCallSite CS, const MemoryLocation &Loc);
DMemoryDependenceAnalysis.h302 NonLocalPointerInfo() : Size(MemoryLocation::UnknownSize) {} in NonLocalPointerInfo()
415 MemDepResult getPointerDependencyFrom(const MemoryLocation &Loc, bool isLoad,
420 MemDepResult getSimplePointerDependencyFrom(const MemoryLocation &MemLoc,
455 const MemoryLocation &Loc, bool isLoad,
461 const MemoryLocation &Loc, bool isLoad,
DCFLAndersAliasAnalysis.h41 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB) { in alias()
/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 …]
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()
DAliasAnalysis.cpp76 AliasResult AAResults::alias(const MemoryLocation &LocA, in alias()
77 const MemoryLocation &LocB) { in alias()
86 bool AAResults::pointsToConstantMemory(const MemoryLocation &Loc, in pointsToConstantMemory()
119 const MemoryLocation DefLoc = MemoryLocation::get(I); in getModRefInfo()
127 const MemoryLocation &Loc) { in getModRefInfo()
158 MemoryLocation ArgLoc = MemoryLocation::getForArgument(CS, ArgIdx, TLI); in getModRefInfo()
227 auto CS2ArgLoc = MemoryLocation::getForArgument(CS2, CS2ArgIdx, TLI); in getModRefInfo()
257 auto CS1ArgLoc = MemoryLocation::getForArgument(CS1, CS1ArgIdx, TLI); in getModRefInfo()
313 const MemoryLocation &Loc) { in getModRefInfo()
320 if (Loc.Ptr && !alias(MemoryLocation::get(L), Loc)) in getModRefInfo()
[all …]
DScalarEvolutionAliasAnalysis.cpp25 AliasResult SCEVAAResult::alias(const MemoryLocation &LocA, in alias()
26 const MemoryLocation &LocB) { in alias()
80 if (alias(MemoryLocation(AO ? AO : LocA.Ptr, in alias()
81 AO ? +MemoryLocation::UnknownSize : LocA.Size, in alias()
83 MemoryLocation(BO ? BO : LocB.Ptr, in alias()
84 BO ? +MemoryLocation::UnknownSize : LocB.Size, in alias()
DBasicAliasAnalysis.cpp117 return MemoryLocation::UnknownSize; in getObjectSize()
158 return ObjectSize != MemoryLocation::UnknownSize && ObjectSize < Size; in isObjectSmallerThan()
165 return ObjectSize != MemoryLocation::UnknownSize && ObjectSize == Size; in isObjectSize()
500 bool BasicAAResult::pointsToConstantMemory(const MemoryLocation &Loc, in pointsToConstantMemory()
676 AliasResult BasicAAResult::alias(const MemoryLocation &LocA, in alias()
677 const MemoryLocation &LocB) { in alias()
706 const MemoryLocation &Loc) { in getModRefInfo()
743 getBestAAResults().alias(MemoryLocation(*CI), MemoryLocation(Object)); in getModRefInfo()
764 if (getBestAAResults().alias(MemoryLocation(Inst), Loc) == NoAlias) in getModRefInfo()
841 if (V1Size == MemoryLocation::UnknownSize || in aliasSameBasePointerGEPs()
[all …]
DMemoryDependenceAnalysis.cpp89 static ModRefInfo GetLocation(const Instruction *Inst, MemoryLocation &Loc, in GetLocation()
93 Loc = MemoryLocation::get(LI); in GetLocation()
97 Loc = MemoryLocation::get(LI); in GetLocation()
100 Loc = MemoryLocation(); in GetLocation()
106 Loc = MemoryLocation::get(SI); in GetLocation()
110 Loc = MemoryLocation::get(SI); in GetLocation()
113 Loc = MemoryLocation(); in GetLocation()
118 Loc = MemoryLocation::get(V); in GetLocation()
124 Loc = MemoryLocation(CI->getArgOperand(0)); in GetLocation()
136 Loc = MemoryLocation( in GetLocation()
[all …]
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 …]
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.cpp145 uint64_t I1Size = MemoryLocation::UnknownSize; in runInternal()
150 uint64_t I2Size = MemoryLocation::UnknownSize; in runInternal()
180 switch (AA.alias(MemoryLocation::get(cast<LoadInst>(Load)), in runInternal()
181 MemoryLocation::get(cast<StoreInst>(Store)))) { in runInternal()
210 switch (AA.alias(MemoryLocation::get(cast<StoreInst>(*I1)), in runInternal()
211 MemoryLocation::get(cast<StoreInst>(*I2)))) { in runInternal()
242 uint64_t Size = MemoryLocation::UnknownSize; in runInternal()
/external/llvm/lib/Transforms/Scalar/
DDeadStoreElimination.cpp149 static MemoryLocation getLocForWrite(Instruction *Inst, AliasAnalysis &AA) { in getLocForWrite()
151 return MemoryLocation::get(SI); in getLocForWrite()
155 MemoryLocation Loc = MemoryLocation::getForDest(MI); in getLocForWrite()
161 return MemoryLocation(); in getLocForWrite()
165 return MemoryLocation(); // Unhandled intrinsic. in getLocForWrite()
169 return MemoryLocation(II->getArgOperand(0)); in getLocForWrite()
172 return MemoryLocation(II->getArgOperand(1), Len); in getLocForWrite()
179 static MemoryLocation getLocForRead(Instruction *Inst, in getLocForRead()
186 return MemoryLocation::getForSource(MTI); in getLocForRead()
187 return MemoryLocation(); in getLocForRead()
[all …]
DMergedLoadStoreMotion.cpp135 const Instruction &End, MemoryLocation Loc);
206 MemoryLocation Loc = MemoryLocation::get(LI); in isLoadHoistBarrierInRange()
234 MemoryLocation Loc0 = MemoryLocation::get(Load0); in canHoistFromBlock()
235 MemoryLocation Loc1 = MemoryLocation::get(Load1); in canHoistFromBlock()
365 MemoryLocation Loc) { in isStoreSinkBarrierInRange()
387 MemoryLocation Loc0 = MemoryLocation::get(Store0); in canSinkFromBlock()
388 MemoryLocation Loc1 = MemoryLocation::get(Store1); in canSinkFromBlock()
DMemCpyOptimizer.cpp494 MemoryLocation StoreLoc = MemoryLocation::get(SI); in moveUp()
509 SmallVector<MemoryLocation, 8> MemLocs; in moveUp()
525 [C, &AA](const MemoryLocation &ML) { in moveUp()
548 auto ML = MemoryLocation::get(C); in moveUp()
596 MemoryLocation LoadLoc = MemoryLocation::get(LI); in processStore()
626 if (!AA.isNoAlias(MemoryLocation::get(SI), LoadLoc)) in processStore()
672 MemoryLocation StoreLoc = MemoryLocation::get(SI); in processStore()
995 MD->getPointerDependencyFrom(MemoryLocation::getForSource(MDep), false, in processMemCpyMemCpyDependence()
1004 if (!AA.isNoAlias(MemoryLocation::getForDest(M), in processMemCpyMemCpyDependence()
1005 MemoryLocation::getForSource(MDep))) in processMemCpyMemCpyDependence()
[all …]
/external/llvm/unittests/Analysis/
DAliasAnalysisTest.cpp58 (void)AA.alias(P1, MemoryLocation::UnknownSize, P2, in runOnFunction()
59 MemoryLocation::UnknownSize); in runOnFunction()
89 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB) { in alias()
193 EXPECT_EQ(AA.getModRefInfo(Store1, MemoryLocation()), MRI_Mod); in TEST_F()
195 EXPECT_EQ(AA.getModRefInfo(Load1, MemoryLocation()), MRI_Ref); in TEST_F()
197 EXPECT_EQ(AA.getModRefInfo(Add1, MemoryLocation()), MRI_NoModRef); in TEST_F()
199 EXPECT_EQ(AA.getModRefInfo(VAArg1, MemoryLocation()), MRI_ModRef); in TEST_F()
201 EXPECT_EQ(AA.getModRefInfo(CmpXChg1, MemoryLocation()), MRI_ModRef); in TEST_F()
203 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()
/external/llvm/lib/Transforms/Utils/
DMemorySSA.cpp130 MemoryLocation &) override;
136 const MemoryLocation &);
139 const UpwardsMemoryQuery &, const MemoryLocation &);
142 const MemoryLocation &);
145 MemoryAccessPair UpwardsDFSWalk(MemoryAccess *, const MemoryLocation &,
149 const MemoryLocation &Loc) const;
992 MemoryLocation StartingLoc;
1034 Q.StartingLoc = MemoryLocation::get(I); in invalidateInfo()
1050 const MemoryLocation &Loc) { in doCacheRemove()
1060 const MemoryLocation &Loc) { in doCacheInsert()
[all …]

123