mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-22 10:24:26 +00:00
[PM/AA] Remove the Location typedef from the AliasAnalysis class now
that it is its own entity in the form of MemoryLocation, and update all the callers. This is an entirely mechanical change. References to "Location" within AA subclases become "MemoryLocation", and elsewhere "AliasAnalysis::Location" becomes "MemoryLocation". Hope that helps out-of-tree folks update. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239885 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -94,7 +94,8 @@ namespace {
|
||||
//------------------------------------------------
|
||||
// Implement the AliasAnalysis API
|
||||
//
|
||||
AliasResult alias(const Location &LocA, const Location &LocB) override {
|
||||
AliasResult alias(const MemoryLocation &LocA,
|
||||
const MemoryLocation &LocB) override {
|
||||
assert(Vals.find(LocA.Ptr) != Vals.end() &&
|
||||
"Never seen value in AA before");
|
||||
assert(Vals.find(LocB.Ptr) != Vals.end() &&
|
||||
@ -103,7 +104,7 @@ namespace {
|
||||
}
|
||||
|
||||
ModRefResult getModRefInfo(ImmutableCallSite CS,
|
||||
const Location &Loc) override {
|
||||
const MemoryLocation &Loc) override {
|
||||
assert(Vals.find(Loc.Ptr) != Vals.end() && "Never seen value in AA before");
|
||||
return AliasAnalysis::getModRefInfo(CS, Loc);
|
||||
}
|
||||
@ -113,7 +114,8 @@ namespace {
|
||||
return AliasAnalysis::getModRefInfo(CS1,CS2);
|
||||
}
|
||||
|
||||
bool pointsToConstantMemory(const Location &Loc, bool OrLocal) override {
|
||||
bool pointsToConstantMemory(const MemoryLocation &Loc,
|
||||
bool OrLocal) override {
|
||||
assert(Vals.find(Loc.Ptr) != Vals.end() && "Never seen value in AA before");
|
||||
return AliasAnalysis::pointsToConstantMemory(Loc, OrLocal);
|
||||
}
|
||||
|
Reference in New Issue
Block a user