1*e8d8bef9SDimitry Andric //===-- definitions.h -------------------------------------------*- C++ -*-===// 20b57cec5SDimitry Andric // 30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 60b57cec5SDimitry Andric // 70b57cec5SDimitry Andric //===----------------------------------------------------------------------===// 80b57cec5SDimitry Andric 90b57cec5SDimitry Andric #ifndef GWP_ASAN_DEFINITIONS_H_ 100b57cec5SDimitry Andric #define GWP_ASAN_DEFINITIONS_H_ 110b57cec5SDimitry Andric 125ffd83dbSDimitry Andric #define GWP_ASAN_TLS_INITIAL_EXEC \ 135ffd83dbSDimitry Andric __thread __attribute__((tls_model("initial-exec"))) 140b57cec5SDimitry Andric 15480093f4SDimitry Andric #define GWP_ASAN_UNLIKELY(X) __builtin_expect(!!(X), 0) 16480093f4SDimitry Andric #define GWP_ASAN_ALWAYS_INLINE inline __attribute__((always_inline)) 170b57cec5SDimitry Andric 185ffd83dbSDimitry Andric #define GWP_ASAN_WEAK __attribute__((weak)) 195ffd83dbSDimitry Andric 200b57cec5SDimitry Andric #endif // GWP_ASAN_DEFINITIONS_H_ 21