summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2013-02-13 17:40:07 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2013-02-13 17:40:07 +0000
commit2680b53d900e60ea1c285997e925d1da24ce0b4c (patch)
treeb960922b34f4d40795b23cb1ff13ee8372c23b3e /llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
parent8e2637e2b00eea944e8ada6106d3cbf00c46a223 (diff)
downloadbcm5719-llvm-2680b53d900e60ea1c285997e925d1da24ce0b4c.tar.gz
bcm5719-llvm-2680b53d900e60ea1c285997e925d1da24ce0b4c.zip
Add registration for PPC-specific passes to allow the IR to be dumped
via -print-after-all. llvm-svn: 175058
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCBranchSelector.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCBranchSelector.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp b/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
index 99115752f71..bd1c3786811 100644
--- a/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
+++ b/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
@@ -28,10 +28,16 @@ using namespace llvm;
STATISTIC(NumExpanded, "Number of branches expanded to long format");
+namespace llvm {
+ void initializePPCBSelPass(PassRegistry&);
+}
+
namespace {
struct PPCBSel : public MachineFunctionPass {
static char ID;
- PPCBSel() : MachineFunctionPass(ID) {}
+ PPCBSel() : MachineFunctionPass(ID) {
+ initializePPCBSelPass(*PassRegistry::getPassRegistry());
+ }
/// BlockSizes - The sizes of the basic blocks in the function.
std::vector<unsigned> BlockSizes;
@@ -45,6 +51,9 @@ namespace {
char PPCBSel::ID = 0;
}
+INITIALIZE_PASS(PPCBSel, "ppc-branch-select", "PowerPC Branch Selector",
+ false, false)
+
/// createPPCBranchSelectionPass - returns an instance of the Branch Selection
/// Pass
///
OpenPOWER on IntegriCloud