[all-commits] [llvm/llvm-project] a72e24: [libc] Add more robust compile time architecture d...

Guillaume Chatelet via All-commits all-commits at lists.llvm.org
Fri Oct 29 13:15:33 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a72e2499865b55cb007b63673100c06cc85faf97
      https://github.com/llvm/llvm-project/commit/a72e2499865b55cb007b63673100c06cc85faf97
  Author: Guillaume Chatelet <gchatelet at google.com>
  Date:   2021-10-29 (Fri, 29 Oct 2021)

  Changed paths:
    M libc/src/__support/CMakeLists.txt
    M libc/src/__support/FPUtil/FEnvUtils.h
    M libc/src/__support/FPUtil/FMA.h
    M libc/src/__support/FPUtil/PlatformDefs.h
    M libc/src/__support/FPUtil/PolyEval.h
    A libc/src/__support/architectures.h
    M libc/src/string/memcmp.cpp
    M libc/src/string/memory_utils/elements_aarch64.h
    M libc/src/string/memory_utils/elements_x86.h
    M libc/src/string/memory_utils/memset_utils.h
    M libc/src/string/memory_utils/utils.h
    M libc/test/src/fenv/enabled_exceptions_test.cpp
    M libc/test/src/fenv/feenableexcept_test.cpp
    M libc/test/src/fenv/feholdexcept_test.cpp
    M libc/utils/MPFRWrapper/MPFRUtils.cpp

  Log Message:
  -----------
  [libc] Add more robust compile time architecture detection

We may want to restrict the detected platforms to only `x86_64` and `aarch64`.
There are still custom detection in api.td but I don't think we can handle these:
 - config/linux/api.td:205
 - config/linux/api.td:199

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




More information about the All-commits mailing list