[all-commits] [llvm/llvm-project] a32af8: [libc] Add a tool called WrapperGen.
Siva Chandra via All-commits
all-commits at lists.llvm.org
Thu Jul 30 16:07:53 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: a32af8252fde237a3936c4f2f5bee1dfb0cf5ea8
https://github.com/llvm/llvm-project/commit/a32af8252fde237a3936c4f2f5bee1dfb0cf5ea8
Author: Siva Chandra Reddy <sivachandra at google.com>
Date: 2020-07-30 (Thu, 30 Jul 2020)
Changed paths:
M libc/utils/CMakeLists.txt
M libc/utils/LibcTableGenUtil/APIIndexer.cpp
M libc/utils/LibcTableGenUtil/APIIndexer.h
A libc/utils/tools/CMakeLists.txt
A libc/utils/tools/WrapperGen/CMakeLists.txt
A libc/utils/tools/WrapperGen/Main.cpp
Log Message:
-----------
[libc] Add a tool called WrapperGen.
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.
Reviewed By: abrachet
Differential Revision: https://reviews.llvm.org/D84848
More information about the All-commits
mailing list