[llvm-commits] CVS: llvm/lib/Target/SparcV9/SparcV9AsmPrinter.cpp SparcV9Internals.h SparcV9TargetMachine.cpp SparcV9TargetMachine.h

Brian Gaeke gaeke at cs.uiuc.edu
Mon Mar 1 00:44:01 PST 2004


Changes in directory llvm/lib/Target/SparcV9:

SparcV9AsmPrinter.cpp updated: 1.108 -> 1.109
SparcV9Internals.h updated: 1.111 -> 1.112
SparcV9TargetMachine.cpp updated: 1.102 -> 1.103
SparcV9TargetMachine.h updated: 1.5 -> 1.6

---
Log message:

TargetCacheInfo has been removed; its only uses were to propagate a constant
(16) into certain areas of the SPARC V9 back-end. I'm fairly sure the US IIIi's
dcache has 32-byte lines, so I'm not sure where the 16 came from. However, in
the interest of not breaking things any more than they already are, I'm going
to leave the constant alone.


---
Diffs of the changes:  (+1 -18)

Index: llvm/lib/Target/SparcV9/SparcV9AsmPrinter.cpp
diff -u llvm/lib/Target/SparcV9/SparcV9AsmPrinter.cpp:1.108 llvm/lib/Target/SparcV9/SparcV9AsmPrinter.cpp:1.109
--- llvm/lib/Target/SparcV9/SparcV9AsmPrinter.cpp:1.108	Wed Feb 25 12:44:15 2004
+++ llvm/lib/Target/SparcV9/SparcV9AsmPrinter.cpp	Mon Mar  1 00:43:28 2004
@@ -119,7 +119,7 @@
   /// 
   inline unsigned int
   SizeToAlignment(unsigned int size, const TargetMachine& target) {
-    unsigned short cacheLineSize = target.getCacheInfo().getCacheLineSize(1); 
+    const unsigned short cacheLineSize = 16;
     if (size > (unsigned) cacheLineSize / 2)
       return cacheLineSize;
     else


Index: llvm/lib/Target/SparcV9/SparcV9Internals.h
diff -u llvm/lib/Target/SparcV9/SparcV9Internals.h:1.111 llvm/lib/Target/SparcV9/SparcV9Internals.h:1.112
--- llvm/lib/Target/SparcV9/SparcV9Internals.h:1.111	Wed Feb 25 12:44:15 2004
+++ llvm/lib/Target/SparcV9/SparcV9Internals.h	Mon Mar  1 00:43:29 2004
@@ -19,7 +19,6 @@
 #include "llvm/Target/TargetMachine.h"
 #include "llvm/Target/TargetSchedInfo.h"
 #include "llvm/Target/TargetFrameInfo.h"
-#include "llvm/Target/TargetCacheInfo.h"
 #include "llvm/Target/TargetRegInfo.h"
 #include "llvm/Type.h"
 #include "SparcV9RegClassInfo.h"
@@ -88,19 +87,6 @@
 protected:
   virtual void initializeResources();
 };
-
-//---------------------------------------------------------------------------
-// class SparcV9CacheInfo 
-// 
-// Purpose:
-//   Interface to cache parameters for the UltraSPARC.
-//   Just use defaults for now.
-//---------------------------------------------------------------------------
-
-struct SparcV9CacheInfo: public TargetCacheInfo {
-  SparcV9CacheInfo(const TargetMachine &T) : TargetCacheInfo(T) {} 
-};
-
 
 /// createStackSlotsPass - External interface to stack-slots pass that enters 2
 /// empty slots at the top of each function stack


Index: llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp
diff -u llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp:1.102 llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp:1.103
--- llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp:1.102	Fri Feb 27 15:15:40 2004
+++ llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp	Mon Mar  1 00:43:29 2004
@@ -116,7 +116,6 @@
     schedInfo(*this),
     regInfo(*this),
     frameInfo(*this),
-    cacheInfo(*this),
     jitInfo(*this) {
 }
 


Index: llvm/lib/Target/SparcV9/SparcV9TargetMachine.h
diff -u llvm/lib/Target/SparcV9/SparcV9TargetMachine.h:1.5 llvm/lib/Target/SparcV9/SparcV9TargetMachine.h:1.6
--- llvm/lib/Target/SparcV9/SparcV9TargetMachine.h:1.5	Wed Feb 25 12:44:15 2004
+++ llvm/lib/Target/SparcV9/SparcV9TargetMachine.h	Mon Mar  1 00:43:29 2004
@@ -30,7 +30,6 @@
   SparcV9SchedInfo schedInfo;
   SparcV9RegInfo   regInfo;
   SparcV9FrameInfo frameInfo;
-  SparcV9CacheInfo cacheInfo;
   SparcV9JITInfo   jitInfo;
 public:
   SparcV9TargetMachine(IntrinsicLowering *IL);
@@ -39,7 +38,6 @@
   virtual const TargetSchedInfo  &getSchedInfo() const { return schedInfo; }
   virtual const TargetRegInfo    &getRegInfo()   const { return regInfo; }
   virtual const TargetFrameInfo  &getFrameInfo() const { return frameInfo; }
-  virtual const TargetCacheInfo  &getCacheInfo() const { return cacheInfo; }
   virtual       TargetJITInfo    *getJITInfo()         { return &jitInfo; }
 
   virtual bool addPassesToEmitAssembly(PassManager &PM, std::ostream &Out);





More information about the llvm-commits mailing list