summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-09-01 20:33:07 +0000
committerChris Lattner <sabre@nondot.org>2003-09-01 20:33:07 +0000
commit0792315409f660bfe3038537fbd545a5707f255e (patch)
tree21f37abd99d0c07b4e7cc4a038dc622d94c384b6 /llvm/lib/Target/Sparc
parente722930efddc1aa4789d12971ef473a6fbf1b6e2 (diff)
downloadbcm5719-llvm-0792315409f660bfe3038537fbd545a5707f255e.tar.gz
bcm5719-llvm-0792315409f660bfe3038537fbd545a5707f255e.zip
Move private interfaces into private .h file
llvm-svn: 8306
Diffstat (limited to 'llvm/lib/Target/Sparc')
-rw-r--r--llvm/lib/Target/Sparc/PeepholeOpts.cpp2
-rw-r--r--llvm/lib/Target/Sparc/PreSelection.cpp2
-rw-r--r--llvm/lib/Target/Sparc/Sparc.cpp2
-rw-r--r--llvm/lib/Target/Sparc/SparcInternals.h7
4 files changed, 9 insertions, 4 deletions
diff --git a/llvm/lib/Target/Sparc/PeepholeOpts.cpp b/llvm/lib/Target/Sparc/PeepholeOpts.cpp
index 0bf448339c2..1ec9821507d 100644
--- a/llvm/lib/Target/Sparc/PeepholeOpts.cpp
+++ b/llvm/lib/Target/Sparc/PeepholeOpts.cpp
@@ -5,7 +5,7 @@
//
//===----------------------------------------------------------------------===//
-#include "llvm/CodeGen/PeepholeOpts.h"
+#include "SparcInternals.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/Target/TargetMachine.h"
diff --git a/llvm/lib/Target/Sparc/PreSelection.cpp b/llvm/lib/Target/Sparc/PreSelection.cpp
index 8895613d32e..a03a1826e75 100644
--- a/llvm/lib/Target/Sparc/PreSelection.cpp
+++ b/llvm/lib/Target/Sparc/PreSelection.cpp
@@ -8,7 +8,7 @@
//
//===----------------------------------------------------------------------===//
-#include "llvm/CodeGen/PreSelection.h"
+#include "SparcInternals.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetInstrInfo.h"
#include "llvm/Transforms/Scalar.h"
diff --git a/llvm/lib/Target/Sparc/Sparc.cpp b/llvm/lib/Target/Sparc/Sparc.cpp
index e84a6eb2d9e..a474494f0c6 100644
--- a/llvm/lib/Target/Sparc/Sparc.cpp
+++ b/llvm/lib/Target/Sparc/Sparc.cpp
@@ -13,8 +13,6 @@
#include "llvm/Transforms/Scalar.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineFunctionInfo.h"
-#include "llvm/CodeGen/PreSelection.h"
-#include "llvm/CodeGen/PeepholeOpts.h"
#include "llvm/CodeGen/InstrSelection.h"
#include "llvm/CodeGen/InstrScheduling.h"
#include "llvm/CodeGen/RegisterAllocation.h"
diff --git a/llvm/lib/Target/Sparc/SparcInternals.h b/llvm/lib/Target/Sparc/SparcInternals.h
index cda537526eb..172f56bd178 100644
--- a/llvm/lib/Target/Sparc/SparcInternals.h
+++ b/llvm/lib/Target/Sparc/SparcInternals.h
@@ -654,6 +654,13 @@ Pass *createAddRegNumToValuesPass();
/// empty slots at the top of each function stack
Pass *createStackSlotsPass(const TargetMachine &TM);
+// Interface to pre-selection pass that specializes LLVM code for a target
+// machine.
+Pass *createPreSelectionPass(TargetMachine &Target);
+
+// External interface to peephole optimization pass operating on machine code.
+FunctionPass *createPeepholeOptsPass(TargetMachine &Target);
+
//---------------------------------------------------------------------------
// class UltraSparc
OpenPOWER on IntegriCloud