| /openbsd-src/gnu/llvm/llvm/lib/Analysis/ |
| H A D | MemoryLocation.cpp | 36 MemoryLocation MemoryLocation::get(const LoadInst *LI) { in get() 39 return MemoryLocation( in get() 45 MemoryLocation MemoryLocation::get(const StoreInst *SI) { in get() 48 return MemoryLocation(SI->getPointerOperand(), in get() 54 MemoryLocation MemoryLocation::get(const VAArgInst *VI) { in get() 55 return MemoryLocation(VI->getPointerOperand(), in get() 59 MemoryLocation MemoryLocation::get(const AtomicCmpXchgInst *CXI) { in get() 62 return MemoryLocation(CXI->getPointerOperand(), in get() 68 MemoryLocation MemoryLocation::get(const AtomicRMWInst *RMWI) { in get() 71 return MemoryLocation(RMWI->getPointerOperand(), in get() [all …]
|
| H A D | ObjCARCAliasAnalysis.cpp | 37 AliasResult ObjCARCAAResult::alias(const MemoryLocation &LocA, in alias() 38 const MemoryLocation &LocB, in alias() 48 MemoryLocation(SA, LocA.Size, LocA.AATags), in alias() 49 MemoryLocation(SB, LocB.Size, LocB.AATags), AAQI, nullptr); in alias() 58 Result = AAResultBase::alias(MemoryLocation::getBeforeOrAfter(UA), in alias() 59 MemoryLocation::getBeforeOrAfter(UB), AAQI, in alias() 72 ModRefInfo ObjCARCAAResult::getModRefInfoMask(const MemoryLocation &Loc, in getModRefInfoMask() 82 MemoryLocation(S, Loc.Size, Loc.AATags), AAQI, IgnoreLocals))) in getModRefInfoMask() 89 return AAResultBase::getModRefInfoMask(MemoryLocation::getBeforeOrAfter(U), in getModRefInfoMask() 112 const MemoryLocation &Loc, in getModRefInfo()
|
| H A D | AliasAnalysis.cpp | 105 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() 149 ModRefInfo AAResults::getModRefInfoMask(const MemoryLocation &Loc, in getModRefInfoMask() 155 ModRefInfo AAResults::getModRefInfoMask(const MemoryLocation &Loc, in getModRefInfoMask() 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() 313 MemoryLocation::getForArgument(Call2, Call2ArgIdx, TLI); in getModRefInfo() [all …]
|
| H A D | AliasSetTracker.cpp | 62 MemoryLocation(L->getValue(), L->getSize(), L->getAAInfo()), in mergeSetIn() 63 MemoryLocation(R->getValue(), R->getSize(), R->getAAInfo()))) in mergeSetIn() 137 MemoryLocation(P->getValue(), P->getSize(), P->getAAInfo()), in addPointer() 138 MemoryLocation(Entry.getValue(), Size, AAInfo)); in addPointer() 202 return AA.alias(MemoryLocation(SomePtr->getValue(), SomePtr->getSize(), in aliasesPointer() 204 MemoryLocation(Ptr, Size, AAInfo)); in aliasesPointer() 211 AA.alias(MemoryLocation(Ptr, Size, AAInfo), in aliasesPointer() 212 MemoryLocation(I.getPointer(), I.getSize(), I.getAAInfo())); in aliasesPointer() 221 AA.getModRefInfo(Inst, MemoryLocation(Ptr, Size, AAInfo)))) in aliasesPointer() 250 Inst, MemoryLocation(I.getPointer(), I.getSize(), I.getAAInfo())); in aliasesUnknownInst() [all …]
|
| H A D | Lint.cpp | 94 void visitMemoryReference(Instruction &I, const MemoryLocation &Loc, 190 visitMemoryReference(I, MemoryLocation::getAfter(Callee), std::nullopt, in visitCallBase() 252 MemoryLocation Loc( in visitCallBase() 288 visitMemoryReference(I, MemoryLocation::getForDest(MCI), in visitCallBase() 290 visitMemoryReference(I, MemoryLocation::getForSource(MCI), in visitCallBase() 310 visitMemoryReference(I, MemoryLocation::getForDest(MCII), in visitCallBase() 312 visitMemoryReference(I, MemoryLocation::getForSource(MCII), in visitCallBase() 326 visitMemoryReference(I, MemoryLocation::getForDest(MMI), in visitCallBase() 328 visitMemoryReference(I, MemoryLocation::getForSource(MMI), in visitCallBase() 334 visitMemoryReference(I, MemoryLocation::getForDest(MSI), in visitCallBase() [all …]
|
| H A D | ScalarEvolutionAliasAnalysis.cpp | 36 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 D | MemoryDependenceAnalysis.cpp | 108 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 D | BasicAliasAnalysis.cpp | 114 return MemoryLocation::UnknownSize; in getObjectSize() 157 return ObjectSize != MemoryLocation::UnknownSize && ObjectSize < Size; in isObjectSmallerThan() 186 return ObjectSize != MemoryLocation::UnknownSize && ObjectSize == Size; in isObjectSize() 681 ModRefInfo BasicAAResult::getModRefInfoMask(const MemoryLocation &Loc, in getModRefInfoMask() 828 AliasResult BasicAAResult::alias(const MemoryLocation &LocA, in alias() 829 const MemoryLocation &LocB, AAQueryInfo &AAQI, in alias() 843 const MemoryLocation &Loc, in getModRefInfo() 896 AAQI.AAR.alias(MemoryLocation::getBeforeOrAfter(*CI), in getModRefInfo() 897 MemoryLocation::getBeforeOrAfter(Object), AAQI); in getModRefInfo() 933 if (AAQI.AAR.alias(MemoryLocation::getBeforeOrAfter(Call), Loc, AAQI) == in getModRefInfo() [all …]
|
| H A D | ScopedNoAliasAA.cpp | 54 AliasResult ScopedNoAliasAAResult::alias(const MemoryLocation &LocA, in alias() 55 const MemoryLocation &LocB, in alias() 77 const MemoryLocation &Loc, in getModRefInfo()
|
| H A D | MemorySSA.cpp | 182 Loc = MemoryLocation::get(Inst); in MemoryLocOrCall() 186 explicit MemoryLocOrCall(const MemoryLocation &Loc) : Loc(Loc) {} in MemoryLocOrCall() 193 MemoryLocation getLoc() const { in getLoc() 216 MemoryLocation Loc; 226 return MemoryLocOrCall(DenseMapInfo<MemoryLocation>::getEmptyKey()); in getEmptyKey() 230 return MemoryLocOrCall(DenseMapInfo<MemoryLocation>::getTombstoneKey()); in getTombstoneKey() 237 DenseMapInfo<MemoryLocation>::getHashValue(MLOC.getLoc())); in getHashValue() 287 instructionClobbersQuery(const MemoryDef *MD, const MemoryLocation &UseLoc, in instructionClobbersQuery() 337 return instructionClobbersQuery(MD, MemoryLocation(), MU->getMemoryInst(), in instructionClobbersQuery() 356 MemoryLocation StartingLoc; [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/ |
| H A D | MemoryLocation.h | 211 class MemoryLocation { 238 static MemoryLocation get(const LoadInst *LI); 239 static MemoryLocation get(const StoreInst *SI); 240 static MemoryLocation get(const VAArgInst *VI); 241 static MemoryLocation get(const AtomicCmpXchgInst *CXI); 242 static MemoryLocation get(const AtomicRMWInst *RMWI); 243 static MemoryLocation get(const Instruction *Inst) { in get() 244 return *MemoryLocation::getOrNone(Inst); in get() 246 static std::optional<MemoryLocation> getOrNone(const Instruction *Inst); 249 static MemoryLocation getForSource(const MemTransferInst *MTI); [all …]
|
| H A D | AliasAnalysis.h | 341 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB); 346 return alias(MemoryLocation(V1, V1Size), MemoryLocation(V2, V2Size)); 351 return alias(MemoryLocation::getBeforeOrAfter(V1), 352 MemoryLocation::getBeforeOrAfter(V2)); 357 bool isNoAlias(const MemoryLocation &LocA, const MemoryLocation &LocB) { 364 return isNoAlias(MemoryLocation(V1, V1Size), MemoryLocation(V2, V2Size)); 369 return isNoAlias(MemoryLocation::getBeforeOrAfter(V1), 370 MemoryLocation::getBeforeOrAfter(V2)); 375 bool isMustAlias(const MemoryLocation &LocA, const MemoryLocation &LocB) { 387 bool pointsToConstantMemory(const MemoryLocation &Loc, bool OrLocal = false) { [all …]
|
| H A D | TypeBasedAliasAnalysis.h | 28 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 D | ObjCARCAliasAnalysis.h | 53 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 D | ScopedNoAliasAA.h | 26 class MemoryLocation; variable 39 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB, 41 ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc,
|
| H A D | BasicAliasAnalysis.h | 67 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB, 70 ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc, 83 ModRefInfo getModRefInfoMask(const MemoryLocation &Loc, AAQueryInfo &AAQI,
|
| H A D | MemoryDependenceAnalysis.h | 448 MemDepResult getPointerDependencyFrom(const MemoryLocation &Loc, bool isLoad, 454 MemDepResult getPointerDependencyFrom(const MemoryLocation &Loc, bool isLoad, 462 getSimplePointerDependencyFrom(const MemoryLocation &MemLoc, bool isLoad, 492 const MemoryLocation &Loc, bool isLoad, 499 const MemoryLocation &Loc, bool isLoad,
|
| H A D | GlobalsModRef.h | 96 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB, 100 ModRefInfo getModRefInfo(const CallBase *Call, const MemoryLocation &Loc,
|
| H A D | ScalarEvolutionAliasAnalysis.h | 34 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB,
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUAliasAnalysis.h | 20 class MemoryLocation; variable 39 AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB, 41 ModRefInfo getModRefInfoMask(const MemoryLocation &Loc, AAQueryInfo &AAQI,
|
| H A D | AMDGPUAliasAnalysis.cpp | 75 AliasResult AMDGPUAAResult::alias(const MemoryLocation &LocA, in alias() 76 const MemoryLocation &LocB, AAQueryInfo &AAQI, in alias() 89 MemoryLocation A = LocA; in alias() 90 MemoryLocation B = LocB; in alias() 127 ModRefInfo AMDGPUAAResult::getModRefInfoMask(const MemoryLocation &Loc, in getModRefInfoMask()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/ |
| H A D | MemCpyOptimizer.cpp | 337 static bool accessedBetween(BatchAAResults &AA, MemoryLocation Loc, in accessedBetween() 362 MemoryLocation Loc, const MemoryUseOrDef *Start, in writtenBetween() 556 MemoryLocation StoreLoc = MemoryLocation::get(SI); in moveUp() 579 SmallVector<MemoryLocation, 8> MemLocs{StoreLoc}; in moveUp() 584 const MemoryLocation LoadLoc = MemoryLocation::get(LI); in moveUp() 600 NeedLift = llvm::any_of(MemLocs, [C, this](const MemoryLocation &ML) { in moveUp() 626 auto ML = MemoryLocation::get(C); in moveUp() 692 MemoryLocation LoadLoc = MemoryLocation::get(LI); in processStoreOfLoad() 934 MemoryLocation DestLoc = isa<StoreInst>(cpyStore) ? in performCallSlotOptzn() 935 MemoryLocation::get(cpyStore) : in performCallSlotOptzn() [all …]
|
| H A D | DeadStoreElimination.cpp | 220 return MemoryLocation::UnknownSize; in getPointerSize() 283 static OverwriteResult isPartialOverwrite(const MemoryLocation &KillingLoc, in isPartialOverwrite() 284 const MemoryLocation &DeadLoc, in isPartialOverwrite() 420 MemoryLocation MemLoc; in memoryIsNotModifiedBetween() 422 MemLoc = MemoryLocation::getForDest(MemSet); in memoryIsNotModifiedBetween() 424 MemLoc = MemoryLocation::get(SecondI); in memoryIsNotModifiedBetween() 913 const MemoryLocation &KillingLoc, in isOverwrite() 914 const MemoryLocation &DeadLoc, in isOverwrite() 933 if (KillingUndObjSize != MemoryLocation::UnknownSize && in isOverwrite() 1072 std::optional<MemoryLocation> getLocForWrite(Instruction *I) const { in getLocForWrite() [all …]
|
| H A D | MergedLoadStoreMotion.cpp | 117 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()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/ubsan/ |
| H A D | ubsan_diag.h | 50 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()
|