[llvm-commits] CVS: llvm/lib/Target/TargetMachine.cpp

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


Changes in directory llvm/lib/Target:

TargetMachine.cpp updated: 1.21 -> 1.22

---
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:  (+0 -19)

Index: llvm/lib/Target/TargetMachine.cpp
diff -u llvm/lib/Target/TargetMachine.cpp:1.21 llvm/lib/Target/TargetMachine.cpp:1.22
--- llvm/lib/Target/TargetMachine.cpp:1.21	Sun Dec 28 15:23:38 2003
+++ llvm/lib/Target/TargetMachine.cpp	Mon Mar  1 00:43:28 2004
@@ -8,12 +8,10 @@
 //===----------------------------------------------------------------------===//
 //
 // This file describes the general parts of a Target machine.
-// This file also implements TargetCacheInfo.
 //
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Target/TargetMachine.h"
-#include "llvm/Target/TargetCacheInfo.h"
 #include "llvm/Type.h"
 #include "llvm/IntrinsicLowering.h"
 using namespace llvm;
@@ -33,31 +31,14 @@
   IL = il ? il : new DefaultIntrinsicLowering();
 }
 
-
-
 TargetMachine::~TargetMachine() {
   delete IL;
 }
 
-
-
-
 unsigned TargetMachine::findOptimalStorageSize(const Type *Ty) const {
   // All integer types smaller than ints promote to 4 byte integers.
   if (Ty->isIntegral() && Ty->getPrimitiveSize() < 4)
     return 4;
 
   return DataLayout.getTypeSize(Ty);
-}
-
-
-//---------------------------------------------------------------------------
-// TargetCacheInfo Class
-//
-
-void TargetCacheInfo::Initialize() {
-  numLevels = 2;
-  cacheLineSizes.push_back(16);  cacheLineSizes.push_back(32); 
-  cacheSizes.push_back(1 << 15); cacheSizes.push_back(1 << 20);
-  cacheAssoc.push_back(1);       cacheAssoc.push_back(4);
 }





More information about the llvm-commits mailing list