diff options
| author | Andrew Trick <atrick@apple.com> | 2012-02-08 21:23:13 +0000 |
|---|---|---|
| committer | Andrew Trick <atrick@apple.com> | 2012-02-08 21:23:13 +0000 |
| commit | 1fa5bcbe2ae447344d6cbba3f19daa9a5bed5de8 (patch) | |
| tree | aa75a14f62673ecf5b1e2c4e17c1289336597211 /llvm/lib/CodeGen/PostRASchedulerList.cpp | |
| parent | c40815de62286ee6e324cb0a342db85e0a5a3c23 (diff) | |
| download | bcm5719-llvm-1fa5bcbe2ae447344d6cbba3f19daa9a5bed5de8.tar.gz bcm5719-llvm-1fa5bcbe2ae447344d6cbba3f19daa9a5bed5de8.zip | |
Codegen pass definition cleanup. No functionality.
Moving toward a uniform style of pass definition to allow easier target configuration.
Globally declare Pass ID.
Globally declare pass initializer.
Use INITIALIZE_PASS consistently.
Add a call to the initializer from CodeGen.cpp.
Remove redundant "createPass" functions and "getPassName" methods.
While cleaning up declarations, cleaned up comments (sorry for large diff).
llvm-svn: 150100
Diffstat (limited to 'llvm/lib/CodeGen/PostRASchedulerList.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/PostRASchedulerList.cpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/llvm/lib/CodeGen/PostRASchedulerList.cpp b/llvm/lib/CodeGen/PostRASchedulerList.cpp index bc81464954b..a52aa75221a 100644 --- a/llvm/lib/CodeGen/PostRASchedulerList.cpp +++ b/llvm/lib/CodeGen/PostRASchedulerList.cpp @@ -98,10 +98,6 @@ namespace { MachineFunctionPass::getAnalysisUsage(AU); } - const char *getPassName() const { - return "Post RA top-down list latency scheduler"; - } - bool runOnMachineFunction(MachineFunction &Fn); }; char PostRAScheduler::ID = 0; @@ -179,6 +175,11 @@ namespace { }; } +char &llvm::PostRASchedulerID = PostRAScheduler::ID; + +INITIALIZE_PASS(PostRAScheduler, "post-RA-sched", + "Post RA top-down list latency scheduler", false, false) + SchedulePostRATDList::SchedulePostRATDList( MachineFunction &MF, MachineLoopInfo &MLI, MachineDominatorTree &MDT, AliasAnalysis *AA, const RegisterClassInfo &RCI, @@ -707,11 +708,3 @@ void SchedulePostRATDList::ListScheduleTopDown() { VerifySchedule(/*isBottomUp=*/false); #endif } - -//===----------------------------------------------------------------------===// -// Public Constructor Functions -//===----------------------------------------------------------------------===// - -FunctionPass *llvm::createPostRAScheduler() { - return new PostRAScheduler(); -} |

