[all-commits] [llvm/llvm-project] 59c809: [libc][NFC] Replace static inline and inline annot...

Siva Chandra via All-commits all-commits at lists.llvm.org
Fri Jan 20 14:27:36 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 59c809cd9bdf8d8886396e8fcd23bd9cdb0807c3
      https://github.com/llvm/llvm-project/commit/59c809cd9bdf8d8886396e8fcd23bd9cdb0807c3
  Author: Siva Chandra Reddy <sivachandra at google.com>
  Date:   2023-01-20 (Fri, 20 Jan 2023)

  Changed paths:
    M libc/src/__support/CMakeLists.txt
    M libc/src/__support/CPP/bitset.h
    M libc/src/__support/FPUtil/BasicOperations.h
    M libc/src/__support/FPUtil/CMakeLists.txt
    M libc/src/__support/FPUtil/DivisionAndRemainderOperations.h
    M libc/src/__support/FPUtil/FEnvImpl.h
    M libc/src/__support/FPUtil/FMA.h
    M libc/src/__support/FPUtil/Hypot.h
    M libc/src/__support/FPUtil/ManipulationFunctions.h
    M libc/src/__support/FPUtil/NearestIntegerOperations.h
    M libc/src/__support/FPUtil/PolyEval.h
    M libc/src/__support/FPUtil/aarch64/FEnvImpl.h
    M libc/src/__support/FPUtil/aarch64/fenv_darwin_impl.h
    M libc/src/__support/FPUtil/aarch64/nearest_integer.h
    M libc/src/__support/FPUtil/generic/FMA.h
    M libc/src/__support/FPUtil/generic/FMod.h
    M libc/src/__support/FPUtil/generic/sqrt.h
    M libc/src/__support/FPUtil/generic/sqrt_80_bit_long_double.h
    M libc/src/__support/FPUtil/multiply_add.h
    M libc/src/__support/FPUtil/nearest_integer.h
    M libc/src/__support/FPUtil/x86_64/FEnvImpl.h
    M libc/src/__support/FPUtil/x86_64/FMA.h
    M libc/src/__support/FPUtil/x86_64/NextAfterLongDouble.h
    M libc/src/__support/FPUtil/x86_64/nearest_integer.h
    M libc/src/__support/OSUtil/linux/io.h
    M libc/src/__support/OSUtil/linux/quick_exit.h
    M libc/src/__support/builtin_wrappers.h
    M libc/src/__support/common.h
    M libc/src/__support/detailed_powers_of_ten.h
    M libc/src/__support/float_to_string.h
    M libc/src/__support/str_to_float.h
    M libc/src/__support/str_to_integer.h
    M libc/src/__support/threads/linux/CMakeLists.txt
    M libc/src/__support/threads/linux/thread.cpp
    M libc/src/string/memory_utils/bcmp_implementations.h
    M libc/src/string/memory_utils/memcmp_implementations.h
    M libc/src/string/memory_utils/memcpy_implementations.h
    M libc/src/string/memory_utils/memmove_implementations.h
    M libc/src/string/memory_utils/op_aarch64.h

  Log Message:
  -----------
  [libc][NFC] Replace static inline and inline annotations with LIBC_INLINE.

This is first of a few patches which will do similar mechanical changes.

LIBC_INLINE is a simple macro which is default defined as just `inline`.
The idea is that, different downstream contexts can define the macro as
suitable to their use case and context. For example, one can choose to
define LIBC_INLINE as `[[clang::internal_linkage]] inline`.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D142154




More information about the All-commits mailing list