Home
last modified time | relevance | path

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

123

/third_party/skia/third_party/externals/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 …]
DScalarEvolutionAliasAnalysis.cpp25 AliasResult SCEVAAResult::alias(const MemoryLocation &LocA, in alias()
26 const MemoryLocation &LocB, AAQueryInfo &AAQI) { in alias()
48 : MemoryLocation::UnknownSize); in alias()
51 : MemoryLocation::UnknownSize); in alias()
84 if (alias(MemoryLocation(AO ? AO : LocA.Ptr, in alias()
87 MemoryLocation(BO ? BO : LocB.Ptr, in alias()
DLint.cpp229 visitMemoryReference(I, Callee, MemoryLocation::UnknownSize, 0, nullptr, in visitCallSite()
329 visitMemoryReference(I, MCI->getDest(), MemoryLocation::UnknownSize, in visitCallSite()
331 visitMemoryReference(I, MCI->getSource(), MemoryLocation::UnknownSize, in visitCallSite()
351 visitMemoryReference(I, MMI->getDest(), MemoryLocation::UnknownSize, in visitCallSite()
353 visitMemoryReference(I, MMI->getSource(), MemoryLocation::UnknownSize, in visitCallSite()
360 visitMemoryReference(I, MSI->getDest(), MemoryLocation::UnknownSize, in visitCallSite()
370 visitMemoryReference(I, CS.getArgument(0), MemoryLocation::UnknownSize, 0, in visitCallSite()
374 visitMemoryReference(I, CS.getArgument(0), MemoryLocation::UnknownSize, 0, in visitCallSite()
376 visitMemoryReference(I, CS.getArgument(1), MemoryLocation::UnknownSize, 0, in visitCallSite()
380 visitMemoryReference(I, CS.getArgument(0), MemoryLocation::UnknownSize, 0, in visitCallSite()
[all …]
DMemoryDependenceAnalysis.cpp117 static ModRefInfo GetLocation(const Instruction *Inst, MemoryLocation &Loc, in GetLocation()
121 Loc = MemoryLocation::get(LI); in GetLocation()
125 Loc = MemoryLocation::get(LI); in GetLocation()
128 Loc = MemoryLocation(); in GetLocation()
134 Loc = MemoryLocation::get(SI); in GetLocation()
138 Loc = MemoryLocation::get(SI); in GetLocation()
141 Loc = MemoryLocation(); in GetLocation()
146 Loc = MemoryLocation::get(V); in GetLocation()
152 Loc = MemoryLocation(CI->getArgOperand(0)); in GetLocation()
161 Loc = MemoryLocation::getForArgument(II, 1, TLI); in GetLocation()
[all …]
DMemorySSA.cpp147 Loc = MemoryLocation::get(Inst); in MemoryLocOrCall()
151 explicit MemoryLocOrCall(const MemoryLocation &Loc) : Loc(Loc) {} in MemoryLocOrCall()
158 MemoryLocation getLoc() const { in getLoc()
181 MemoryLocation Loc;
191 return MemoryLocOrCall(DenseMapInfo<MemoryLocation>::getEmptyKey()); in getEmptyKey()
195 return MemoryLocOrCall(DenseMapInfo<MemoryLocation>::getTombstoneKey()); in getTombstoneKey()
202 DenseMapInfo<MemoryLocation>::getHashValue(MLOC.getLoc())); in getHashValue()
263 instructionClobbersQuery(const MemoryDef *MD, const MemoryLocation &UseLoc, in instructionClobbersQuery()
282 AR = AA.alias(MemoryLocation(II->getArgOperand(1)), UseLoc); in instructionClobbersQuery()
322 return instructionClobbersQuery(MD, MemoryLocation(), MU->getMemoryInst(), in instructionClobbersQuery()
[all …]
DScopedNoAliasAA.cpp78 AliasResult ScopedNoAliasAAResult::alias(const MemoryLocation &LocA, in alias()
79 const MemoryLocation &LocB, in alias()
100 const MemoryLocation &Loc, in getModRefInfo()
/third_party/skia/third_party/externals/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 &,
DScopedNoAliasAA.h27 class MemoryLocation; variable
42 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB,
44 ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc,
DObjCARCAliasAnalysis.h55 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB,
57 bool pointsToConstantMemory(const MemoryLocation &Loc, AAQueryInfo &AAQI,
64 ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc,
DCFLSteensAliasAnalysis.h71 AliasResult query(const MemoryLocation &LocA, const MemoryLocation &LocB);
73 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB, in alias()
DGlobalsModRef.h94 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB,
98 ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc,
DScalarEvolutionAliasAnalysis.h33 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB,
DBasicAliasAnalysis.h84 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB,
87 ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc,
94 bool pointsToConstantMemory(const MemoryLocation &Loc, AAQueryInfo &AAQI,
DMemoryDependenceAnalysis.h450 MemDepResult getPointerDependencyFrom(const MemoryLocation &Loc, bool isLoad,
458 getSimplePointerDependencyFrom(const MemoryLocation &MemLoc, bool isLoad,
492 const MemoryLocation &Loc, bool isLoad,
498 const MemoryLocation &Loc, bool isLoad,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DDeadStoreElimination.cpp202 static MemoryLocation getLocForWrite(Instruction *Inst) { in getLocForWrite()
205 return MemoryLocation::get(SI); in getLocForWrite()
209 MemoryLocation Loc = MemoryLocation::getForDest(MI); in getLocForWrite()
216 return MemoryLocation(); // Unhandled intrinsic. in getLocForWrite()
218 return MemoryLocation(II->getArgOperand(0)); in getLocForWrite()
221 return MemoryLocation(II->getArgOperand(1), Len); in getLocForWrite()
228 return MemoryLocation(CS.getArgument(0)); in getLocForWrite()
229 return MemoryLocation(); in getLocForWrite()
234 static MemoryLocation getLocForRead(Instruction *Inst, in getLocForRead()
241 return MemoryLocation::getForSource(MTI); in getLocForRead()
[all …]
DMemCpyOptimizer.cpp440 MemoryLocation StoreLoc = MemoryLocation::get(SI); in moveUp()
455 SmallVector<MemoryLocation, 8> MemLocs{StoreLoc}; in moveUp()
460 const MemoryLocation LoadLoc = MemoryLocation::get(LI); in moveUp()
471 NeedLift = llvm::any_of(MemLocs, [C, &AA](const MemoryLocation &ML) { in moveUp()
497 auto ML = MemoryLocation::get(C); in moveUp()
549 MemoryLocation LoadLoc = MemoryLocation::get(LI); in processStore()
579 if (!AA.isNoAlias(MemoryLocation::get(SI), LoadLoc)) in processStore()
624 MemoryLocation StoreLoc = MemoryLocation::get(SI); in processStore()
956 MD->getPointerDependencyFrom(MemoryLocation::getForSource(MDep), false, in processMemCpyMemCpyDependence()
965 if (!AA.isNoAlias(MemoryLocation::getForDest(M), in processMemCpyMemCpyDependence()
[all …]
DMergedLoadStoreMotion.cpp121 const Instruction &End, MemoryLocation Loc);
174 MemoryLocation Loc) { in isStoreSinkBarrierInRange()
196 MemoryLocation Loc0 = MemoryLocation::get(Store0); in canSinkFromBlock()
197 MemoryLocation Loc1 = MemoryLocation::get(Store1); in canSinkFromBlock()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUAliasAnalysis.h28 class MemoryLocation; variable
47 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB,
49 bool pointsToConstantMemory(const MemoryLocation &Loc, AAQueryInfo &AAQI,
DAMDGPUAliasAnalysis.cpp78 AliasResult AMDGPUAAResult::alias(const MemoryLocation &LocA, in alias()
79 const MemoryLocation &LocB, in alias()
92 bool AMDGPUAAResult::pointsToConstantMemory(const MemoryLocation &Loc, in pointsToConstantMemory()

123