<div dir="ltr">For what it's worth, Android maintains an LLVM 3.2 bitcode writer (<a href="https://android.googlesource.com/platform/frameworks/compile/slang/+/master/BitWriter_3_2/">https://android.googlesource.com/platform/frameworks/compile/slang/+/master/BitWriter_3_2/</a>). I recently updated this to work with upstream LLVM @r209713. I know that there are a few interested parties that would love to see this decoupled and published as a separate library/utility, since there are now many projects that chose ~3.2 as a relatively stable bitcode format. Unfortunately, I never seem to have the time to be able to put it into a separate form that would be suitable for other projects to use.<div>
<br></div><div>Steve</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 2, 2014 at 7:37 AM, Tim Northover <span dir="ltr"><<a href="mailto:t.p.northover@gmail.com" target="_blank">t.p.northover@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<div class=""><br>
> I am wondering how to know the exhausted incompatibility of LLVM IR?<br>
<br>
</div>Unfortunately, you're probably going to have a very hard time of it.<br>
Compatibility in that direction isn't something LLVM either tries to<br>
maintain or document. We try to make sure older bitcode files will<br>
compile with newer versions of LLVM, though even that only works to an<br>
extent.<br>
<br>
The IR itself doesn't change *very* regularly (running "git log<br>
docs/LanguageReference.rst" would give some idea of what's happened<br>
since 3.2 -- I see ~150 since the 3.2 era). But how it's interpreted<br>
and what backends are expected to cope with is more in flux. And the<br>
API is almost certainly very different, so doing it all in a single<br>
process would lead to a world of pain.<br>
<br>
Cheers<br>
<br>
Tim.<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br></div>