Lines Matching refs:AliasSet
44 void AliasSet::mergeSetIn(AliasSet &AS, AliasSetTracker &AST, in mergeSetIn()
90 void AliasSetTracker::removeAliasSet(AliasSet *AS) { in removeAliasSet()
91 if (AliasSet *Fwd = AS->Forward) { in removeAliasSet()
106 void AliasSet::removeFromTracker(AliasSetTracker &AST) { in removeFromTracker()
111 void AliasSet::addMemoryLocation(AliasSetTracker &AST, in addMemoryLocation()
129 void AliasSet::addUnknownInst(Instruction *I, BatchAAResults &AA) { in addUnknownInst()
154 AliasResult AliasSet::aliasesMemoryLocation(const MemoryLocation &MemLoc, in aliasesMemoryLocation()
174 ModRefInfo AliasSet::aliasesUnknownInst(const Instruction *Inst, in aliasesUnknownInst()
203 AliasSet::PointerVector AliasSet::getPointers() const { in getPointers()
221 AliasSet *AliasSetTracker::mergeAliasSetsForMemoryLocation( in mergeAliasSetsForMemoryLocation()
222 const MemoryLocation &MemLoc, AliasSet *PtrAS, bool &MustAliasAll) { in mergeAliasSetsForMemoryLocation()
223 AliasSet *FoundSet = nullptr; in mergeAliasSetsForMemoryLocation()
225 for (AliasSet &AS : llvm::make_early_inc_range(*this)) { in mergeAliasSetsForMemoryLocation()
256 AliasSet *AliasSetTracker::findAliasSetForUnknownInst(Instruction *Inst) { in findAliasSetForUnknownInst()
257 AliasSet *FoundSet = nullptr; in findAliasSetForUnknownInst()
258 for (AliasSet &AS : llvm::make_early_inc_range(*this)) { in findAliasSetForUnknownInst()
272 AliasSet &AliasSetTracker::getAliasSetFor(const MemoryLocation &MemLoc) { in getAliasSetFor()
276 AliasSet *&MapEntry = PointerMap[MemLoc.Ptr]; in getAliasSetFor()
283 AliasSet *AS; in getAliasSetFor()
292 } else if (AliasSet *AliasAS = mergeAliasSetsForMemoryLocation( in getAliasSetFor()
298 AliasSets.push_back(AS = new AliasSet()); in getAliasSetFor()
318 addMemoryLocation(Loc, AliasSet::NoAccess); in add()
324 addMemoryLocation(MemoryLocation::get(LI), AliasSet::RefAccess); in add()
330 addMemoryLocation(MemoryLocation::get(SI), AliasSet::ModAccess); in add()
334 addMemoryLocation(MemoryLocation::get(VAAI), AliasSet::ModRefAccess); in add()
338 addMemoryLocation(MemoryLocation::getForDest(MSI), AliasSet::ModAccess); in add()
342 addMemoryLocation(MemoryLocation::getForDest(MTI), AliasSet::ModAccess); in add()
343 addMemoryLocation(MemoryLocation::getForSource(MTI), AliasSet::RefAccess); in add()
369 if (AliasSet *AS = findAliasSetForUnknownInst(Inst)) { in addUnknown()
373 AliasSets.push_back(new AliasSet()); in addUnknown()
395 return AliasSet::ModRefAccess; in add()
397 return AliasSet::ModAccess; in add()
399 return AliasSet::RefAccess; in add()
401 return AliasSet::NoAccess; in add()
444 for (const AliasSet &AS : AST) { in add()
454 addMemoryLocation(ASMemLoc, (AliasSet::AccessLattice)AS.Access); in add()
458 AliasSet &AliasSetTracker::mergeAllAliasSets() { in mergeAllAliasSets()
465 std::vector<AliasSet *> ASVector; in mergeAllAliasSets()
467 for (AliasSet &AS : *this) in mergeAllAliasSets()
472 AliasSets.push_back(new AliasSet()); in mergeAllAliasSets()
474 AliasAnyAS->Alias = AliasSet::SetMayAlias; in mergeAllAliasSets()
475 AliasAnyAS->Access = AliasSet::ModRefAccess; in mergeAllAliasSets()
480 AliasSet *FwdTo = Cur->Forward; in mergeAllAliasSets()
495 AliasSet &AliasSetTracker::addMemoryLocation(MemoryLocation Loc, in addMemoryLocation()
496 AliasSet::AccessLattice E) { in addMemoryLocation()
497 AliasSet &AS = getAliasSetFor(Loc); in addMemoryLocation()
513 void AliasSet::print(raw_ostream &OS) const { in print()
559 for (const AliasSet &AS : *this) in print()
565 LLVM_DUMP_METHOD void AliasSet::dump() const { print(dbgs()); } in dump()