Home
last modified time | relevance | path

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

123456789

/external/llvm-project/llvm/lib/Analysis/
DMemoryLocation.cpp37 MemoryLocation MemoryLocation::get(const LoadInst *LI) { in get()
42 return MemoryLocation( in get()
47 MemoryLocation MemoryLocation::get(const StoreInst *SI) { in get()
52 return MemoryLocation(SI->getPointerOperand(), in get()
58 MemoryLocation MemoryLocation::get(const VAArgInst *VI) { in get()
62 return MemoryLocation(VI->getPointerOperand(), in get()
66 MemoryLocation MemoryLocation::get(const AtomicCmpXchgInst *CXI) { in get()
71 return MemoryLocation(CXI->getPointerOperand(), in get()
77 MemoryLocation MemoryLocation::get(const AtomicRMWInst *RMWI) { in get()
82 return MemoryLocation(RMWI->getPointerOperand(), in get()
[all …]
DAliasAnalysis.cpp111 AliasResult AAResults::alias(const MemoryLocation &LocA, in alias()
112 const MemoryLocation &LocB) { in alias()
117 AliasResult AAResults::alias(const MemoryLocation &LocA, in alias()
118 const MemoryLocation &LocB, AAQueryInfo &AAQI) { in alias()
140 bool AAResults::pointsToConstantMemory(const MemoryLocation &Loc, in pointsToConstantMemory()
146 bool AAResults::pointsToConstantMemory(const MemoryLocation &Loc, in pointsToConstantMemory()
188 const MemoryLocation DefLoc = MemoryLocation::get(I); in getModRefInfo()
197 const MemoryLocation &Loc) { in getModRefInfo()
203 const MemoryLocation &Loc, in getModRefInfo()
235 MemoryLocation ArgLoc = in getModRefInfo()
[all …]
DObjCARCAliasAnalysis.cpp39 AliasResult ObjCARCAAResult::alias(const MemoryLocation &LocA, in alias()
40 const MemoryLocation &LocB, in alias()
50 AAResultBase::alias(MemoryLocation(SA, LocA.Size, LocA.AATags), in alias()
51 MemoryLocation(SB, LocB.Size, LocB.AATags), AAQI); in alias()
60 Result = AAResultBase::alias(MemoryLocation::getBeforeOrAfter(UA), in alias()
61 MemoryLocation::getBeforeOrAfter(UB), AAQI); in alias()
73 bool ObjCARCAAResult::pointsToConstantMemory(const MemoryLocation &Loc, in pointsToConstantMemory()
82 MemoryLocation(S, Loc.Size, Loc.AATags), AAQI, OrLocal)) in pointsToConstantMemory()
90 MemoryLocation::getBeforeOrAfter(U), AAQI, OrLocal); in pointsToConstantMemory()
112 const MemoryLocation &Loc, in getModRefInfo()
DAliasSetTracker.cpp66 if (AA.alias(MemoryLocation(L->getValue(), L->getSize(), L->getAAInfo()), in mergeSetIn()
67 MemoryLocation(R->getValue(), R->getSize(), R->getAAInfo())) != in mergeSetIn()
142 MemoryLocation(P->getValue(), P->getSize(), P->getAAInfo()), in addPointer()
143 MemoryLocation(Entry.getValue(), Size, AAInfo)); in addPointer()
207 return AA.alias(MemoryLocation(SomePtr->getValue(), SomePtr->getSize(), in aliasesPointer()
209 MemoryLocation(Ptr, Size, AAInfo)); in aliasesPointer()
216 MemoryLocation(Ptr, Size, AAInfo), in aliasesPointer()
217 MemoryLocation(I.getPointer(), I.getSize(), I.getAAInfo()))) in aliasesPointer()
225 AA.getModRefInfo(Inst, MemoryLocation(Ptr, Size, AAInfo)))) in aliasesPointer()
253 Inst, MemoryLocation(I.getPointer(), I.getSize(), I.getAAInfo())))) in aliasesUnknownInst()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DMemoryLocation.cpp35 MemoryLocation MemoryLocation::get(const LoadInst *LI) { in get()
40 return MemoryLocation( in get()
45 MemoryLocation MemoryLocation::get(const StoreInst *SI) { in get()
50 return MemoryLocation(SI->getPointerOperand(), in get()
56 MemoryLocation MemoryLocation::get(const VAArgInst *VI) { in get()
60 return MemoryLocation(VI->getPointerOperand(), LocationSize::unknown(), in get()
64 MemoryLocation MemoryLocation::get(const AtomicCmpXchgInst *CXI) { in get()
69 return MemoryLocation(CXI->getPointerOperand(), in get()
75 MemoryLocation MemoryLocation::get(const AtomicRMWInst *RMWI) { in get()
80 return MemoryLocation(RMWI->getPointerOperand(), in get()
[all …]
DAliasAnalysis.cpp105 AliasResult AAResults::alias(const MemoryLocation &LocA, in alias()
106 const MemoryLocation &LocB) { in alias()
111 AliasResult AAResults::alias(const MemoryLocation &LocA, in alias()
112 const MemoryLocation &LocB, AAQueryInfo &AAQI) { in alias()
121 bool AAResults::pointsToConstantMemory(const MemoryLocation &Loc, in pointsToConstantMemory()
127 bool AAResults::pointsToConstantMemory(const MemoryLocation &Loc, in pointsToConstantMemory()
169 const MemoryLocation DefLoc = MemoryLocation::get(I); in getModRefInfo()
178 const MemoryLocation &Loc) { in getModRefInfo()
184 const MemoryLocation &Loc, in getModRefInfo()
217 MemoryLocation ArgLoc = in getModRefInfo()
[all …]
DObjCARCAliasAnalysis.cpp39 AliasResult ObjCARCAAResult::alias(const MemoryLocation &LocA, in alias()
40 const MemoryLocation &LocB, in alias()
50 AAResultBase::alias(MemoryLocation(SA, LocA.Size, LocA.AATags), in alias()
51 MemoryLocation(SB, LocB.Size, LocB.AATags), AAQI); in alias()
60 Result = AAResultBase::alias(MemoryLocation(UA), MemoryLocation(UB), AAQI); in alias()
72 bool ObjCARCAAResult::pointsToConstantMemory(const MemoryLocation &Loc, in pointsToConstantMemory()
81 MemoryLocation(S, Loc.Size, Loc.AATags), AAQI, OrLocal)) in pointsToConstantMemory()
88 return AAResultBase::pointsToConstantMemory(MemoryLocation(U), AAQI, in pointsToConstantMemory()
111 const MemoryLocation &Loc, in getModRefInfo()
DAliasSetTracker.cpp71 if (AA.alias(MemoryLocation(L->getValue(), L->getSize(), L->getAAInfo()), in mergeSetIn()
72 MemoryLocation(R->getValue(), R->getSize(), R->getAAInfo())) != in mergeSetIn()
147 MemoryLocation(P->getValue(), P->getSize(), P->getAAInfo()), in addPointer()
148 MemoryLocation(Entry.getValue(), Size, AAInfo)); in addPointer()
212 return AA.alias(MemoryLocation(SomePtr->getValue(), SomePtr->getSize(), in aliasesPointer()
214 MemoryLocation(Ptr, Size, AAInfo)); in aliasesPointer()
221 MemoryLocation(Ptr, Size, AAInfo), in aliasesPointer()
222 MemoryLocation(I.getPointer(), I.getSize(), I.getAAInfo()))) in aliasesPointer()
230 AA.getModRefInfo(Inst, MemoryLocation(Ptr, Size, AAInfo)))) in aliasesPointer()
258 Inst, MemoryLocation(I.getPointer(), I.getSize(), I.getAAInfo())))) in aliasesUnknownInst()
[all …]
/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 …]
/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 …]
/external/llvm-project/llvm/include/llvm/Analysis/
DMemoryLocation.h209 class MemoryLocation {
236 static MemoryLocation get(const LoadInst *LI);
237 static MemoryLocation get(const StoreInst *SI);
238 static MemoryLocation get(const VAArgInst *VI);
239 static MemoryLocation get(const AtomicCmpXchgInst *CXI);
240 static MemoryLocation get(const AtomicRMWInst *RMWI);
241 static MemoryLocation get(const Instruction *Inst) { in get()
242 return *MemoryLocation::getOrNone(Inst); in get()
244 static Optional<MemoryLocation> getOrNone(const Instruction *Inst);
247 static MemoryLocation getForSource(const MemTransferInst *MTI);
[all …]
DAliasAnalysis.h343 using LocPair = std::pair<MemoryLocation, MemoryLocation>;
399 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
404 return alias(MemoryLocation(V1, V1Size), MemoryLocation(V2, V2Size)); in alias()
409 return alias(MemoryLocation::getBeforeOrAfter(V1), in alias()
410 MemoryLocation::getBeforeOrAfter(V2)); in alias()
415 bool isNoAlias(const MemoryLocation &LocA, const MemoryLocation &LocB) { in isNoAlias()
422 return isNoAlias(MemoryLocation(V1, V1Size), MemoryLocation(V2, V2Size)); in isNoAlias()
427 return isNoAlias(MemoryLocation::getBeforeOrAfter(V1), in isNoAlias()
428 MemoryLocation::getBeforeOrAfter(V2)); in isNoAlias()
433 bool isMustAlias(const MemoryLocation &LocA, const MemoryLocation &LocB) { in isMustAlias()
[all …]
DTypeBasedAliasAnalysis.h28 class MemoryLocation; variable
43 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB,
45 bool pointsToConstantMemory(const MemoryLocation &Loc, AAQueryInfo &AAQI,
49 ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc,
DCFLAndersAliasAnalysis.h29 class MemoryLocation; variable
63 AliasResult query(const MemoryLocation &, const MemoryLocation &);
64 AliasResult alias(const MemoryLocation &, const MemoryLocation &,
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DMemoryLocation.h174 class MemoryLocation {
199 static MemoryLocation get(const LoadInst *LI);
200 static MemoryLocation get(const StoreInst *SI);
201 static MemoryLocation get(const VAArgInst *VI);
202 static MemoryLocation get(const AtomicCmpXchgInst *CXI);
203 static MemoryLocation get(const AtomicRMWInst *RMWI);
204 static MemoryLocation get(const Instruction *Inst) { in get()
205 return *MemoryLocation::getOrNone(Inst); in get()
207 static Optional<MemoryLocation> getOrNone(const Instruction *Inst) { in getOrNone()
225 static MemoryLocation getForSource(const MemTransferInst *MTI);
[all …]
DAliasAnalysis.h299 using LocPair = std::pair<MemoryLocation, MemoryLocation>;
349 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
354 return alias(MemoryLocation(V1, V1Size), MemoryLocation(V2, V2Size)); in alias()
364 bool isNoAlias(const MemoryLocation &LocA, const MemoryLocation &LocB) { in isNoAlias()
371 return isNoAlias(MemoryLocation(V1, V1Size), MemoryLocation(V2, V2Size)); in isNoAlias()
376 return isNoAlias(MemoryLocation(V1), MemoryLocation(V2)); in isNoAlias()
381 bool isMustAlias(const MemoryLocation &LocA, const MemoryLocation &LocB) { in isMustAlias()
393 bool pointsToConstantMemory(const MemoryLocation &Loc, bool OrLocal = false);
398 return pointsToConstantMemory(MemoryLocation(P), OrLocal);
524 ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc);
[all …]
DTypeBasedAliasAnalysis.h28 class MemoryLocation; variable
43 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB,
45 bool pointsToConstantMemory(const MemoryLocation &Loc, AAQueryInfo &AAQI,
49 ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc,
DCFLAndersAliasAnalysis.h29 class MemoryLocation; variable
63 AliasResult query(const MemoryLocation &, const MemoryLocation &);
64 AliasResult alias(const MemoryLocation &, const MemoryLocation &,
/external/llvm-project/llvm/unittests/Analysis/
DAliasAnalysisTest.cpp89 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB, in alias()
196 EXPECT_EQ(AA.getModRefInfo(Store1, MemoryLocation()), ModRefInfo::Mod); in TEST_F()
198 EXPECT_EQ(AA.getModRefInfo(Load1, MemoryLocation()), ModRefInfo::Ref); in TEST_F()
200 EXPECT_EQ(AA.getModRefInfo(Add1, MemoryLocation()), ModRefInfo::NoModRef); in TEST_F()
202 EXPECT_EQ(AA.getModRefInfo(VAArg1, MemoryLocation()), ModRefInfo::ModRef); in TEST_F()
204 EXPECT_EQ(AA.getModRefInfo(CmpXChg1, MemoryLocation()), ModRefInfo::ModRef); in TEST_F()
206 EXPECT_EQ(AA.getModRefInfo(AtomicRMW, MemoryLocation()), ModRefInfo::ModRef); in TEST_F()
243 MemoryLocation PhiLoc(Phi, LocationSize::precise(1)); in TEST_F()
244 MemoryLocation A1Loc(A1, LocationSize::precise(1)); in TEST_F()
245 MemoryLocation A2Loc(A2, LocationSize::precise(1)); in TEST_F()
[all …]
DBasicAliasAnalysisTest.cpp94 BasicAA.alias(MemoryLocation(IncomingI32Ptr, LocationSize::precise(4)), in TEST_F()
95 MemoryLocation(GlobalPtr, LocationSize::precise(1)), AAQI), in TEST_F()
99 BasicAA.alias(MemoryLocation(IncomingI32Ptr, LocationSize::upperBound(4)), in TEST_F()
100 MemoryLocation(GlobalPtr, LocationSize::precise(1)), AAQI), in TEST_F()
123 MemoryLocation(I8, LocationSize::precise(2)), in TEST_F()
124 MemoryLocation(I8AtUncertainOffset, LocationSize::precise(1)), in TEST_F()
129 MemoryLocation(I8, LocationSize::upperBound(2)), in TEST_F()
130 MemoryLocation(I8AtUncertainOffset, LocationSize::precise(1)), in TEST_F()
/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 …]
/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()

123456789