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

Anand Shukla ashukla at cs.uiuc.edu
Sat May 31 21:32:23 PDT 2003


Changes in directory llvm/include/llvm/Reoptimizer:

TraceCache2.h updated: 1.1 -> 1.2

---
Log message:

Simple additions to the runtime API

---
Diffs of the changes:

Index: llvm/include/llvm/Reoptimizer/TraceCache2.h
diff -u llvm/include/llvm/Reoptimizer/TraceCache2.h:1.1 llvm/include/llvm/Reoptimizer/TraceCache2.h:1.2
--- llvm/include/llvm/Reoptimizer/TraceCache2.h:1.1	Mon Feb 17 13:53:45 2003
+++ llvm/include/llvm/Reoptimizer/TraceCache2.h	Sat May 31 21:31:18 2003
@@ -14,6 +14,7 @@
 
 class VirtualMem;
 class MemoryManager2;
+class TraceCache;
 
 class TraceCache2{
  private:
@@ -66,8 +67,10 @@
   
   //constructors
   TraceCache2(int limitSize);
+  TraceCache2(VirtualMem *vmem);
   TraceCache2();
 
+
   //add trace of a given size
   //return null if cannot allocate
   //return an address where trace can be allocated otherwise
@@ -76,6 +79,15 @@
   //addresses to jump to the new location for addresses that use the
   //basic block bb as target
 
+  //Do the following:
+//1. Insert a jump at location instrAddr with target as new trace
+  bool addTrace(uint64_t instAddr, 
+                           std::vector<unsigned int> &trace, 
+                           int traceUniqId,
+                           std::map<int, uint64_t> &callMap,
+                           std::map<int, uint64_t> &branchMap, 
+                           uint64_t firstLevelTraceStartAddr);
+
   bool addTrace(uint64_t instAddr, 
                 std::vector<unsigned int> &trace,
                 int traceUniqId,
@@ -89,6 +101,16 @@
                 std::map<int, uint64_t> &callMap,
                 std::map<int, uint64_t> &branchMap);
   
+  //Do the following:
+  //1. Insert a jump at location instrAddr with target as new trace
+  bool addTrace(uint64_t instAddr, 
+		std::vector<unsigned int> &trace, 
+		int traceUniqId,
+		std::map<int, uint64_t> &callMap,
+		std::map<int, uint64_t> &myBranchMap,
+		std::map<int, int> &branchMap,
+		uint64_t firstLevelTraceStartAddr, TraceCache *tr);
+
   //bool addTrace(uint64_t instAddr, unsigned int trace[], int sz, 
   //                 std::vector<uint64_t> &inBranches, 
   //                 std::vector<std::pair<uint64_t, uint64_t> > &outBranches, int traceUniqId);





More information about the llvm-commits mailing list