[llvm-dev] [RFC] Thoughts on a bitcode symbol table

Rafael EspĂ­ndola via llvm-dev llvm-dev at lists.llvm.org
Tue May 31 10:21:34 PDT 2016


On 31 May 2016 at 07:27, Teresa Johnson <tejohnson at google.com> wrote:

>
>
> On Fri, May 27, 2016 at 8:48 AM, Rafael EspĂ­ndola <llvm-dev at lists.llvm.org
> > wrote:
>
>> This is about https://llvm.org/bugs/show_bug.cgi?id=27551.
>>
>> Currently there is no easy way to get symbol information out of
>> bitcode files. One has to read the module and mangle the names. This
>> has a few problem
>>
>
> This would be great for ThinLTO as well:
>
>
>>
>> * During lto we have to create the Module earlier.
>>
>
> During the ThinLink step we could avoid creating the Module altogether,
> only the parallel backends would need the Module.
>
>
>> * There is no convenient spot to store flags/summary.
>>
>
> Right now we are duplicating some info like the linkage type into the
> summary since it isn't available in the ValueSymbolTable (which I assume
> this would subsume?)
>
>
It should yes. The general idea is for it to include any symbol info a
linker might want during resolution.

Cheers,
Rafael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160531/175c52df/attachment.html>


More information about the llvm-dev mailing list