diff options
Diffstat (limited to 'contrib/llvm-project/compiler-rt/lib/gwp_asan/definitions.h')
-rw-r--r-- | contrib/llvm-project/compiler-rt/lib/gwp_asan/definitions.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/llvm-project/compiler-rt/lib/gwp_asan/definitions.h b/contrib/llvm-project/compiler-rt/lib/gwp_asan/definitions.h new file mode 100644 index 000000000000..bec029038934 --- /dev/null +++ b/contrib/llvm-project/compiler-rt/lib/gwp_asan/definitions.h @@ -0,0 +1,20 @@ +//===-- definitions.h -------------------------------------------*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef GWP_ASAN_DEFINITIONS_H_ +#define GWP_ASAN_DEFINITIONS_H_ + +#define GWP_ASAN_TLS_INITIAL_EXEC \ + __thread __attribute__((tls_model("initial-exec"))) + +#define GWP_ASAN_UNLIKELY(X) __builtin_expect(!!(X), 0) +#define GWP_ASAN_ALWAYS_INLINE inline __attribute__((always_inline)) + +#define GWP_ASAN_WEAK __attribute__((weak)) + +#endif // GWP_ASAN_DEFINITIONS_H_ |