[llvm-commits] CVS: reopt/include/reopt/TraceCache.h
Brian Gaeke
gaeke at cs.uiuc.edu
Mon Oct 27 13:02:04 PST 2003
Changes in directory reopt/include/reopt:
TraceCache.h updated: 1.15 -> 1.16
---
Log message:
Erase some commented-out declarations and obscure comments.
---
Diffs of the changes: (+1 -18)
Index: reopt/include/reopt/TraceCache.h
diff -u reopt/include/reopt/TraceCache.h:1.15 reopt/include/reopt/TraceCache.h:1.16
--- reopt/include/reopt/TraceCache.h:1.15 Sat Sep 13 16:11:58 2003
+++ reopt/include/reopt/TraceCache.h Mon Oct 27 13:01:07 2003
@@ -25,43 +25,26 @@
std::map<uint64_t, uint64_t> traceId; //id -> startAddr map
std::map<uint64_t, uint64_t> reverseTraceId; //startAddr->ID
- //std::map<uint64_t, int> uniqueID;
-
std::map<uint64_t, std::vector<unsigned int> > traceInstructions;
std::map<uint64_t, uint64_t> reverseMap; //map frm trace addr to original addr
- //for a given outgoing address (outside trace cache),
- //the addresses IN THE trace cache
- //that point to that address
- //std::map<uint64_t, std::vector<uint64_t> > outMaps;
-
- //same for incoming addresses
- //std::map<uint64_t, std::vector<uint64_t> > inMaps;
std::list<uint64_t> allocationOrder;
bool isLimitSet; //this must be set during initialization!!!
- int limit, currSize; //fp is file pointer
+ int limit, currSize;
//gets addr of target in branch
uint64_t getBranchAddr(const std::pair<uint64_t, uint64_t> &n);
//change every address in F pointing to frm to "to"
void changeAddr(uint64_t frm, uint64_t to);
- //reading/modifying process space VM
- //void intializeVM();
- //void copyToVM(unsigned int trace[],
- // uint64_t traceStartAddr, int sz);
- //unsigned int readInstrFrmVm(uint64_t frm);
- //void writeInstToVM(uint64_t dest, unsigned int newInstr);
-
public:
void setLimit(int n);
int getLimit() { return limit;}
uint64_t getAddrLessThan(uint64_t brAddr);
-
uint64_t getEndAddress(uint64_t addr);
bool hasMaxSize(){ return isLimitSet;}
More information about the llvm-commits
mailing list