1351282Sdim//===-- gwp_asan_definitions.h ----------------------------------*- C++ -*-===// 2351282Sdim// 3351282Sdim// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4351282Sdim// See https://llvm.org/LICENSE.txt for license information. 5351282Sdim// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6351282Sdim// 7351282Sdim//===----------------------------------------------------------------------===// 8351282Sdim 9351282Sdim#ifndef GWP_ASAN_DEFINITIONS_H_ 10351282Sdim#define GWP_ASAN_DEFINITIONS_H_ 11351282Sdim 12360784Sdim#define GWP_ASAN_TLS_INITIAL_EXEC __thread __attribute__((tls_model("initial-exec"))) 13351282Sdim 14360784Sdim#define GWP_ASAN_UNLIKELY(X) __builtin_expect(!!(X), 0) 15360784Sdim#define GWP_ASAN_ALWAYS_INLINE inline __attribute__((always_inline)) 16351282Sdim 17351282Sdim#endif // GWP_ASAN_DEFINITIONS_H_ 18