[all-commits] [llvm/llvm-project] 929ad8: [libc] Add aliases to C memory functions for integ...

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Mar 15 18:15:21 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 929ad8bc7cc212605f933e0e06fe60ead2e84b30
      https://github.com/llvm/llvm-project/commit/929ad8bc7cc212605f933e0e06fe60ead2e84b30
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M libc/cmake/modules/LLVMLibCTestRules.cmake
    M libc/test/IntegrationTest/test.cpp

  Log Message:
  -----------
  [libc] Add aliases to C memory functions for integration tests

The integration tests require the C memory functions as the compiler may
emit calls to them directly. The tests normally use the `__internal__`
variant that is built for testing, but these memory functions were
linked directly to preserve the entrypoint. Instead, we forward delcare
the internal versions and map the entrypoints to them manually inside
the integration test. This allows us to use the internal versions of
these files like the rest of the test objects.

Reviewed By: sivachandra

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




More information about the All-commits mailing list