definitions.h 776 B

1234567891011121314151617181920
  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. //===----------------------------------------------------------------------===//
  8. #ifndef GWP_ASAN_DEFINITIONS_H_
  9. #define GWP_ASAN_DEFINITIONS_H_
  10. #define GWP_ASAN_TLS_INITIAL_EXEC \
  11. __thread __attribute__((tls_model("initial-exec")))
  12. #define GWP_ASAN_UNLIKELY(X) __builtin_expect(!!(X), 0)
  13. #define GWP_ASAN_ALWAYS_INLINE inline __attribute__((always_inline))
  14. #define GWP_ASAN_WEAK __attribute__((weak))
  15. #endif // GWP_ASAN_DEFINITIONS_H_