[all-commits] [llvm/llvm-project] db5a2a: [OpenMP][DeviceRTL] Implement libc function `memcmp`

Shilei Tian via All-commits all-commits at lists.llvm.org
Thu Aug 4 11:38:06 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: db5a2afa62428a461f17de30fc410c20d12fe201
      https://github.com/llvm/llvm-project/commit/db5a2afa62428a461f17de30fc410c20d12fe201
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2022-08-04 (Thu, 04 Aug 2022)

  Changed paths:
    M openmp/libomptarget/DeviceRTL/CMakeLists.txt
    M openmp/libomptarget/DeviceRTL/include/Debug.h
    A openmp/libomptarget/DeviceRTL/include/LibC.h
    M openmp/libomptarget/DeviceRTL/include/Types.h
    M openmp/libomptarget/DeviceRTL/src/Debug.cpp
    A openmp/libomptarget/DeviceRTL/src/LibC.cpp
    M openmp/libomptarget/DeviceRTL/src/exports
    A openmp/libomptarget/test/offloading/test_libc.cpp

  Log Message:
  -----------
  [OpenMP][DeviceRTL] Implement libc function `memcmp`

We will add some simple implementation of libc functions starting from
this patch, and the first one is `memcmp`, which is reported in #56929. Note that
`malloc` and `free` are not included in this patch because of the use of
`declare variant`. In the near future we will implement the two functions w/o
using any vendor provided function.

This fixes #56929.

Reviewed By: jhuber6

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




More information about the All-commits mailing list