22 lines · c
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-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef GWP_ASAN_DEFINITIONS_H_10#define GWP_ASAN_DEFINITIONS_H_11 12#define GWP_ASAN_TLS_INITIAL_EXEC \13 __thread __attribute__((tls_model("initial-exec")))14 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))18 19#define GWP_ASAN_WEAK __attribute__((weak))20 21#endif // GWP_ASAN_DEFINITIONS_H_22