1 /*===-- Libraries/tracelib.h - Runtime routines for tracing -----*- C++ -*--===
3 * Runtime routines for supporting tracing of execution
4 * for code generated by LLVM.
6 *===---------------------------------------------------------------------===*/
8 #ifndef _TEST_LIBRARIES_LIBINSTR_TRACELIB_
9 #define _TEST_LIBRARIES_LIBINSTR_TRACELIB_
15 #include <sys/types.h>
17 /*===---------------------------------------------------------------------=====
18 * Support for tracing pointers
19 *===---------------------------------------------------------------------===*/
21 typedef unsigned int SequenceNumber;
23 extern SequenceNumber HashPointerToSeqNum( char* ptr);
25 extern void ReleasePointerSeqNum(char* ptr);
27 extern void RecordPointer(char* ptr);
29 extern void PushPointerSet();
31 extern void ReleasePointersPopSet();
38 /*===---------------------------------------------------------------------===*/