Home
last modified time | relevance | path

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

1234

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A 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 …]
H A DAliasAnalysis.cpp120 AliasResult AAResults::alias(const MemoryLocation &LocA, in alias()
121 const MemoryLocation &LocB) { in alias()
126 AliasResult AAResults::alias(const MemoryLocation &LocA, in alias()
127 const MemoryLocation &LocB, AAQueryInfo &AAQI) { in alias()
163 bool AAResults::pointsToConstantMemory(const MemoryLocation &Loc, in pointsToConstantMemory()
169 bool AAResults::pointsToConstantMemory(const MemoryLocation &Loc, in pointsToConstantMemory()
211 const MemoryLocation DefLoc = MemoryLocation::get(I); in getModRefInfo()
220 const MemoryLocation &Loc) { in getModRefInfo()
226 const MemoryLocation &Loc, in getModRefInfo()
258 MemoryLocation ArgLoc = in getModRefInfo()
[all …]
H A 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()
H A DAliasSetTracker.cpp67 MemoryLocation(L->getValue(), L->getSize(), L->getAAInfo()), in mergeSetIn()
68 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 AA.alias(MemoryLocation(Ptr, Size, AAInfo), in aliasesPointer()
217 MemoryLocation(I.getPointer(), I.getSize(), I.getAAInfo())); in aliasesPointer()
227 AA.getModRefInfo(Inst, MemoryLocation(Ptr, Size, AAInfo)))) in aliasesPointer()
255 Inst, MemoryLocation(I.getPointer(), I.getSize(), I.getAAInfo())))) in aliasesUnknownInst()
[all …]
H A DLint.cpp97 void visitMemoryReference(Instruction &I, const MemoryLocation &Loc,
193 visitMemoryReference(I, MemoryLocation::getAfter(Callee), None, nullptr, in visitCallBase()
255 MemoryLocation Loc( in visitCallBase()
291 visitMemoryReference(I, MemoryLocation::getForDest(MCI), in visitCallBase()
293 visitMemoryReference(I, MemoryLocation::getForSource(MCI), in visitCallBase()
313 visitMemoryReference(I, MemoryLocation::getForDest(MCII), in visitCallBase()
315 visitMemoryReference(I, MemoryLocation::getForSource(MCII), in visitCallBase()
329 visitMemoryReference(I, MemoryLocation::getForDest(MMI), in visitCallBase()
331 visitMemoryReference(I, MemoryLocation::getForSource(MMI), in visitCallBase()
337 visitMemoryReference(I, MemoryLocation::getForDest(MSI), in visitCallBase()
[all …]
H A DScalarEvolutionAliasAnalysis.cpp26 AliasResult SCEVAAResult::alias(const MemoryLocation &LocA, in alias()
27 const MemoryLocation &LocB, AAQueryInfo &AAQI) { in alias()
49 : MemoryLocation::UnknownSize); in alias()
52 : MemoryLocation::UnknownSize); in alias()
85 if (alias(MemoryLocation(AO ? AO : LocA.Ptr, in alias()
89 MemoryLocation(BO ? BO : LocB.Ptr, in alias()
H A DBasicAliasAnalysis.cpp154 return MemoryLocation::UnknownSize; in getObjectSize()
197 return ObjectSize != MemoryLocation::UnknownSize && ObjectSize < Size; in isObjectSmallerThan()
226 return ObjectSize != MemoryLocation::UnknownSize && ObjectSize == Size; in isObjectSize()
604 bool BasicAAResult::pointsToConstantMemory(const MemoryLocation &Loc, in pointsToConstantMemory()
789 AliasResult BasicAAResult::alias(const MemoryLocation &LocA, in alias()
790 const MemoryLocation &LocB, in alias()
804 const MemoryLocation &Loc, in getModRefInfo()
859 MemoryLocation::getBeforeOrAfter(*CI), in getModRefInfo()
860 MemoryLocation::getBeforeOrAfter(Object), AAQI); in getModRefInfo()
906 if (getBestAAResults().alias(MemoryLocation::getBeforeOrAfter(Call), Loc, in getModRefInfo()
[all …]
H A DMemoryDependenceAnalysis.cpp116 static ModRefInfo GetLocation(const Instruction *Inst, MemoryLocation &Loc, in GetLocation()
120 Loc = MemoryLocation::get(LI); in GetLocation()
124 Loc = MemoryLocation::get(LI); in GetLocation()
127 Loc = MemoryLocation(); in GetLocation()
133 Loc = MemoryLocation::get(SI); in GetLocation()
137 Loc = MemoryLocation::get(SI); in GetLocation()
140 Loc = MemoryLocation(); in GetLocation()
145 Loc = MemoryLocation::get(V); in GetLocation()
151 Loc = MemoryLocation::getAfter(CI->getArgOperand(0)); in GetLocation()
160 Loc = MemoryLocation::getForArgument(II, 1, TLI); in GetLocation()
[all …]
H A DMemorySSA.cpp154 Loc = MemoryLocation::get(Inst); in MemoryLocOrCall()
158 explicit MemoryLocOrCall(const MemoryLocation &Loc) : Loc(Loc) {} in MemoryLocOrCall()
165 MemoryLocation getLoc() const { in getLoc()
188 MemoryLocation Loc;
198 return MemoryLocOrCall(DenseMapInfo<MemoryLocation>::getEmptyKey()); in getEmptyKey()
202 return MemoryLocOrCall(DenseMapInfo<MemoryLocation>::getTombstoneKey()); in getTombstoneKey()
209 DenseMapInfo<MemoryLocation>::getHashValue(MLOC.getLoc())); in getHashValue()
270 instructionClobbersQuery(const MemoryDef *MD, const MemoryLocation &UseLoc, in instructionClobbersQuery()
324 return instructionClobbersQuery(MD, MemoryLocation(), MU->getMemoryInst(), in instructionClobbersQuery()
343 MemoryLocation StartingLoc;
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A 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 …]
H A DAliasAnalysis.h494 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
499 return alias(MemoryLocation(V1, V1Size), MemoryLocation(V2, V2Size));
504 return alias(MemoryLocation::getBeforeOrAfter(V1),
505 MemoryLocation::getBeforeOrAfter(V2));
510 bool isNoAlias(const MemoryLocation &LocA, const MemoryLocation &LocB) {
517 return isNoAlias(MemoryLocation(V1, V1Size), MemoryLocation(V2, V2Size));
522 return isNoAlias(MemoryLocation::getBeforeOrAfter(V1),
523 MemoryLocation::getBeforeOrAfter(V2));
528 bool isMustAlias(const MemoryLocation &LocA, const MemoryLocation &LocB) {
540 bool pointsToConstantMemory(const MemoryLocation &Loc, bool OrLocal = false);
[all …]
H A 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,
H A DCFLAndersAliasAnalysis.h29 class MemoryLocation; variable
63 AliasResult query(const MemoryLocation &, const MemoryLocation &);
64 AliasResult alias(const MemoryLocation &, const MemoryLocation &,
H A DScopedNoAliasAA.h26 class MemoryLocation; variable
41 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB,
43 ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc,
H A 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,
H A DCFLSteensAliasAnalysis.h71 AliasResult query(const MemoryLocation &LocA, const MemoryLocation &LocB);
73 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB, in alias()
H A DGlobalsModRef.h97 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB,
101 ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc,
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DDeadStoreElimination.cpp207 static MemoryLocation getLocForWrite(Instruction *Inst, in getLocForWrite()
210 return MemoryLocation::get(SI); in getLocForWrite()
214 return MemoryLocation::getForDest(MI); in getLocForWrite()
219 return MemoryLocation(); // Unhandled intrinsic. in getLocForWrite()
221 return MemoryLocation::getAfter(II->getArgOperand(0)); in getLocForWrite()
223 return MemoryLocation::getForArgument(II, 1, TLI); in getLocForWrite()
226 return MemoryLocation(II->getArgOperand(1), Len); in getLocForWrite()
233 return MemoryLocation::getAfter(CB->getArgOperand(0)); in getLocForWrite()
234 return MemoryLocation(); in getLocForWrite()
317 return MemoryLocation::UnknownSize; in getPointerSize()
[all …]
H A DMemCpyOptimizer.cpp341 static bool accessedBetween(AliasAnalysis &AA, MemoryLocation Loc, in accessedBetween()
356 static bool writtenBetween(MemorySSA *MSSA, MemoryLocation Loc, in writtenBetween()
527 MemoryLocation StoreLoc = MemoryLocation::get(SI); in moveUp()
542 SmallVector<MemoryLocation, 8> MemLocs{StoreLoc}; in moveUp()
547 const MemoryLocation LoadLoc = MemoryLocation::get(LI); in moveUp()
563 NeedLift = llvm::any_of(MemLocs, [C, this](const MemoryLocation &ML) { in moveUp()
589 auto ML = MemoryLocation::get(C); in moveUp()
677 MemoryLocation LoadLoc = MemoryLocation::get(LI); in processStore()
708 if (!AA->isNoAlias(MemoryLocation::get(SI), LoadLoc)) in processStore()
766 MemoryLocation StoreLoc = MemoryLocation::get(SI); in processStore()
[all …]
H A 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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUAliasAnalysis.h22 class MemoryLocation; variable
43 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB,
45 bool pointsToConstantMemory(const MemoryLocation &Loc, AAQueryInfo &AAQI,
H A DAMDGPUAliasAnalysis.cpp70 AliasResult AMDGPUAAResult::alias(const MemoryLocation &LocA, in alias()
71 const MemoryLocation &LocB, in alias()
84 MemoryLocation A = LocA; in alias()
85 MemoryLocation B = LocB; in alias()
122 bool AMDGPUAAResult::pointsToConstantMemory(const MemoryLocation &Loc, in pointsToConstantMemory()
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/ubsan/
H A Dubsan_diag.h50 typedef uptr MemoryLocation; typedef
62 MemoryLocation MemoryLoc;
69 Location(MemoryLocation Loc) : in Location()
85 MemoryLocation getMemoryLocation() const { in getMemoryLocation()
108 Range(MemoryLocation Start, MemoryLocation End, const char *Text) in Range()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/ubsan/
H A 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()
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/ubsan/
H A Dubsan_diag.h49 typedef uptr MemoryLocation; typedef
61 MemoryLocation MemoryLoc;
68 Location(MemoryLocation Loc) : in Location()
84 MemoryLocation getMemoryLocation() const { in getMemoryLocation()
107 Range(MemoryLocation Start, MemoryLocation End, const char *Text) in Range()

1234