diff options
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPC.h | 14 | ||||
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCBranchCoalescing.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCBranchSelector.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCCTRLoops.cpp | 7 | ||||
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCEarlyReturn.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCLoopPreIncPrep.cpp | 6 | ||||
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCQPXLoadSplat.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCReduceCRLogicals.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCTLSDynamicCall.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCTOCRegDeps.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCTargetMachine.cpp | 14 | ||||
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCVSXCopy.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCVSXSwapRemoval.cpp | 4 |
13 files changed, 49 insertions, 28 deletions
diff --git a/llvm/lib/Target/PowerPC/PPC.h b/llvm/lib/Target/PowerPC/PPC.h index 1f6f96de816..85df85e0c49 100644 --- a/llvm/lib/Target/PowerPC/PPC.h +++ b/llvm/lib/Target/PowerPC/PPC.h @@ -56,26 +56,12 @@ namespace llvm { MCOperand &OutMO, AsmPrinter &AP, bool isDarwin); - void initializePPCCTRLoopsPass(PassRegistry&); -#ifndef NDEBUG - void initializePPCCTRLoopsVerifyPass(PassRegistry&); -#endif - void initializePPCLoopPreIncPrepPass(PassRegistry&); - void initializePPCTOCRegDepsPass(PassRegistry&); - void initializePPCEarlyReturnPass(PassRegistry&); - void initializePPCVSXCopyPass(PassRegistry&); void initializePPCVSXFMAMutatePass(PassRegistry&); - void initializePPCVSXSwapRemovalPass(PassRegistry&); - void initializePPCReduceCRLogicalsPass(PassRegistry&); - void initializePPCBSelPass(PassRegistry&); - void initializePPCBranchCoalescingPass(PassRegistry&); - void initializePPCQPXLoadSplatPass(PassRegistry&); void initializePPCBoolRetToIntPass(PassRegistry&); void initializePPCExpandISELPass(PassRegistry &); void initializePPCPreEmitPeepholePass(PassRegistry &); void initializePPCTLSDynamicCallPass(PassRegistry &); void initializePPCMIPeepholePass(PassRegistry&); - extern char &PPCVSXFMAMutateID; namespace PPCII { diff --git a/llvm/lib/Target/PowerPC/PPCBranchCoalescing.cpp b/llvm/lib/Target/PowerPC/PPCBranchCoalescing.cpp index 5e9a661f8f0..58f80bd46dc 100644 --- a/llvm/lib/Target/PowerPC/PPCBranchCoalescing.cpp +++ b/llvm/lib/Target/PowerPC/PPCBranchCoalescing.cpp @@ -33,6 +33,10 @@ STATISTIC(NumBlocksCoalesced, "Number of blocks coalesced"); STATISTIC(NumPHINotMoved, "Number of PHI Nodes that cannot be merged"); STATISTIC(NumBlocksNotCoalesced, "Number of blocks not coalesced"); +namespace llvm { + void initializePPCBranchCoalescingPass(PassRegistry&); +} + //===----------------------------------------------------------------------===// // PPCBranchCoalescing //===----------------------------------------------------------------------===// diff --git a/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp b/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp index 793d690baec..fcef3df5072 100644 --- a/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp +++ b/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp @@ -32,6 +32,10 @@ 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; diff --git a/llvm/lib/Target/PowerPC/PPCCTRLoops.cpp b/llvm/lib/Target/PowerPC/PPCCTRLoops.cpp index 3c24af1df97..526e06aeb2a 100644 --- a/llvm/lib/Target/PowerPC/PPCCTRLoops.cpp +++ b/llvm/lib/Target/PowerPC/PPCCTRLoops.cpp @@ -80,6 +80,13 @@ SmallCTRLoopThreshold("min-ctr-loop-threshold", cl::init(4), cl::Hidden, STATISTIC(NumCTRLoops, "Number of loops converted to CTR loops"); +namespace llvm { + void initializePPCCTRLoopsPass(PassRegistry&); +#ifndef NDEBUG + void initializePPCCTRLoopsVerifyPass(PassRegistry&); +#endif +} + namespace { struct PPCCTRLoops : public FunctionPass { diff --git a/llvm/lib/Target/PowerPC/PPCEarlyReturn.cpp b/llvm/lib/Target/PowerPC/PPCEarlyReturn.cpp index 6c08bcde1b3..8cc973a9ff4 100644 --- a/llvm/lib/Target/PowerPC/PPCEarlyReturn.cpp +++ b/llvm/lib/Target/PowerPC/PPCEarlyReturn.cpp @@ -36,6 +36,10 @@ using namespace llvm; STATISTIC(NumBCLR, "Number of early conditional returns"); STATISTIC(NumBLR, "Number of early returns"); +namespace llvm { + void initializePPCEarlyReturnPass(PassRegistry&); +} + namespace { // PPCEarlyReturn pass - For simple functions without epilogue code, move // returns up, and create conditional returns, to avoid unnecessary diff --git a/llvm/lib/Target/PowerPC/PPCLoopPreIncPrep.cpp b/llvm/lib/Target/PowerPC/PPCLoopPreIncPrep.cpp index 9689e8c590a..264dbbdc84e 100644 --- a/llvm/lib/Target/PowerPC/PPCLoopPreIncPrep.cpp +++ b/llvm/lib/Target/PowerPC/PPCLoopPreIncPrep.cpp @@ -64,6 +64,12 @@ static cl::opt<unsigned> MaxVars("ppc-preinc-prep-max-vars", STATISTIC(PHINodeAlreadyExists, "PHI node already in pre-increment form"); +namespace llvm { + + void initializePPCLoopPreIncPrepPass(PassRegistry&); + +} // end namespace llvm + namespace { class PPCLoopPreIncPrep : public FunctionPass { diff --git a/llvm/lib/Target/PowerPC/PPCQPXLoadSplat.cpp b/llvm/lib/Target/PowerPC/PPCQPXLoadSplat.cpp index 3a83cc27439..e0faae057c2 100644 --- a/llvm/lib/Target/PowerPC/PPCQPXLoadSplat.cpp +++ b/llvm/lib/Target/PowerPC/PPCQPXLoadSplat.cpp @@ -30,6 +30,10 @@ using namespace llvm; STATISTIC(NumSimplified, "Number of QPX load splats simplified"); +namespace llvm { + void initializePPCQPXLoadSplatPass(PassRegistry&); +} + namespace { struct PPCQPXLoadSplat : public MachineFunctionPass { static char ID; diff --git a/llvm/lib/Target/PowerPC/PPCReduceCRLogicals.cpp b/llvm/lib/Target/PowerPC/PPCReduceCRLogicals.cpp index 45f8907a08e..e4f6579f9bd 100644 --- a/llvm/lib/Target/PowerPC/PPCReduceCRLogicals.cpp +++ b/llvm/lib/Target/PowerPC/PPCReduceCRLogicals.cpp @@ -48,6 +48,10 @@ STATISTIC(NumNotSplitChainCopies, STATISTIC(NumNotSplitWrongOpcode, "Number of blocks not split due to the wrong opcode."); +namespace llvm { + void initializePPCReduceCRLogicalsPass(PassRegistry&); +} + /// Given a basic block \p Successor that potentially contains PHIs, this /// function will look for any incoming values in the PHIs that are supposed to /// be coming from \p OrigMBB but whose definition is actually in \p NewMBB. diff --git a/llvm/lib/Target/PowerPC/PPCTLSDynamicCall.cpp b/llvm/lib/Target/PowerPC/PPCTLSDynamicCall.cpp index fb826c4a32f..657ec4af4be 100644 --- a/llvm/lib/Target/PowerPC/PPCTLSDynamicCall.cpp +++ b/llvm/lib/Target/PowerPC/PPCTLSDynamicCall.cpp @@ -34,6 +34,10 @@ using namespace llvm; #define DEBUG_TYPE "ppc-tls-dynamic-call" +namespace llvm { + void initializePPCTLSDynamicCallPass(PassRegistry&); +} + namespace { struct PPCTLSDynamicCall : public MachineFunctionPass { static char ID; diff --git a/llvm/lib/Target/PowerPC/PPCTOCRegDeps.cpp b/llvm/lib/Target/PowerPC/PPCTOCRegDeps.cpp index 3eb0569fb95..5e45d643d69 100644 --- a/llvm/lib/Target/PowerPC/PPCTOCRegDeps.cpp +++ b/llvm/lib/Target/PowerPC/PPCTOCRegDeps.cpp @@ -82,6 +82,10 @@ using namespace llvm; #define DEBUG_TYPE "ppc-toc-reg-deps" +namespace llvm { + void initializePPCTOCRegDepsPass(PassRegistry&); +} + namespace { // PPCTOCRegDeps pass - For simple functions without epilogue code, move // returns up, and create conditional returns, to avoid unnecessary diff --git a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp index d45a6e555b7..444a3a587a4 100644 --- a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp +++ b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp @@ -100,20 +100,6 @@ extern "C" void LLVMInitializePowerPCTarget() { RegisterTargetMachine<PPCTargetMachine> C(getThePPC64LETarget()); PassRegistry &PR = *PassRegistry::getPassRegistry(); - initializePPCCTRLoopsPass(PR); -#ifndef NDEBUG - initializePPCCTRLoopsVerifyPass(PR); -#endif - initializePPCLoopPreIncPrepPass(PR); - initializePPCTOCRegDepsPass(PR); - initializePPCEarlyReturnPass(PR); - initializePPCVSXCopyPass(PR); - initializePPCVSXFMAMutatePass(PR); - initializePPCVSXSwapRemovalPass(PR); - initializePPCReduceCRLogicalsPass(PR); - initializePPCBSelPass(PR); - initializePPCBranchCoalescingPass(PR); - initializePPCQPXLoadSplatPass(PR); initializePPCBoolRetToIntPass(PR); initializePPCExpandISELPass(PR); initializePPCPreEmitPeepholePass(PR); diff --git a/llvm/lib/Target/PowerPC/PPCVSXCopy.cpp b/llvm/lib/Target/PowerPC/PPCVSXCopy.cpp index 719ed7b6387..f7c3387cc8b 100644 --- a/llvm/lib/Target/PowerPC/PPCVSXCopy.cpp +++ b/llvm/lib/Target/PowerPC/PPCVSXCopy.cpp @@ -36,6 +36,10 @@ using namespace llvm; #define DEBUG_TYPE "ppc-vsx-copy" +namespace llvm { + void initializePPCVSXCopyPass(PassRegistry&); +} + namespace { // PPCVSXCopy pass - For copies between VSX registers and non-VSX registers // (Altivec and scalar floating-point registers), we need to transform the diff --git a/llvm/lib/Target/PowerPC/PPCVSXSwapRemoval.cpp b/llvm/lib/Target/PowerPC/PPCVSXSwapRemoval.cpp index b1ddbb6b837..4e01e77c624 100644 --- a/llvm/lib/Target/PowerPC/PPCVSXSwapRemoval.cpp +++ b/llvm/lib/Target/PowerPC/PPCVSXSwapRemoval.cpp @@ -59,6 +59,10 @@ using namespace llvm; #define DEBUG_TYPE "ppc-vsx-swaps" +namespace llvm { + void initializePPCVSXSwapRemovalPass(PassRegistry&); +} + namespace { // A PPCVSXSwapEntry is created for each machine instruction that |

