[NFC][Py Reformat] Added more commits to .git-blame-ignore-revs
[llvm-project.git] / libc / src / __support / macros / attributes.h
blob9a2fcd2645eaef750f3457385774c73625e9a8c7
1 //===-- Portable attributes -------------------------------------*- 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 // 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
15 // other compilers.
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