[llvm-dev] Transfer information IR to binary

mats petersson via llvm-dev llvm-dev at lists.llvm.org
Mon Feb 22 06:04:09 PST 2016

What kind of constant: type, value and how is it created?

You can make public symbols that you can extract in a linker script to a
special section.

Or perhaps you want some metadata that a special late state (machine instr)
pass is extracting and adding.

The "best" solution really depends on what you are trying to achieve
overall and what kind of data you are working with.


On 22 February 2016 at 13:04, Wehrli Johan via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> Hi,
> I want to know if it is possible to pass information from IR to the final
> binary (like a constant value)?
> I have a module pass in IR who make some transformation and, once the
> compilation is finished, I need to apply a post-processing.
> The post-processing need information from the IR part.
> Greetings,
> Johan
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160222/110f81e1/attachment.html>

More information about the llvm-dev mailing list