1 //===-- xray_defs.h ---------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // Common definitions useful for XRay sources.
12 //===----------------------------------------------------------------------===//
13 #ifndef XRAY_XRAY_DEFS_H
14 #define XRAY_XRAY_DEFS_H
17 #define XRAY_NEVER_INSTRUMENT __attribute__((xray_never_instrument))
19 #define XRAY_NEVER_INSTRUMENT
23 // NetBSD: thread_local is not aligned properly, and the code relying
25 #define XRAY_TLS_ALIGNAS(x)
26 #define XRAY_HAS_TLS_ALIGNAS 0
28 #define XRAY_TLS_ALIGNAS(x) alignas(x)
29 #define XRAY_HAS_TLS_ALIGNAS 1
32 #endif // XRAY_XRAY_DEFS_H