mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-13 09:33:50 +00:00
For PR387:\
Add getModRefInfo method to avoid overloaded virtuals git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18601 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ce20771ec2
commit
4a7ebfa411
@ -115,6 +115,9 @@ namespace {
|
||||
ModRefResult getModRefInfo(CallSite CS, Value *P, unsigned Size) {
|
||||
return count(getAnalysis<AliasAnalysis>().getModRefInfo(CS, P, Size));
|
||||
}
|
||||
ModRefResult getModRefInfo(CallSite CS1, CallSite CS2) {
|
||||
return AliasAnalysis::getModRefInfo(CS1,CS2);
|
||||
}
|
||||
};
|
||||
|
||||
RegisterOpt<AliasAnalysisCounter>
|
||||
|
@ -82,6 +82,9 @@ namespace {
|
||||
const Value *V2, unsigned V2Size);
|
||||
|
||||
ModRefResult getModRefInfo(CallSite CS, Value *P, unsigned Size);
|
||||
ModRefResult getModRefInfo(CallSite CS1, CallSite CS2) {
|
||||
return NoAA::getModRefInfo(CS1,CS2);
|
||||
}
|
||||
|
||||
/// hasNoModRefInfoForCalls - We can provide mod/ref information against
|
||||
/// non-escaping allocations.
|
||||
|
@ -56,6 +56,9 @@ namespace {
|
||||
void getMustAliases(Value *P, std::vector<Value*> &RetVals);
|
||||
|
||||
ModRefResult getModRefInfo(CallSite CS, Value *P, unsigned Size);
|
||||
ModRefResult getModRefInfo(CallSite CS1, CallSite CS2) {
|
||||
return AliasAnalysis::getModRefInfo(CS1,CS2);
|
||||
}
|
||||
|
||||
private:
|
||||
DSGraph *getGraphForValue(const Value *V);
|
||||
|
@ -96,6 +96,9 @@ namespace {
|
||||
AliasResult alias(const Value *V1, unsigned V1Size,
|
||||
const Value *V2, unsigned V2Size);
|
||||
ModRefResult getModRefInfo(CallSite CS, Value *P, unsigned Size);
|
||||
ModRefResult getModRefInfo(CallSite CS1, CallSite CS2) {
|
||||
return AliasAnalysis::getModRefInfo(CS1,CS2);
|
||||
}
|
||||
bool hasNoModRefInfoForCalls() const { return false; }
|
||||
|
||||
bool doesNotAccessMemory(Function *F) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user