| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | AliasSetTracker.cpp | 55 if (!any_of(MemoryLocs, [&](const MemoryLocation &MemLoc) { in mergeSetIn() argument 57 return BatchAA.isMustAlias(MemLoc, ASMemLoc); in mergeSetIn() 111 const MemoryLocation &MemLoc, in addMemoryLocation() argument 117 return AST.getAliasAnalysis().isMustAlias(MemLoc, ASMemLoc); in addMemoryLocation() 123 MemoryLocs.push_back(MemLoc); in addMemoryLocation() 153 AliasResult AliasSet::aliasesMemoryLocation(const MemoryLocation &MemLoc, in aliasesMemoryLocation() argument 160 AliasResult AR = AA.alias(MemLoc, ASMemLoc); in aliasesMemoryLocation() 167 if (isModOrRefSet(AA.getModRefInfo(Inst, MemLoc))) in aliasesMemoryLocation() 204 for (const MemoryLocation &MemLoc : MemoryLocs) in getPointers() local 205 Pointers.insert(MemLoc.Ptr); in getPointers() [all …]
|
| H A D | MemoryDependenceAnalysis.cpp | 238 const MemoryLocation &MemLoc, bool isLoad, BasicBlock::iterator ScanIt, in getPointerDependencyFrom() argument 251 MemLoc, isLoad, ScanIt, BB, QueryInst, Limit, BatchAA); in getPointerDependencyFrom() 266 const MemoryLocation &MemLoc, bool isLoad, BasicBlock::iterator ScanIt, in getPointerDependencyFrom() argument 269 return getPointerDependencyFrom(MemLoc, isLoad, ScanIt, BB, QueryInst, Limit, in getPointerDependencyFrom() 337 const MemoryLocation &MemLoc, in canSkipClobberingStore() argument 340 if (!MemLoc.Size.hasValue()) in canSkipClobberingStore() 342 if (MemoryLocation::get(SI).Size != MemLoc.Size) in canSkipClobberingStore() 344 if (MemLoc.Size.isScalable()) in canSkipClobberingStore() 347 MemLoc.Size.getValue().getKnownMinValue()) in canSkipClobberingStore() 353 if (BatchAA.alias(MemoryLocation::get(LI), MemLoc) != AliasResult::MustAlias) in canSkipClobberingStore() [all …]
|
| H A D | AliasAnalysis.cpp | 602 const MemoryLocation &MemLoc, in callCapturesBefore() argument 608 const Value *Object = getUnderlyingObject(MemLoc.Ptr); in callCapturesBefore()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | AliasSetTracker.h | 144 void addMemoryLocation(AliasSetTracker &AST, const MemoryLocation &MemLoc, 151 LLVM_ABI AliasResult aliasesMemoryLocation(const MemoryLocation &MemLoc, 210 LLVM_ABI AliasSet &getAliasSetFor(const MemoryLocation &MemLoc); 257 AliasSet *mergeAliasSetsForMemoryLocation(const MemoryLocation &MemLoc,
|
| H A D | AliasAnalysis.h | 538 const MemoryLocation &MemLoc, 541 return callCapturesBefore(I, MemLoc, DT, AAQIP); 629 const MemoryLocation &MemLoc, 704 const MemoryLocation &MemLoc, 706 return AA.callCapturesBefore(I, MemLoc, DT, AAQI);
|
| H A D | MemoryDependenceAnalysis.h | 462 getSimplePointerDependencyFrom(const MemoryLocation &MemLoc, bool isLoad,
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | DeadStoreElimination.cpp | 437 MemoryLocation MemLoc; in memoryIsNotModifiedBetween() local 439 MemLoc = MemoryLocation::getForDest(MemSet); in memoryIsNotModifiedBetween() 441 MemLoc = MemoryLocation::get(SecondI); in memoryIsNotModifiedBetween() 443 auto *MemLocPtr = const_cast<Value *>(MemLoc.Ptr); in memoryIsNotModifiedBetween() 474 if (isModSet(AA.getModRefInfo(I, MemLoc.getWithNewPtr(Ptr)))) in memoryIsNotModifiedBetween() 871 MemoryLocationWrapper(MemoryLocation MemLoc, MemoryDef *MemDef, in MemoryLocationWrapper() 873 : MemLoc(MemLoc), MemDef(MemDef), in MemoryLocationWrapper() 875 assert(MemLoc.Ptr && "MemLoc should be not null"); in MemoryLocationWrapper() 876 UnderlyingObject = getUnderlyingObject(MemLoc.Ptr); in MemoryLocationWrapper() 880 MemoryLocation MemLoc; member [all …]
|
| H A D | EarlyCSE.cpp | 1171 MemoryLocation MemLoc = *MemLocOpt; in isOperatingOnInvariantMemAt() local 1172 if (!AvailableInvariants.count(MemLoc)) in isOperatingOnInvariantMemAt() 1177 return AvailableInvariants.lookup(MemLoc) <= GenAt; in isOperatingOnInvariantMemAt() 1459 MemoryLocation MemLoc = in processNode() local 1462 if (!AvailableInvariants.count(MemLoc)) in processNode() 1463 AvailableInvariants.insert(MemLoc, CurrentGeneration); in processNode() 1580 auto MemLoc = MemoryLocation::get(&Inst); in processNode() local 1581 if (!AvailableInvariants.count(MemLoc)) in processNode() 1582 AvailableInvariants.insert(MemLoc, CurrentGeneration); in processNode()
|
| H A D | LoopVersioningLICM.cpp | 263 for (const auto &MemLoc : AS) { in legalLoopMemoryAccesses() local 264 const Value *Ptr = MemLoc.Ptr; in legalLoopMemoryAccesses()
|
| H A D | LICM.cpp | 2281 for (const auto &MemLoc : *Set) in collectPromotionCandidates() 2282 PointerMustAliases.insert(const_cast<Value *>(MemLoc.Ptr)); in collectPromotionCandidates()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | StackProtector.cpp | 275 std::optional<MemoryLocation> MemLoc = MemoryLocation::getOrNone(I); in HasAddressTaken() local 276 if (MemLoc && MemLoc->Size.hasValue() && in HasAddressTaken() 277 !TypeSize::isKnownGE(AllocSize, MemLoc->Size.getValue())) in HasAddressTaken()
|