/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | AliasSetTracker.cpp | 56 if (!any_of(MemoryLocs, [&](const MemoryLocation &MemLoc) { in mergeSetIn() argument 58 return BatchAA.isMustAlias(MemLoc, ASMemLoc); in mergeSetIn() 112 const MemoryLocation &MemLoc, in addMemoryLocation() argument 118 return AST.getAliasAnalysis().isMustAlias(MemLoc, ASMemLoc); in addMemoryLocation() 124 MemoryLocs.push_back(MemLoc); in addMemoryLocation() 154 AliasResult AliasSet::aliasesMemoryLocation(const MemoryLocation &MemLoc, in aliasesMemoryLocation() argument 161 AliasResult AR = AA.alias(MemLoc, ASMemLoc); in aliasesMemoryLocation() 168 if (isModOrRefSet(AA.getModRefInfo(Inst, MemLoc))) in aliasesMemoryLocation() 205 for (const MemoryLocation &MemLoc : MemoryLocs) in getPointers() local 206 Pointers.insert(MemLoc.Ptr); in getPointers() [all …]
|
H A D | MemoryDependenceAnalysis.cpp | 241 const MemoryLocation &MemLoc, bool isLoad, BasicBlock::iterator ScanIt, in getPointerDependencyFrom() argument 254 MemLoc, isLoad, ScanIt, BB, QueryInst, Limit, BatchAA); in getPointerDependencyFrom() 269 const MemoryLocation &MemLoc, bool isLoad, BasicBlock::iterator ScanIt, in getPointerDependencyFrom() argument 272 return getPointerDependencyFrom(MemLoc, isLoad, ScanIt, BB, QueryInst, Limit, in getPointerDependencyFrom() 369 const MemoryLocation &MemLoc, in canSkipClobberingStore() argument 372 if (!MemLoc.Size.hasValue()) in canSkipClobberingStore() 374 if (MemoryLocation::get(SI).Size != MemLoc.Size) in canSkipClobberingStore() 376 if (MemLoc.Size.isScalable()) in canSkipClobberingStore() 379 MemLoc.Size.getValue().getKnownMinValue()) in canSkipClobberingStore() 385 if (BatchAA.alias(MemoryLocation::get(LI), MemLoc) != AliasResult::MustAlias) in canSkipClobberingStore() [all …]
|
H A D | AliasAnalysis.cpp | 650 const MemoryLocation &MemLoc, in callCapturesBefore() argument 656 const Value *Object = getUnderlyingObject(MemLoc.Ptr); in callCapturesBefore()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | AliasSetTracker.h | 141 void addMemoryLocation(AliasSetTracker &AST, const MemoryLocation &MemLoc, 148 AliasResult aliasesMemoryLocation(const MemoryLocation &MemLoc, 205 AliasSet &getAliasSetFor(const MemoryLocation &MemLoc); 252 AliasSet *mergeAliasSetsForMemoryLocation(const MemoryLocation &MemLoc,
|
H A D | AliasAnalysis.h | 533 const MemoryLocation &MemLoc, 536 return callCapturesBefore(I, MemLoc, DT, AAQIP); 609 const MemoryLocation &MemLoc, DominatorTree *DT, 676 const MemoryLocation &MemLoc, 678 return AA.callCapturesBefore(I, MemLoc, DT, AAQI);
|
H A D | MemoryDependenceAnalysis.h | 463 getSimplePointerDependencyFrom(const MemoryLocation &MemLoc, bool isLoad,
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | StackProtector.cpp | 263 std::optional<MemoryLocation> MemLoc = MemoryLocation::getOrNone(I); 264 if (MemLoc && MemLoc->Size.hasValue() && 265 !TypeSize::isKnownGE(AllocSize, MemLoc->Size.getValue())) 179 std::optional<MemoryLocation> MemLoc = MemoryLocation::getOrNone(I); HasAddressTaken() local
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | EarlyCSE.cpp | 1182 MemoryLocation MemLoc = *MemLocOpt; in isOperatingOnInvariantMemAt() local 1183 if (!AvailableInvariants.count(MemLoc)) in isOperatingOnInvariantMemAt() 1188 return AvailableInvariants.lookup(MemLoc) <= GenAt; in isOperatingOnInvariantMemAt() 1452 MemoryLocation MemLoc = in processNode() local 1455 if (!AvailableInvariants.count(MemLoc)) in processNode() 1456 AvailableInvariants.insert(MemLoc, CurrentGeneration); in processNode() 1568 auto MemLoc = MemoryLocation::get(&Inst); in processNode() local 1569 if (!AvailableInvariants.count(MemLoc)) in processNode() 1570 AvailableInvariants.insert(MemLoc, CurrentGeneration); in processNode()
|
H A D | LoopVersioningLICM.cpp | 266 for (const auto &MemLoc : AS) { in legalLoopMemoryAccesses() local 267 const Value *Ptr = MemLoc.Ptr; in legalLoopMemoryAccesses()
|
H A D | DeadStoreElimination.cpp | 416 MemoryLocation MemLoc; in memoryIsNotModifiedBetween() local 418 MemLoc = MemoryLocation::getForDest(MemSet); in memoryIsNotModifiedBetween() 420 MemLoc = MemoryLocation::get(SecondI); in memoryIsNotModifiedBetween() 422 auto *MemLocPtr = const_cast<Value *>(MemLoc.Ptr); in memoryIsNotModifiedBetween() 453 if (isModSet(AA.getModRefInfo(I, MemLoc.getWithNewPtr(Ptr)))) in memoryIsNotModifiedBetween()
|
H A D | LICM.cpp | 2341 for (const auto &MemLoc : *Set) in collectPromotionCandidates() 2342 PointerMustAliases.insert(const_cast<Value *>(MemLoc.Ptr)); in collectPromotionCandidates()
|