[AArch64] Fix SDNode type mismatches between *.td files and ISel (#116523)
[llvm-project.git] / compiler-rt / lib / gwp_asan / definitions.h
blobc6785d4aba69521e6fa9c140c9ed7b16231981f2
1 //===-- definitions.h -------------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef GWP_ASAN_DEFINITIONS_H_
10 #define GWP_ASAN_DEFINITIONS_H_
12 #define GWP_ASAN_TLS_INITIAL_EXEC \
13 __thread __attribute__((tls_model("initial-exec")))
15 #define GWP_ASAN_LIKELY(EXPR) __builtin_expect((bool)(EXPR), true)
16 #define GWP_ASAN_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
17 #define GWP_ASAN_ALWAYS_INLINE inline __attribute__((always_inline))
19 #define GWP_ASAN_WEAK __attribute__((weak))
21 #endif // GWP_ASAN_DEFINITIONS_H_