]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/openmp/runtime/src/thirdparty/ittnotify/ittnotify_types.h
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / openmp / runtime / src / thirdparty / ittnotify / ittnotify_types.h
1
2 //===----------------------------------------------------------------------===//
3 //
4 //                     The LLVM Compiler Infrastructure
5 //
6 // This file is dual licensed under the MIT and the University of Illinois Open
7 // Source Licenses. See LICENSE.txt for details.
8 //
9 //===----------------------------------------------------------------------===//
10
11
12 #ifndef _ITTNOTIFY_TYPES_H_
13 #define _ITTNOTIFY_TYPES_H_
14
15 typedef enum ___itt_group_id
16 {
17     __itt_group_none      = 0,
18     __itt_group_legacy    = 1<<0,
19     __itt_group_control   = 1<<1,
20     __itt_group_thread    = 1<<2,
21     __itt_group_mark      = 1<<3,
22     __itt_group_sync      = 1<<4,
23     __itt_group_fsync     = 1<<5,
24     __itt_group_jit       = 1<<6,
25     __itt_group_model     = 1<<7,
26     __itt_group_splitter_min = 1<<7,
27     __itt_group_counter   = 1<<8,
28     __itt_group_frame     = 1<<9,
29     __itt_group_stitch    = 1<<10,
30     __itt_group_heap      = 1<<11,
31     __itt_group_splitter_max = 1<<12,
32     __itt_group_structure = 1<<12,
33     __itt_group_suppress = 1<<13,
34     __itt_group_arrays    = 1<<14,
35     __itt_group_all       = -1
36 } __itt_group_id;
37
38 #pragma pack(push, 8)
39
40 typedef struct ___itt_group_list
41 {
42     __itt_group_id id;
43     const char*    name;
44 } __itt_group_list;
45
46 #pragma pack(pop)
47
48 #define ITT_GROUP_LIST(varname) \
49     static __itt_group_list varname[] = {       \
50         { __itt_group_all,       "all"       }, \
51         { __itt_group_control,   "control"   }, \
52         { __itt_group_thread,    "thread"    }, \
53         { __itt_group_mark,      "mark"      }, \
54         { __itt_group_sync,      "sync"      }, \
55         { __itt_group_fsync,     "fsync"     }, \
56         { __itt_group_jit,       "jit"       }, \
57         { __itt_group_model,     "model"     }, \
58         { __itt_group_counter,   "counter"   }, \
59         { __itt_group_frame,     "frame"     }, \
60         { __itt_group_stitch,    "stitch"    }, \
61         { __itt_group_heap,      "heap"      }, \
62         { __itt_group_structure, "structure" }, \
63         { __itt_group_suppress,  "suppress"  }, \
64         { __itt_group_arrays,    "arrays"    }, \
65         { __itt_group_none,      NULL        }  \
66     }
67
68 #endif /* _ITTNOTIFY_TYPES_H_ */