<div dir="ltr"><div><div><div>What kind of constant: type, value and how is it created?<br><br></div>You can make public symbols that you can extract in a linker script to a special section.<br><br></div>Or perhaps you want some metadata that a special late state (machine instr) pass is extracting and adding. <br><br></div><div>The "best" solution really depends on what you are trying to achieve overall and what kind of data you are working with.<br></div><div><br>--<br></div>Mats<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 22 February 2016 at 13:04, Wehrli Johan via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I want to know if it is possible to pass information from IR to the final binary (like a constant value)?<br>
<br>
I have a module pass in IR who make some transformation and, once the compilation is finished, I need to apply a post-processing.<br>
<br>
The post-processing need information from the IR part.<br>
<br>
Greetings,<br>
<br>
Johan<br>
<br>
<br>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>