Mercurial > hg > CbC > CbC_llvm
comparison lib/ExecutionEngine/IntelJITEvents/ittnotify_config.h @ 148:63bd29f05246
merged
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 14 Aug 2019 19:46:37 +0900 |
parents | c2174574ed3a |
children |
comparison
equal
deleted
inserted
replaced
146:3fc4d5c3e21e | 148:63bd29f05246 |
---|---|
1 /*===-- ittnotify_config.h - JIT Profiling API internal config-----*- C -*-===* | 1 /*===-- ittnotify_config.h - JIT Profiling API internal config-----*- C -*-===* |
2 * | 2 * |
3 * The LLVM Compiler Infrastructure | 3 * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
4 * | 4 * See https://llvm.org/LICENSE.txt for license information. |
5 * This file is distributed under the University of Illinois Open Source | 5 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 * License. See LICENSE.TXT for details. | |
7 * | 6 * |
8 *===----------------------------------------------------------------------===* | 7 *===----------------------------------------------------------------------===* |
9 * | 8 * |
10 * This file provides Intel(R) Performance Analyzer JIT (Just-In-Time) | 9 * This file provides Intel(R) Performance Analyzer JIT (Just-In-Time) |
11 * Profiling API internal config. | 10 * Profiling API internal config. |
12 * | 11 * |
13 * NOTE: This file comes in a style different from the rest of LLVM | 12 * NOTE: This file comes in a style different from the rest of LLVM |
14 * source base since this is a piece of code shared from Intel(R) | 13 * source base since this is a piece of code shared from Intel(R) |
15 * products. Please do not reformat / re-style this code to make | 14 * products. Please do not reformat / re-style this code to make |
211 #define __itt_fstrcpyn(s1, s2, l) lstrcpynA(s1, s2, l) | 210 #define __itt_fstrcpyn(s1, s2, l) lstrcpynA(s1, s2, l) |
212 #define __itt_fstrdup(s) _strdup(s) | 211 #define __itt_fstrdup(s) _strdup(s) |
213 #define __itt_thread_id() GetCurrentThreadId() | 212 #define __itt_thread_id() GetCurrentThreadId() |
214 #define __itt_thread_yield() SwitchToThread() | 213 #define __itt_thread_yield() SwitchToThread() |
215 #ifndef ITT_SIMPLE_INIT | 214 #ifndef ITT_SIMPLE_INIT |
216 ITT_INLINE long | 215 ITT_INLINE long |
217 __itt_interlocked_increment(volatile long* ptr) ITT_INLINE_ATTRIBUTE; | 216 __itt_interlocked_increment(volatile long* ptr) ITT_INLINE_ATTRIBUTE; |
218 ITT_INLINE long __itt_interlocked_increment(volatile long* ptr) | 217 ITT_INLINE long __itt_interlocked_increment(volatile long* ptr) |
219 { | 218 { |
220 return InterlockedIncrement(ptr); | 219 return InterlockedIncrement(ptr); |
221 } | 220 } |
271 : "memory"); | 270 : "memory"); |
272 return result; | 271 return result; |
273 } | 272 } |
274 #endif /* ITT_ARCH==ITT_ARCH_IA64 */ | 273 #endif /* ITT_ARCH==ITT_ARCH_IA64 */ |
275 #ifndef ITT_SIMPLE_INIT | 274 #ifndef ITT_SIMPLE_INIT |
276 ITT_INLINE long | 275 ITT_INLINE long |
277 __itt_interlocked_increment(volatile long* ptr) ITT_INLINE_ATTRIBUTE; | 276 __itt_interlocked_increment(volatile long* ptr) ITT_INLINE_ATTRIBUTE; |
278 ITT_INLINE long __itt_interlocked_increment(volatile long* ptr) | 277 ITT_INLINE long __itt_interlocked_increment(volatile long* ptr) |
279 { | 278 { |
280 return __TBB_machine_fetchadd4(ptr, 1) + 1L; | 279 return __TBB_machine_fetchadd4(ptr, 1) + 1L; |
281 } | 280 } |