[llvm-commits] CVS: llvm/lib/Reoptimizer/LightWtProfiling/Trigger/SecondTrigger.h
Brian Gaeke
gaeke at niobe.cs.uiuc.edu
Tue Aug 12 22:08:06 PDT 2003
Changes in directory llvm/lib/Reoptimizer/LightWtProfiling/Trigger:
SecondTrigger.h added (r1.1)
---
Log message:
New file containing declarations of exported methods from SecondTrigger.cpp.
---
Diffs of the changes:
Index: llvm/lib/Reoptimizer/LightWtProfiling/Trigger/SecondTrigger.h
diff -c /dev/null llvm/lib/Reoptimizer/LightWtProfiling/Trigger/SecondTrigger.h:1.1
*** /dev/null Tue Aug 12 22:07:39 2003
--- llvm/lib/Reoptimizer/LightWtProfiling/Trigger/SecondTrigger.h Tue Aug 12 22:07:29 2003
***************
*** 0 ****
--- 1,26 ----
+ #ifndef SECONDTRIGGER_H
+ #define SECONDTRIGGER_H
+
+ #include <map>
+ #include <vector>
+ #include "Support/DataTypes.h"
+
+ extern std::map<uint64_t, uint64_t> firstTriggerAddr;
+
+ // Declarations of methods provided by SecondTrigger.cpp
+ void generateTraces(uint64_t start, uint64_t end,
+ std::vector<uint64_t> &paths,
+ uint64_t firstLevelTraceStartAddr);
+ void getReturnCode(std::vector<unsigned int> &traces, int &index,
+ uint64_t ret);
+ void getBranchExitCode(std::vector<unsigned int> &instVec,
+ std::map<int, uint64_t> &branchMap,
+ std::map<int, uint64_t> &targetMap,
+ std::map<int, uint64_t> &callMap);
+ /// Scan forward through memory starting from startAddr looking for a
+ /// branch instruction. When one is found, foundAddr is set to its
+ /// address, and the instruction word itself is returned.
+ ///
+ uint32_t scanForBranch (const uint64_t startAddr, uint64_t &foundAddr);
+
+ #endif // SECONDTRIGGER_H
More information about the llvm-commits
mailing list