Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / openmp / libompd / src / ompd-types.h
blob86b1cb11f5a7abd12761b47b7149a34338c4f1ba
1 /*
2 * @@name: ompd-types.h
3 */
5 //===----------------------------------------------------------------------===//
6 //
7 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
8 // See https://llvm.org/LICENSE.txt for license information.
9 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
11 //===----------------------------------------------------------------------===//
13 #ifndef __OMPD_TYPES_H
14 #define __OMPD_TYPES_H
16 extern "C" {
17 #include "omp-tools.h"
20 #define OMPD_TYPES_VERSION 20180906 /* YYYYMMDD Format */
22 /* Kinds of device threads */
23 #define OMPD_THREAD_ID_PTHREAD ((ompd_thread_id_t)0)
24 #define OMPD_THREAD_ID_LWP ((ompd_thread_id_t)1)
25 #define OMPD_THREAD_ID_WINTHREAD ((ompd_thread_id_t)2)
26 /* The range of non-standard implementation defined values */
27 #define OMPD_THREAD_ID_LO ((ompd_thread_id_t)1000000)
28 #define OMPD_THREAD_ID_HI ((ompd_thread_id_t)1100000)
30 /* Memory Access Segment definitions for Host and Target Devices */
31 #define OMPD_SEGMENT_UNSPECIFIED ((ompd_seg_t)0)
33 /* Kinds of device device address spaces */
34 #define OMPD_DEVICE_KIND_HOST ((ompd_device_t)1)
35 /* The range of non-standard implementation defined values */
36 #define OMPD_DEVICE_IMPL_LO ((ompd_device_t)1000000)
37 #define OMPD_DEVICE_IMPL_HI ((ompd_device_t)1100000)
38 #endif