[libc-commits] [PATCH] D84848: [libc] Add a tool called WrapperGen.

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Jul 29 07:42:41 PDT 2020


sivachandra created this revision.
sivachandra added a reviewer: abrachet.
Herald added subscribers: libc-commits, ecnelises, tschuett, arphaman, dexonsmith, mgorny.
Herald added a project: libc-project.
sivachandra requested review of this revision.

This tool will be used to generate C wrappers for the C++ LLVM libc
implementations. This change does not hook this tool up to anything yet.
However, it can be useful for cases where one does not want to run the
objcopy step (to insert the C symbol in the object file) but can make use
of LTO to eliminate the cost of the additional wrapper call. This can be
relevant for certain downstream platforms. If this tool can benefit other
libc platforms in general, then it can be integrated into the build system
with options to use or not use the wrappers. An example of such a
platform is CUDA.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D84848

Files:
  libc/utils/CMakeLists.txt
  libc/utils/LibcTableGenUtil/APIIndexer.cpp
  libc/utils/LibcTableGenUtil/APIIndexer.h
  libc/utils/tools/CMakeLists.txt
  libc/utils/tools/WrapperGen/CMakeLists.txt
  libc/utils/tools/WrapperGen/Main.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84848.281584.patch
Type: text/x-patch
Size: 5077 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20200729/aab9e5d8/attachment.bin>


More information about the libc-commits mailing list