[llvm-commits] CVS: reopt/include/reopt/TraceIO.h
Brian Gaeke
gaeke at cs.uiuc.edu
Wed Jun 30 01:35:02 PDT 2004
Changes in directory reopt/include/reopt:
TraceIO.h added (r1.1)
---
Log message:
This is a new header file containing the trace I/O library's public interface.
---
Diffs of the changes: (+21 -0)
Index: reopt/include/reopt/TraceIO.h
diff -c /dev/null reopt/include/reopt/TraceIO.h:1.1
*** /dev/null Wed Jun 30 01:33:26 2004
--- reopt/include/reopt/TraceIO.h Wed Jun 30 01:33:16 2004
***************
*** 0 ****
--- 1,21 ----
+ #include <string>
+
+ namespace llvm {
+
+ class Trace;
+ class Module;
+
+ /// ReadTraceFromFile - Given a module, read a trace for some function
+ /// in that module from the named file. Returns the Trace object, or a null
+ /// pointer (and sets ErrorStr) if there was an error.
+ ///
+ Trace *ReadTraceFromFile (Module *M, const std::string &filename,
+ std::string *ErrorStr);
+
+ /// WriteTraceToFile - Write a trace out to a text file, along with the
+ /// module it came from.
+ ///
+ void WriteTraceToFile (Trace *T);
+
+ }; // end namespace llvm
+
More information about the llvm-commits
mailing list