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

Brian Gaeke gaeke at niobe.cs.uiuc.edu
Wed Aug 6 16:46:00 PDT 2003

Changes in directory llvm/include/llvm/Reoptimizer:

MemoryManager.h updated: 1.3 -> 1.4
TraceCache.h updated: 1.12 -> 1.13

Log message:

No need to have the dummy function take parameters or return a value.

include/llvm/Reoptimizer/MemoryManager.h: Change type of dummy function used
 for trace cache.
lib/Reoptimizer/TraceCache/TraceCache.cpp: Likewise.
lib/Reoptimizer/TraceCache/MemoryManager.cpp: Likewise. Also change decl.
include/llvm/Reoptimizer/TraceCache.h: Likewise. Also remove commented-out
 forward decl of TraceCache2.

Diffs of the changes:

Index: llvm/include/llvm/Reoptimizer/MemoryManager.h
diff -u llvm/include/llvm/Reoptimizer/MemoryManager.h:1.3 llvm/include/llvm/Reoptimizer/MemoryManager.h:1.4
--- llvm/include/llvm/Reoptimizer/MemoryManager.h:1.3	Thu Jul 10 14:00:39 2003
+++ llvm/include/llvm/Reoptimizer/MemoryManager.h	Wed Aug  6 16:45:41 2003
@@ -46,7 +46,7 @@
   //Ctor: Using user provided function for space. The size of memory
   //is assumed as memSize. Must ensure the provided function >= memSize bytes
-  MemoryManager(int (*dfunc)(int), unsigned int memSize);
+  MemoryManager(void (*dfunc)(), unsigned int memSize);
   int getMemSize(){ return memorySize; }
   uint64_t getMemory(int sz); //return a pointer to memory of size sz

Index: llvm/include/llvm/Reoptimizer/TraceCache.h
diff -u llvm/include/llvm/Reoptimizer/TraceCache.h:1.12 llvm/include/llvm/Reoptimizer/TraceCache.h:1.13
--- llvm/include/llvm/Reoptimizer/TraceCache.h:1.12	Thu Jul 10 14:00:47 2003
+++ llvm/include/llvm/Reoptimizer/TraceCache.h	Wed Aug  6 16:45:41 2003
@@ -15,8 +15,6 @@
 class VirtualMem;
 class MemoryManager;
-//class TraceCache2;
 class TraceCache{
   std::map<uint64_t, uint64_t> traces; //map from addr to addr
@@ -104,7 +102,7 @@
   //the code region of dfunc is used for memory allocation
   //instead of default memory allocation space used by memory manager
-  TraceCache(int (*dfunc)(int), unsigned int memSize, VirtualMem *vmem); 
+  TraceCache(void (*dfunc)(), unsigned int memSize, VirtualMem *vmem); 
   //remove the branch from the original code into the trace
   void patchTrace(uint64_t n);

More information about the llvm-commits mailing list