aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/StrongPHIElimination.cpp
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@apple.com>2010-12-05 22:34:08 +0000
committerCameron Zwarich <zwarich@apple.com>2010-12-05 22:34:08 +0000
commit9eaf49b320e7725fbf4e24721d91a69a6d36938f (patch)
treea83c1c9e51a2e77a4ec973ed7a89d60c12800279 /lib/CodeGen/StrongPHIElimination.cpp
parent48575f6ea7d5cd21ab29ca370f58fcf9ca31400b (diff)
Some cleanup before I start committing some incremental progress on
StrongPHIElimination. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120961 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/StrongPHIElimination.cpp')
-rw-r--r--lib/CodeGen/StrongPHIElimination.cpp43
1 files changed, 22 insertions, 21 deletions
diff --git a/lib/CodeGen/StrongPHIElimination.cpp b/lib/CodeGen/StrongPHIElimination.cpp
index 0ecea6d6bc..c62b1cd360 100644
--- a/lib/CodeGen/StrongPHIElimination.cpp
+++ b/lib/CodeGen/StrongPHIElimination.cpp
@@ -19,28 +19,16 @@
using namespace llvm;
namespace {
-class StrongPHIElimination : public MachineFunctionPass {
-public:
- static char ID; // Pass identification, replacement for typeid
- StrongPHIElimination() : MachineFunctionPass(ID) {
- initializeStrongPHIEliminationPass(*PassRegistry::getPassRegistry());
- }
+ class StrongPHIElimination : public MachineFunctionPass {
+ public:
+ static char ID; // Pass identification, replacement for typeid
+ StrongPHIElimination() : MachineFunctionPass(ID) {
+ initializeStrongPHIEliminationPass(*PassRegistry::getPassRegistry());
+ }
-private:
- bool runOnMachineFunction(MachineFunction &Fn) {
- llvm_unreachable("Strong phi elimination is not implemented");
- }
-
- virtual void getAnalysisUsage(AnalysisUsage &AU) const {
- AU.setPreservesCFG();
- AU.addRequired<MachineDominatorTree>();
- AU.addRequired<SlotIndexes>();
- AU.addPreserved<SlotIndexes>();
- AU.addRequired<LiveIntervals>();
- AU.addPreserved<LiveIntervals>();
- MachineFunctionPass::getAnalysisUsage(AU);
- }
-};
+ virtual void getAnalysisUsage(AnalysisUsage&) const;
+ bool runOnMachineFunction(MachineFunction&);
+ };
} // namespace
char StrongPHIElimination::ID = 0;
@@ -54,3 +42,16 @@ INITIALIZE_PASS_END(StrongPHIElimination, "strong-phi-node-elimination",
char &llvm::StrongPHIEliminationID = StrongPHIElimination::ID;
+void StrongPHIElimination::getAnalysisUsage(AnalysisUsage& AU) const {
+ AU.setPreservesCFG();
+ AU.addRequired<MachineDominatorTree>();
+ AU.addRequired<SlotIndexes>();
+ AU.addPreserved<SlotIndexes>();
+ AU.addRequired<LiveIntervals>();
+ AU.addPreserved<LiveIntervals>();
+ MachineFunctionPass::getAnalysisUsage(AU);
+}
+
+bool StrongPHIElimination::runOnMachineFunction(MachineFunction& Fn) {
+ llvm_unreachable("Strong phi elimination is not implemented");
+}