[PATCH] Introduce libLTO C APIs to target the "resolution-based" new LTO API

Mehdi Amini via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 10 10:59:34 PDT 2017


Hi,

Phabricator does not send email, so I do it manually. The review is online here: https://reviews.llvm.org/D31898 <https://reviews.llvm.org/D31898> ; and the patch is attached.

Summary:
The goal is to deprecate the existing C API exposed by libLTO and
remove it 2 or 3 releases from now.
This commit introduces the basic replacement APIs, and it not intended
to be a complete replacement at this point.

A new tool is introduced: `llvm-liblto`. This tool links statically
only to libSupport, and link dynamically to libLTO. It offers a way
to test the new C API in tree without having a linker using this API
available. This was a major painpoint of the existing API.

This is a work-in-progress, I'm sharing it now to show the general
direction I took until now.





— 
Mehdi

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170410/372fc3d9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Introduce-libLTO-C-APIs-to-target-the-resolution-bas.patch
Type: application/octet-stream
Size: 38318 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170410/372fc3d9/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170410/372fc3d9/attachment-0001.html>


More information about the llvm-commits mailing list