Path: blob/main/contrib/llvm-project/compiler-rt/lib/xray/xray_defs.h
35263 views
//===-- xray_defs.h ---------------------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// Common definitions useful for XRay sources.9//10//===----------------------------------------------------------------------===//11#ifndef XRAY_XRAY_DEFS_H12#define XRAY_XRAY_DEFS_H1314#if XRAY_SUPPORTED15#define XRAY_NEVER_INSTRUMENT __attribute__((xray_never_instrument))16#else17#define XRAY_NEVER_INSTRUMENT18#endif1920#if SANITIZER_NETBSD21// NetBSD: thread_local is not aligned properly, and the code relying22// on it segfaults23#define XRAY_TLS_ALIGNAS(x)24#define XRAY_HAS_TLS_ALIGNAS 025#else26#define XRAY_TLS_ALIGNAS(x) alignas(x)27#define XRAY_HAS_TLS_ALIGNAS 128#endif2930#endif // XRAY_XRAY_DEFS_H313233