mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-23 22:52:48 +00:00
Add new -no-aa implementation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5641 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d501c13b7d
commit
8dcd17c938
@ -97,3 +97,22 @@ bool AliasAnalysis::canInstructionRangeModify(const Instruction &I1,
|
|||||||
extern void BasicAAStub();
|
extern void BasicAAStub();
|
||||||
static IncludeFile INCLUDE_BASICAA_CPP((void*)&BasicAAStub);
|
static IncludeFile INCLUDE_BASICAA_CPP((void*)&BasicAAStub);
|
||||||
|
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
struct NoAA : public ImmutablePass, public AliasAnalysis {
|
||||||
|
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||||
|
AliasAnalysis::getAnalysisUsage(AU);
|
||||||
|
}
|
||||||
|
|
||||||
|
virtual void initializePass() {
|
||||||
|
InitializeAliasAnalysis(this);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// Register this pass...
|
||||||
|
RegisterOpt<NoAA>
|
||||||
|
X("no-aa", "No Alias Analysis (always returns 'may' alias)");
|
||||||
|
|
||||||
|
// Declare that we implement the AliasAnalysis interface
|
||||||
|
RegisterAnalysisGroup<AliasAnalysis, NoAA> Y;
|
||||||
|
} // End of anonymous namespace
|
||||||
|
Loading…
x
Reference in New Issue
Block a user