blob: a60697a8979b433c26b7e3a3584edf4da2df32c5 [file] [log] [blame]
Vikram S. Adve2df1f742002-05-19 15:49:58 +00001/*===-- Libraries/tracelib.h - Runtime routines for tracing -----*- C++ -*--===
2 *
3 * Runtime routines for supporting tracing of execution
4 * for code generated by LLVM.
5 *
6 *===---------------------------------------------------------------------===*/
7
8#ifndef _TEST_LIBRARIES_LIBINSTR_TRACELIB_
9#define _TEST_LIBRARIES_LIBINSTR_TRACELIB_
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#include <sys/types.h>
16
17/*===---------------------------------------------------------------------=====
18 * Support for tracing pointers
19 *===---------------------------------------------------------------------===*/
20
21typedef unsigned int SequenceNumber;
22
23extern SequenceNumber HashPointerToSeqNum( char* ptr);
24
25extern void ReleasePointerSeqNum(char* ptr);
26
27extern void RecordPointer(char* ptr);
28
29extern void PushPointerSet();
30
31extern void ReleasePointersPopSet();
32
33
34#ifdef __cplusplus
35}
36#endif
37
38/*===---------------------------------------------------------------------===*/
39
Misha Brukmanfd939082005-04-21 23:48:37 +000040#endif