Home
last modified time | relevance | path

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

1234

/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryLocation.cpp36 MemoryLocation MemoryLocation::get(const LoadInst *LI) { in get()
39 return MemoryLocation( in get()
45 MemoryLocation MemoryLocation::get(const StoreInst *SI) { in get()
54 MemoryLocation MemoryLocation::get(const VAArgInst *VI) { in get()
59 MemoryLocation MemoryLocation::get(const AtomicCmpXchgInst *CXI) { in get()
68 MemoryLocation MemoryLocation::get(const AtomicRMWInst *RMWI) { in get()
95 MemoryLocation MemoryLocation::getForSource(const MemTransferInst *MTI) { in getForSource()
108 MemoryLocation MemoryLocation::getForDest(const MemIntrinsic *MI) { in getForDest()
112 MemoryLocation MemoryLocation::getForDest(const AtomicMemIntrinsic *MI) { in getForDest()
116 MemoryLocation MemoryLocation::getForDest(const AnyMemIntrinsic *MI) { in getForDest()
[all …]
H A DObjCARCAliasAnalysis.cpp42 AliasResult ObjCARCAAResult::alias(const MemoryLocation &LocA, in alias()
43 const MemoryLocation &LocB, in alias()
53 MemoryLocation(SA, LocA.Size, LocA.AATags), in alias()
54 MemoryLocation(SB, LocB.Size, LocB.AATags), AAQI, nullptr); in alias()
63 Result = AAResultBase::alias(MemoryLocation::getBeforeOrAfter(UA), in alias()
64 MemoryLocation::getBeforeOrAfter(UB), AAQI, in alias()
77 ModRefInfo ObjCARCAAResult::getModRefInfoMask(const MemoryLocation &Loc, in getModRefInfoMask()
87 MemoryLocation(S, Loc.Size, Loc.AATags), AAQI, IgnoreLocals))) in getModRefInfoMask()
94 return AAResultBase::getModRefInfoMask(MemoryLocation::getBeforeOrAfter(U), in getModRefInfoMask()
117 const MemoryLocation &Loc, in getModRefInfo()
H A 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()
204 const MemoryLocation DefLoc = MemoryLocation::get(I); in getModRefInfo()
212 const MemoryLocation &Loc, in getModRefInfo()
246 MemoryLocation ArgLoc = MemoryLocation::getForArgument(Call, ArgIdx, TLI); in getModRefInfo()
467 const MemoryLocation &Loc, in getModRefInfo()
485 const MemoryLocation &Loc, in getModRefInfo()
511 const MemoryLocation &Loc, in getModRefInfo()
610 const MemoryLocation &Loc = OptLoc.value_or(MemoryLocation()); in getModRefInfo()
[all …]
H A DAliasSetTracker.cpp56 if (!any_of(MemoryLocs, [&](const MemoryLocation &MemLoc) { in mergeSetIn()
112 const MemoryLocation &MemLoc, in addMemoryLocation()
117 if (!any_of(MemoryLocs, [&](const MemoryLocation &ASMemLoc) { in addMemoryLocation()
205 for (const MemoryLocation &MemLoc : MemoryLocs) in getPointers()
317 void AliasSetTracker::add(const MemoryLocation &Loc) { in add()
324 addMemoryLocation(MemoryLocation::get(LI), AliasSet::RefAccess); in add()
330 addMemoryLocation(MemoryLocation::get(SI), AliasSet::ModAccess); in add()
417 MemoryLocation ArgLoc = in add()
451 for (const MemoryLocation &ASMemLoc : AS.MemoryLocs) in add()
493 AliasSet &AliasSetTracker::addMemoryLocation(MemoryLocation Loc, in addMemoryLocation()
[all …]
H A DLint.cpp254 MemoryLocation Loc( in visitCallBase()
290 visitMemoryReference(I, MemoryLocation::getForDest(MCI), in visitCallBase()
292 visitMemoryReference(I, MemoryLocation::getForSource(MCI), in visitCallBase()
312 visitMemoryReference(I, MemoryLocation::getForDest(MCII), in visitCallBase()
314 visitMemoryReference(I, MemoryLocation::getForSource(MCII), in visitCallBase()
328 visitMemoryReference(I, MemoryLocation::getForDest(MMI), in visitCallBase()
330 visitMemoryReference(I, MemoryLocation::getForSource(MMI), in visitCallBase()
336 visitMemoryReference(I, MemoryLocation::getForDest(MSI), in visitCallBase()
342 visitMemoryReference(I, MemoryLocation::getForDest(MSII), in visitCallBase()
448 uint64_t BaseSize = MemoryLocation::UnknownSize; in visitMemoryReference()
[all …]
H A DScalarEvolutionAliasAnalysis.cpp36 AliasResult SCEVAAResult::alias(const MemoryLocation &LocA, in alias()
37 const MemoryLocation &LocB, AAQueryInfo &AAQI, in alias()
59 : MemoryLocation::UnknownSize); in alias()
62 : MemoryLocation::UnknownSize); in alias()
97 if (alias(MemoryLocation(AO ? AO : LocA.Ptr, in alias()
101 MemoryLocation(BO ? BO : LocB.Ptr, in alias()
H A DMemoryDependenceAnalysis.cpp112 Loc = MemoryLocation::get(LI); in GetLocation()
119 Loc = MemoryLocation(); in GetLocation()
132 Loc = MemoryLocation(); in GetLocation()
137 Loc = MemoryLocation::get(V); in GetLocation()
202 MemoryLocation Loc; in getCallDependencyFrom()
485 MemoryLocation ArgLoc = MemoryLocation::getAfter(II->getArgOperand(1)); in getSimplePointerDependencyFrom()
492 MemoryLocation Loc; in getSimplePointerDependencyFrom()
537 MemoryLocation LoadLoc = MemoryLocation::get(LI); in getSimplePointerDependencyFrom()
605 MemoryLocation StoreLoc = MemoryLocation::get(SI); in getSimplePointerDependencyFrom()
707 MemoryLocation MemLoc; in getDependency()
[all …]
H A DBasicAliasAnalysis.cpp716 ModRefInfo BasicAAResult::getModRefInfoMask(const MemoryLocation &Loc, in getModRefInfoMask()
863 AliasResult BasicAAResult::alias(const MemoryLocation &LocA, in alias()
878 const MemoryLocation &Loc, in getModRefInfo()
928 AAQI.AAR.alias(MemoryLocation::getBeforeOrAfter(*CI), in getModRefInfo()
1100 return AAQI.AAR.alias(MemoryLocation(DecompGEP1.Base, V1Size), in aliasGEP()
1319 AAQI.AAR.alias(MemoryLocation(SI->getTrueValue(), SISize), in aliasSelect()
1337 AAQI.AAR.alias(MemoryLocation(SI->getFalseValue(), SISize), in aliasSelect()
1338 MemoryLocation(V2, V2Size), AAQI); in aliasSelect()
1357 MemoryLocation(PN->getIncomingValue(i), PNSize), in aliasPHI()
1358 MemoryLocation( in aliasPHI()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DMemoryLocation.h222 class MemoryLocation {
249 static MemoryLocation get(const LoadInst *LI);
250 static MemoryLocation get(const StoreInst *SI);
255 return *MemoryLocation::getOrNone(Inst); in get()
289 static MemoryLocation
307 MemoryLocation Copy(*this); in getWithNewPtr()
313 MemoryLocation Copy(*this); in getWithNewSize()
318 MemoryLocation getWithoutAATags() const { in getWithoutAATags()
319 MemoryLocation Copy(*this); in getWithoutAATags()
344 static inline MemoryLocation getEmptyKey() {
[all …]
H A DAliasAnalysis.h345 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB);
350 return alias(MemoryLocation(V1, V1Size), MemoryLocation(V2, V2Size));
361 bool isNoAlias(const MemoryLocation &LocA, const MemoryLocation &LocB) {
368 return isNoAlias(MemoryLocation(V1, V1Size), MemoryLocation(V2, V2Size));
379 bool isMustAlias(const MemoryLocation &LocA, const MemoryLocation &LocB) {
510 return getModRefInfo(I, MemoryLocation(P, Size));
566 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB,
634 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB) {
657 bool isMustAlias(const MemoryLocation &LocA, const MemoryLocation &LocB) {
765 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB,
[all …]
H A DTypeBasedAliasAnalysis.h28 class MemoryLocation; variable
41 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB,
43 ModRefInfo getModRefInfoMask(const MemoryLocation &Loc, AAQueryInfo &AAQI,
48 ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc,
H A DAliasSetTracker.h54 SmallVector<MemoryLocation, 0> MemoryLocs;
119 using iterator = SmallVectorImpl<MemoryLocation>::const_iterator;
141 void addMemoryLocation(AliasSetTracker &AST, const MemoryLocation &MemLoc,
148 AliasResult aliasesMemoryLocation(const MemoryLocation &MemLoc,
185 void add(const MemoryLocation &Loc);
205 AliasSet &getAliasSetFor(const MemoryLocation &MemLoc);
251 AliasSet &addMemoryLocation(MemoryLocation Loc, AliasSet::AccessLattice E);
252 AliasSet *mergeAliasSetsForMemoryLocation(const MemoryLocation &MemLoc,
H A DObjCARCAliasAnalysis.h53 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB,
55 ModRefInfo getModRefInfoMask(const MemoryLocation &Loc, AAQueryInfo &AAQI,
62 ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc,
H A DScopedNoAliasAA.h26 class MemoryLocation; variable
39 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB,
41 ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc,
H A DBasicAliasAnalysis.h71 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB,
74 ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc,
87 ModRefInfo getModRefInfoMask(const MemoryLocation &Loc, AAQueryInfo &AAQI,
H A DMemoryDependenceAnalysis.h449 MemDepResult getPointerDependencyFrom(const MemoryLocation &Loc, bool isLoad,
455 MemDepResult getPointerDependencyFrom(const MemoryLocation &Loc, bool isLoad,
463 getSimplePointerDependencyFrom(const MemoryLocation &MemLoc, bool isLoad,
493 const MemoryLocation &Loc, bool isLoad,
500 const MemoryLocation &Loc, bool isLoad,
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUAliasAnalysis.cpp49 AliasResult AMDGPUAAResult::alias(const MemoryLocation &LocA, in alias()
50 const MemoryLocation &LocB, AAQueryInfo &AAQI, in alias()
62 MemoryLocation A = LocA; in alias()
63 MemoryLocation B = LocB; in alias()
99 ModRefInfo AMDGPUAAResult::getModRefInfoMask(const MemoryLocation &Loc, in getModRefInfoMask()
H A DAMDGPUAliasAnalysis.h20 class MemoryLocation; variable
39 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB,
41 ModRefInfo getModRefInfoMask(const MemoryLocation &Loc, AAQueryInfo &AAQI,
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXAliasAnalysis.h19 class MemoryLocation; variable
34 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB,
37 ModRefInfo getModRefInfoMask(const MemoryLocation &Loc, AAQueryInfo &AAQI,
H A DNVPTXAliasAnalysis.cpp70 AliasResult NVPTXAAResult::alias(const MemoryLocation &Loc1, in alias()
71 const MemoryLocation &Loc2, AAQueryInfo &AAQI, in alias()
87 ModRefInfo NVPTXAAResult::getModRefInfoMask(const MemoryLocation &Loc, in getModRefInfoMask()
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/ubsan/
H A Dubsan_diag.h30 typedef uptr MemoryLocation; typedef
42 MemoryLocation MemoryLoc;
49 Location(MemoryLocation Loc) : in Location()
65 MemoryLocation getMemoryLocation() const { in getMemoryLocation()
88 Range(MemoryLocation Start, MemoryLocation End, const char *Text) in Range()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DMoveAutoInit.cpp45 static std::optional<MemoryLocation> writeToAlloca(const Instruction &I) { in writeToAlloca()
46 MemoryLocation ML; in writeToAlloca()
48 ML = MemoryLocation::getForDest(MI); in writeToAlloca()
50 ML = MemoryLocation::get(SI); in writeToAlloca()
63 static BasicBlock *usersDominator(const MemoryLocation &ML, Instruction *I, in usersDominator()
117 std::optional<MemoryLocation> ML = writeToAlloca(I); in runMoveAutoInit()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DMemCpyOptimizer.cpp509 MemoryLocation StoreLoc = MemoryLocation::get(SI); in moveUp()
532 SmallVector<MemoryLocation, 8> MemLocs{StoreLoc}; in moveUp()
537 const MemoryLocation LoadLoc = MemoryLocation::get(LI); in moveUp()
579 auto ML = MemoryLocation::get(C); in moveUp()
645 MemoryLocation LoadLoc = MemoryLocation::get(LI); in processStoreOfLoad()
907 MemoryLocation DestLoc = isa<StoreInst>(cpyStore) ? in performCallSlotOptzn()
908 MemoryLocation::get(cpyStore) : in performCallSlotOptzn()
1020 MemoryLocation SrcLoc = in performCallSlotOptzn()
1395 MemoryLocation MemCpyLoc = MemoryLocation::getForSource(MemCpy); in performMemCpyToMemSetOptzn()
1701 MemoryLocation DestLoc = MemoryLocation::getForDest(M); in processMemCpy()
[all …]
H A DMergedLoadStoreMotion.cpp117 const Instruction &End, MemoryLocation Loc);
170 MemoryLocation Loc) { in isStoreSinkBarrierInRange()
192 MemoryLocation Loc0 = MemoryLocation::get(Store0); in canSinkFromBlock()
193 MemoryLocation Loc1 = MemoryLocation::get(Store1); in canSinkFromBlock()
H A DDeadStoreElimination.cpp416 MemoryLocation MemLoc; in memoryIsNotModifiedBetween()
418 MemLoc = MemoryLocation::getForDest(MemSet); in memoryIsNotModifiedBetween()
420 MemLoc = MemoryLocation::get(SecondI); in memoryIsNotModifiedBetween()
1105 return MemoryLocation::getForDest(CB, TLI); in getLocForWrite()
1107 return MemoryLocation::getOrNone(I); in getLocForWrite()
1212 std::optional<std::pair<MemoryLocation, bool>>
1351 std::optional<MemoryLocation> CurrentLoc; in getDomMemoryDef()
1501 MemoryLocation MaybeDeadLoc = *CurrentLoc; in getDomMemoryDef()
2007 MemoryLocation Loc = *getLocForWrite(DeadI); in removePartiallyOverlappedStores()
2095 std::optional<MemoryLocation> MaybeKillingLoc; in eliminateDeadStores()
[all …]

1234