mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-27 15:02:16 +00:00
For PR387:\
Add getModRefInfo method to avoid overloaded virtuals llvm-svn: 18601
This commit is contained in:
parent
8db74faeb6
commit
d0d846cd06
@ -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