Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryLocation.cpp35 MemoryLocation MemoryLocation::get(const LoadInst *LI) { in get()
38 return MemoryLocation( in get()
44 MemoryLocation MemoryLocation::get(const StoreInst *SI) { in get()
47 return MemoryLocation(SI->getPointerOperand(), in get()
53 MemoryLocation MemoryLocation::get(const VAArgInst *VI) { in get()
54 return MemoryLocation(VI->getPointerOperand(), in get()
58 MemoryLocation MemoryLocation::get(const AtomicCmpXchgInst *CXI) { in get()
61 return MemoryLocation(CXI->getPointerOperand(), in get()
67 MemoryLocation MemoryLocation::get(const AtomicRMWInst *RMWI) { in get()
70 return MemoryLocation(RMWI->getPointerOperand(), in get()
[all …]
H A DObjCARCAliasAnalysis.cpp40 AliasResult ObjCARCAAResult::alias(const MemoryLocation &LocA, in alias()
41 const MemoryLocation &LocB, in alias()
51 MemoryLocation(SA, LocA.Size, LocA.AATags), in alias()
52 MemoryLocation(SB, LocB.Size, LocB.AATags), AAQI, nullptr); in alias()
61 Result = AAResultBase::alias(MemoryLocation::getBeforeOrAfter(UA), in alias()
62 MemoryLocation::getBeforeOrAfter(UB), AAQI, in alias()
75 ModRefInfo ObjCARCAAResult::getModRefInfoMask(const MemoryLocation &Loc, in getModRefInfoMask()
85 MemoryLocation(S, Loc.Size, Loc.AATags), AAQI, IgnoreLocals))) in getModRefInfoMask()
92 return AAResultBase::getModRefInfoMask(MemoryLocation::getBeforeOrAfter(U), in getModRefInfoMask()
115 const MemoryLocation &Loc, in getModRefInfo()
H A DAliasAnalysis.cpp104 AliasResult AAResults::alias(const MemoryLocation &LocA, in alias()
105 const MemoryLocation &LocB) { in alias()
110 AliasResult AAResults::alias(const MemoryLocation &LocA, in alias()
111 const MemoryLocation &LocB, AAQueryInfo &AAQI, in alias()
151 ModRefInfo AAResults::getModRefInfoMask(const MemoryLocation &Loc, in getModRefInfoMask()
157 ModRefInfo AAResults::getModRefInfoMask(const MemoryLocation &Loc, in getModRefInfoMask()
206 const MemoryLocation DefLoc = MemoryLocation::get(I); in getModRefInfo()
214 const MemoryLocation &Loc, in getModRefInfo()
283 MemoryLocation::getForArgument(Call2, Call2ArgIdx, TLI); in getModRefInfo()
321 MemoryLocation::getForArgument(Call1, Call1ArgIdx, TLI); in getModRefInfo()
[all …]
H A DAliasSetTracker.cpp55 if (!any_of(MemoryLocs, [&](const MemoryLocation &MemLoc) { in mergeSetIn()
56 return any_of(AS.MemoryLocs, [&](const MemoryLocation &ASMemLoc) { in mergeSetIn()
111 const MemoryLocation &MemLoc, in addMemoryLocation()
116 if (!any_of(MemoryLocs, [&](const MemoryLocation &ASMemLoc) { in addMemoryLocation()
153 AliasResult AliasSet::aliasesMemoryLocation(const MemoryLocation &MemLoc, in aliasesMemoryLocation()
204 for (const MemoryLocation &MemLoc : MemoryLocs) in getPointers()
221 const MemoryLocation &MemLoc, AliasSet *PtrAS, bool &MustAliasAll) { in mergeAliasSetsForMemoryLocation()
271 AliasSet &AliasSetTracker::getAliasSetFor(const MemoryLocation &MemLoc) { in getAliasSetFor()
316 void AliasSetTracker::add(const MemoryLocation &Loc) { in add()
323 addMemoryLocation(MemoryLocation::get(LI), AliasSet::RefAccess); in add()
[all …]
H A DLint.cpp95 void visitMemoryReference(Instruction &I, const MemoryLocation &Loc,
192 visitMemoryReference(I, MemoryLocation::getAfter(Callee), std::nullopt, in visitCallBase()
259 MemoryLocation Loc( in visitCallBase()
320 visitMemoryReference(I, MemoryLocation::getForDest(MCI), in visitCallBase()
322 visitMemoryReference(I, MemoryLocation::getForSource(MCI), in visitCallBase()
341 visitMemoryReference(I, MemoryLocation::getForDest(MMI), in visitCallBase()
343 visitMemoryReference(I, MemoryLocation::getForSource(MMI), in visitCallBase()
350 visitMemoryReference(I, MemoryLocation::getForDest(MSI), in visitCallBase()
356 visitMemoryReference(I, MemoryLocation::getForArgument(&I, 0, TLI), in visitCallBase()
360 visitMemoryReference(I, MemoryLocation::getForArgument(&I, 0, TLI), in visitCallBase()
[all …]
H A DMemoryDependenceAnalysis.cpp108 static ModRefInfo GetLocation(const Instruction *Inst, MemoryLocation &Loc, in GetLocation()
112 Loc = MemoryLocation::get(LI); in GetLocation()
116 Loc = MemoryLocation::get(LI); in GetLocation()
119 Loc = MemoryLocation(); in GetLocation()
125 Loc = MemoryLocation::get(SI); in GetLocation()
129 Loc = MemoryLocation::get(SI); in GetLocation()
132 Loc = MemoryLocation(); in GetLocation()
137 Loc = MemoryLocation::get(V); in GetLocation()
144 Loc = MemoryLocation::getAfter(FreedOp); in GetLocation()
154 Loc = MemoryLocation::getForArgument(II, 1, TLI); in GetLocation()
[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()
110 if (alias(MemoryLocation(AO ? AO : LocA.Ptr, in alias()
114 MemoryLocation(BO ? BO : LocB.Ptr, in alias()
H A DBasicAliasAnalysis.cpp753 ModRefInfo BasicAAResult::getModRefInfoMask(const MemoryLocation &Loc, in getModRefInfoMask()
904 AliasResult BasicAAResult::alias(const MemoryLocation &LocA, in alias()
905 const MemoryLocation &LocB, AAQueryInfo &AAQI, in alias()
919 const MemoryLocation &Loc, in getModRefInfo()
981 MemoryLocation ArgLoc = in getModRefInfo()
983 ? MemoryLocation::getForArgument(Call, ArgIdx, TLI) in getModRefInfo()
984 : MemoryLocation::getBeforeOrAfter(Arg); in getModRefInfo()
1009 if (AAQI.AAR.alias(MemoryLocation::getBeforeOrAfter(Call), Loc, AAQI) == in getModRefInfo()
1084 AAQI.AAR.alias(MemoryLocation::getBeforeOrAfter(UnderlyingV1), in aliasGEP()
1085 MemoryLocation::getBeforeOrAfter(UnderlyingV2), AAQI); in aliasGEP()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DMemoryLocation.h216 class MemoryLocation {
243 LLVM_ABI static MemoryLocation get(const LoadInst *LI);
244 LLVM_ABI static MemoryLocation get(const StoreInst *SI);
245 LLVM_ABI static MemoryLocation get(const VAArgInst *VI);
246 LLVM_ABI static MemoryLocation get(const AtomicCmpXchgInst *CXI);
247 LLVM_ABI static MemoryLocation get(const AtomicRMWInst *RMWI);
248 static MemoryLocation get(const Instruction *Inst) { in get()
249 return *MemoryLocation::getOrNone(Inst); in get()
251 LLVM_ABI static std::optional<MemoryLocation>
255 LLVM_ABI static MemoryLocation getForSource(const MemTransferInst *MTI);
[all …]
H A DAliasAnalysis.h356 LLVM_ABI AliasResult alias(const MemoryLocation &LocA,
357 const MemoryLocation &LocB);
362 return alias(MemoryLocation(V1, V1Size), MemoryLocation(V2, V2Size));
367 return alias(MemoryLocation::getBeforeOrAfter(V1),
368 MemoryLocation::getBeforeOrAfter(V2));
373 bool isNoAlias(const MemoryLocation &LocA, const MemoryLocation &LocB) {
380 return isNoAlias(MemoryLocation(V1, V1Size), MemoryLocation(V2, V2Size));
385 return isNoAlias(MemoryLocation::getBeforeOrAfter(V1),
386 MemoryLocation::getBeforeOrAfter(V2));
391 bool isMustAlias(const MemoryLocation &LocA, const MemoryLocation &LocB) {
[all …]
H A DAliasSetTracker.h56 SmallVector<MemoryLocation, 0> MemoryLocs;
122 using iterator = SmallVectorImpl<MemoryLocation>::const_iterator;
144 void addMemoryLocation(AliasSetTracker &AST, const MemoryLocation &MemLoc,
151 LLVM_ABI AliasResult aliasesMemoryLocation(const MemoryLocation &MemLoc,
188 LLVM_ABI void add(const MemoryLocation &Loc);
210 LLVM_ABI AliasSet &getAliasSetFor(const MemoryLocation &MemLoc);
256 AliasSet &addMemoryLocation(MemoryLocation Loc, AliasSet::AccessLattice E);
257 AliasSet *mergeAliasSetsForMemoryLocation(const MemoryLocation &MemLoc,
H A DTypeBasedAliasAnalysis.h29 class MemoryLocation; variable
50 LLVM_ABI AliasResult alias(const MemoryLocation &LocA,
51 const MemoryLocation &LocB, AAQueryInfo &AAQI,
53 LLVM_ABI ModRefInfo getModRefInfoMask(const MemoryLocation &Loc,
60 const MemoryLocation &Loc,
H A DObjCARCAliasAnalysis.h52 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB,
54 ModRefInfo getModRefInfoMask(const MemoryLocation &Loc, AAQueryInfo &AAQI,
61 ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc,
H A DScopedNoAliasAA.h27 class MemoryLocation; variable
40 LLVM_ABI AliasResult alias(const MemoryLocation &LocA,
41 const MemoryLocation &LocB, AAQueryInfo &AAQI,
44 const MemoryLocation &Loc,
H A DBasicAliasAnalysis.h72 LLVM_ABI AliasResult alias(const MemoryLocation &LocA,
73 const MemoryLocation &LocB, AAQueryInfo &AAQI,
77 const MemoryLocation &Loc,
90 LLVM_ABI ModRefInfo getModRefInfoMask(const MemoryLocation &Loc,
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUAliasAnalysis.cpp47 AliasResult AMDGPUAAResult::alias(const MemoryLocation &LocA, in alias()
48 const MemoryLocation &LocB, AAQueryInfo &AAQI, in alias()
60 MemoryLocation A = LocA; in alias()
61 MemoryLocation B = LocB; in alias()
101 ModRefInfo AMDGPUAAResult::getModRefInfoMask(const MemoryLocation &Loc, in getModRefInfoMask()
H A DAMDGPUAliasAnalysis.h21 class MemoryLocation; variable
40 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB,
42 ModRefInfo getModRefInfoMask(const MemoryLocation &Loc, AAQueryInfo &AAQI,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DMemCpyOptimizer.cpp298 static bool accessedBetween(BatchAAResults &AA, MemoryLocation Loc, in accessedBetween()
323 MemoryLocation Loc, const MemoryUseOrDef *Start, in writtenBetween()
506 MemoryLocation StoreLoc = MemoryLocation::get(SI); in moveUp()
530 SmallVector<MemoryLocation, 8> MemLocs{StoreLoc}; in moveUp()
535 const MemoryLocation LoadLoc = MemoryLocation::get(LI); in moveUp()
551 NeedLift = llvm::any_of(MemLocs, [C, this](const MemoryLocation &ML) { in moveUp()
577 auto ML = MemoryLocation::get(C); in moveUp()
643 MemoryLocation LoadLoc = MemoryLocation::get(LI); in processStoreOfLoad()
899 MemoryLocation DestLoc = in performCallSlotOptzn()
901 ? MemoryLocation::get(cpyStore) in performCallSlotOptzn()
[all …]
H A DDeadStoreElimination.cpp300 static OverwriteResult isPartialOverwrite(const MemoryLocation &KillingLoc, in isPartialOverwrite()
301 const MemoryLocation &DeadLoc, in isPartialOverwrite()
437 MemoryLocation MemLoc; in memoryIsNotModifiedBetween()
439 MemLoc = MemoryLocation::getForDest(MemSet); in memoryIsNotModifiedBetween()
441 MemLoc = MemoryLocation::get(SecondI); in memoryIsNotModifiedBetween()
871 MemoryLocationWrapper(MemoryLocation MemLoc, MemoryDef *MemDef, in MemoryLocationWrapper()
880 MemoryLocation MemLoc;
891 ArrayRef<std::pair<MemoryLocation, bool>> MemLocations) { in MemoryDefWrapper()
1075 const MemoryLocation &KillingLoc, in isOverwrite()
1076 const MemoryLocation &DeadLoc, in isOverwrite()
[all …]
H A DMergedLoadStoreMotion.cpp118 const Instruction &End, MemoryLocation Loc);
171 MemoryLocation Loc) { in isStoreSinkBarrierInRange()
193 MemoryLocation Loc0 = MemoryLocation::get(Store0); in canSinkFromBlock()
194 MemoryLocation Loc1 = MemoryLocation::get(Store1); in canSinkFromBlock()
/freebsd/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.cpp98 AliasResult NVPTXAAResult::alias(const MemoryLocation &Loc1, in alias()
99 const MemoryLocation &Loc2, AAQueryInfo &AAQI, in alias()
115 ModRefInfo NVPTXAAResult::getModRefInfoMask(const MemoryLocation &Loc, in getModRefInfoMask()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DMoveAutoInit.cpp43 static std::optional<MemoryLocation> writeToAlloca(const Instruction &I) { in writeToAlloca()
44 MemoryLocation ML; in writeToAlloca()
46 ML = MemoryLocation::getForDest(MI); in writeToAlloca()
48 ML = MemoryLocation::get(SI); in writeToAlloca()
61 static BasicBlock *usersDominator(const MemoryLocation &ML, Instruction *I, in usersDominator()
115 std::optional<MemoryLocation> ML = writeToAlloca(I); in runMoveAutoInit()
/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/
H A Dubsan_diag.h30 typedef uptr MemoryLocation;
33 /// SourceLocation, a MemoryLocation, or a SymbolizedStack. in reset()
42 MemoryLocation MemoryLoc;
49 Location(MemoryLocation Loc) :
65 MemoryLocation getMemoryLocation() const {
88 Range(MemoryLocation Start, MemoryLocation End, const char *Text) in getMemoryLocation()
50 typedef uptr MemoryLocation; global() typedef
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DUtils.h84 static std::optional<llvm::MemoryLocation>
86 return llvm::MemoryLocation::getOrNone(cast<llvm::Instruction>(I->Val)); in memoryLocationGetOrNone()
124 const std::optional<MemoryLocation> &OptLoc) { in aliasAnalysisGetModRefInfo()

1234