[llvm-commits] CVS: reopt/include/reopt/TraceCache.h

Brian Gaeke gaeke at cs.uiuc.edu
Thu Jul 8 03:27:01 PDT 2004


Changes in directory reopt/include/reopt:

TraceCache.h updated: 1.19 -> 1.20

---
Log message:

Remove a few dead methods.
Make vm and mm data members private (they have accessors, after all.)


---
Diffs of the changes:  (+5 -10)

Index: reopt/include/reopt/TraceCache.h
diff -u reopt/include/reopt/TraceCache.h:1.19 reopt/include/reopt/TraceCache.h:1.20
--- reopt/include/reopt/TraceCache.h:1.19	Thu Jul  8 03:03:26 2004
+++ reopt/include/reopt/TraceCache.h	Thu Jul  8 03:26:35 2004
@@ -19,8 +19,7 @@
 class VirtualMem;
 class MemoryManager;
 
-class TraceCache{
- private:
+class TraceCache {
   std::map<uint64_t, uint64_t> traces; //map from addr to addr
   std::map<uint64_t, uint64_t> endAddress; //end of loop address
   std::map<uint64_t, int> traceSize;//size of trace allocatted
@@ -35,6 +34,9 @@
 
   int limit, currSize;
 
+  VirtualMem *vm;
+  MemoryManager *mm;
+
   // common constructor code
   void init (int limitSize);
   //gets addr of target in branch
@@ -43,13 +45,8 @@
   void changeAddr(uint64_t frm, uint64_t to);
 
  public:
-  void setLimit(int n);
-  int getLimit() { return limit;}
-
   uint64_t getAddrLessThan(uint64_t brAddr);
   uint64_t getEndAddress(uint64_t addr);
- 
-  bool hasMaxSize(){ return true; }
   bool hasTraceAddr(uint64_t n){ return (traces.find(n)!=traces.end()); }
 
   bool hasTraceAddr(uint64_t start, uint64_t end){
@@ -135,11 +132,9 @@
   //remove trace starting with address n
   void removeTrace(uint64_t n);
 
+  // accessor functions used by Joel's libraries 
   MemoryManager* getMemMgr() { return mm; }
   VirtualMem*    getVM()     { return vm; }
-
-  VirtualMem *vm;
-  MemoryManager *mm;
 };
 
 } // end namespace llvm





More information about the llvm-commits mailing list