1 //===-- Portable attributes -------------------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
8 // This header file defines macros for declaring attributes for functions,
9 // types, and variables.
11 // These macros are used within llvm-libc and allow the compiler to optimize,
12 // where applicable, certain function calls.
14 // Most macros here are exposing GCC or Clang features, and are stubbed out for
17 #ifndef LLVM_LIBC_SUPPORT_MACROS_ATTRIBUTES_H
18 #define LLVM_LIBC_SUPPORT_MACROS_ATTRIBUTES_H
20 #define LIBC_INLINE inline
21 #define LIBC_INLINE_ASM __asm__ __volatile__
22 #define LIBC_UNUSED __attribute__((unused))
24 #endif // LLVM_LIBC_SUPPORT_MACROS_ATTRIBUTES_H