[llvm-commits] CVS: llvm/lib/Target/Sparc/MappingInfo.cpp MappingInfo.h Sparc.cpp SparcInternals.h StackSlots.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Aug 12 21:39:01 PDT 2003


Changes in directory llvm/lib/Target/Sparc:

MappingInfo.cpp updated: 1.10 -> 1.11
MappingInfo.h updated: 1.2 -> 1.3
Sparc.cpp updated: 1.74 -> 1.75
SparcInternals.h updated: 1.96 -> 1.97
StackSlots.cpp updated: 1.5 -> 1.6

---
Log message:

Adjust files for move of mapping info stuff into the Sparc directory


---
Diffs of the changes:

Index: llvm/lib/Target/Sparc/MappingInfo.cpp
diff -u llvm/lib/Target/Sparc/MappingInfo.cpp:1.10 llvm/lib/Target/Sparc/MappingInfo.cpp:1.11
--- llvm/lib/Target/Sparc/MappingInfo.cpp:1.10	Wed Jun  4 17:07:10 2003
+++ llvm/lib/Target/Sparc/MappingInfo.cpp	Tue Aug 12 21:38:16 2003
@@ -35,10 +35,9 @@
 //
 //===--------------------------------------------------------------------===//
 
-#include "llvm/Reoptimizer/Mapping/MappingInfo.h"
+#include "MappingInfo.h"
 #include "llvm/Pass.h"
 #include "llvm/Module.h"
-#include "llvm/CodeGen/MachineInstr.h"
 #include "llvm/CodeGen/MachineFunction.h"
 #include "llvm/CodeGen/MachineCodeForInstruction.h"
 


Index: llvm/lib/Target/Sparc/MappingInfo.h
diff -u llvm/lib/Target/Sparc/MappingInfo.h:1.2 llvm/lib/Target/Sparc/MappingInfo.h:1.3
--- llvm/lib/Target/Sparc/MappingInfo.h:1.2	Wed Jun  4 17:02:47 2003
+++ llvm/lib/Target/Sparc/MappingInfo.h	Tue Aug 12 21:38:16 2003
@@ -1,12 +1,12 @@
-//===- llvm/Reoptimizer/Mapping/MappingInfo.h ------------------*- C++ -*--=////
+//===- lib/Target/Sparc/MappingInfo.h ---------------------------*- C++ -*-===//
 //
 // Data structures to support the Reoptimizer's Instruction-to-MachineInstr
 // mapping information gatherer.
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_REOPTIMIZER_MAPPING_MAPPINGINFO_H
-#define LLVM_REOPTIMIZER_MAPPING_MAPPINGINFO_H
+#ifndef MAPPINGINFO_H
+#define MAPPINGINFO_H
 
 #include <iosfwd>
 #include <vector>
@@ -16,9 +16,8 @@
 Pass *getMappingInfoCollector(std::ostream &out);
 
 class MappingInfo {
-  class byteVector : public std::vector <unsigned char> {
-  public:
-	void dumpAssembly (std::ostream &Out);
+  struct byteVector : public std::vector <unsigned char> {
+    void dumpAssembly (std::ostream &Out);
   };
   std::string comment;
   std::string symbolPrefix;
@@ -26,11 +25,11 @@
   byteVector bytes;
 public:
   void outByte (unsigned char b) { bytes.push_back (b); }
-  MappingInfo (std::string _comment, std::string _symbolPrefix,
-	           unsigned _functionNumber) : comment(_comment),
-        	   symbolPrefix(_symbolPrefix), functionNumber(_functionNumber) { }
+  MappingInfo (std::string Comment, std::string SymbolPrefix,
+	           unsigned FunctionNumber) : comment(Comment),
+        	   symbolPrefix(SymbolPrefix), functionNumber(FunctionNumber) {}
   void dumpAssembly (std::ostream &Out);
-  unsigned char *getBytes (unsigned int &length) {
+  unsigned char *getBytes (unsigned &length) {
 	length = bytes.size(); return &bytes[0];
   }
 };


Index: llvm/lib/Target/Sparc/Sparc.cpp
diff -u llvm/lib/Target/Sparc/Sparc.cpp:1.74 llvm/lib/Target/Sparc/Sparc.cpp:1.75
--- llvm/lib/Target/Sparc/Sparc.cpp:1.74	Tue Aug 12 10:51:02 2003
+++ llvm/lib/Target/Sparc/Sparc.cpp	Tue Aug 12 21:38:16 2003
@@ -6,22 +6,21 @@
 //===----------------------------------------------------------------------===//
 
 #include "SparcInternals.h"
-#include "llvm/Target/TargetMachineImpls.h"
+#include "MappingInfo.h" 
 #include "llvm/Function.h"
 #include "llvm/PassManager.h"
+#include "llvm/Assembly/PrintModulePass.h"
 #include "llvm/Transforms/Scalar.h"
 #include "llvm/CodeGen/MachineFunction.h"
 #include "llvm/CodeGen/MachineFunctionInfo.h"
 #include "llvm/CodeGen/PreSelection.h"
-#include "llvm/CodeGen/StackSlots.h"
 #include "llvm/CodeGen/PeepholeOpts.h"
 #include "llvm/CodeGen/InstrSelection.h"
 #include "llvm/CodeGen/InstrScheduling.h"
 #include "llvm/CodeGen/RegisterAllocation.h"
 #include "llvm/CodeGen/MachineCodeForInstruction.h"
-#include "llvm/Reoptimizer/Mapping/MappingInfo.h" 
+#include "llvm/Target/TargetMachineImpls.h"
 #include "Support/CommandLine.h"
-#include "llvm/Assembly/PrintModulePass.h"
 
 static const unsigned ImplicitRegUseList[] = { 0 }; /* not used yet */
 // Build the MachineInstruction Description Array...


Index: llvm/lib/Target/Sparc/SparcInternals.h
diff -u llvm/lib/Target/Sparc/SparcInternals.h:1.96 llvm/lib/Target/Sparc/SparcInternals.h:1.97
--- llvm/lib/Target/Sparc/SparcInternals.h:1.96	Tue Jul 29 14:54:41 2003
+++ llvm/lib/Target/Sparc/SparcInternals.h	Tue Aug 12 21:38:16 2003
@@ -650,8 +650,13 @@
 /// instructions. This pass enables the usage of the JIT register allocator(s).
 Pass *createAddRegNumToValuesPass();
 
+/// createStackSlotsPass - External interface to stack-slots pass that enters 2
+/// empty slots at the top of each function stack
+Pass *createStackSlotsPass(const TargetMachine &TM);
+
+
 //---------------------------------------------------------------------------
-// class UltraSparcMachine 
+// class UltraSparc 
 // 
 // Purpose:
 //   Primary interface to machine description for the UltraSPARC.


Index: llvm/lib/Target/Sparc/StackSlots.cpp
diff -u llvm/lib/Target/Sparc/StackSlots.cpp:1.5 llvm/lib/Target/Sparc/StackSlots.cpp:1.6
--- llvm/lib/Target/Sparc/StackSlots.cpp:1.5	Tue Jan 14 15:58:45 2003
+++ llvm/lib/Target/Sparc/StackSlots.cpp	Tue Aug 12 21:38:16 2003
@@ -6,8 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/CodeGen/StackSlots.h"
-#include "llvm/Target/TargetMachine.h"
+#include "SparcInternals.h"
 #include "llvm/Constant.h"
 #include "llvm/Function.h"
 #include "llvm/DerivedTypes.h"





More information about the llvm-commits mailing list