[Openmp-commits] [PATCH] D131182: [OpenMP][DeviceRTL] Implement libc function `memcmp`

Shilei Tian via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Aug 4 10:30:04 PDT 2022


tianshilei1992 created this revision.
tianshilei1992 added reviewers: jdoerfert, jhuber6.
Herald added subscribers: guansong, yaxunl, mgorny.
Herald added a project: All.
tianshilei1992 requested review of this revision.
Herald added subscribers: openmp-commits, sstefan1.
Herald added a project: OpenMP.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D131182

Files:
  openmp/libomptarget/DeviceRTL/CMakeLists.txt
  openmp/libomptarget/DeviceRTL/include/LibC.h
  openmp/libomptarget/DeviceRTL/include/Types.h
  openmp/libomptarget/DeviceRTL/src/LibC.cpp
  openmp/libomptarget/DeviceRTL/src/exports
  openmp/libomptarget/test/offloading/test_libc.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131182.450050.patch
Type: text/x-patch
Size: 4129 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20220804/407cb0ba/attachment-0001.bin>


More information about the Openmp-commits mailing list