| 1 | /* |
| 2 | * @@name: ompd-types.h |
| 3 | */ |
| 4 | |
| 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 |
| 10 | // |
| 11 | //===----------------------------------------------------------------------===// |
| 12 | |
| 13 | #ifndef __OMPD_TYPES_H |
| 14 | #define __OMPD_TYPES_H |
| 15 | |
| 16 | extern "C" { |
| 17 | #include "omp-tools.h" |
| 18 | } |
| 19 | |
| 20 | #define OMPD_TYPES_VERSION 20180906 /* YYYYMMDD Format */ |
| 21 | |
| 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) |
| 29 | |
| 30 | /* Memory Access Segment definitions for Host and Target Devices */ |
| 31 | #define OMPD_SEGMENT_UNSPECIFIED ((ompd_seg_t)0) |
| 32 | |
| 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 |
| 39 | |