<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 31, 2014 at 6:21 PM, Sean Silva <span dir="ltr"><<a href="mailto:chisophugis@gmail.com" target="_blank">chisophugis@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>Doug Yung started a discussion earlier (<a href="http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-September/077227.html" target="_blank">http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-September/077227.html</a>) about using the unused "version" field in the bitcode wrapper, and I think there was some misunderstanding. I'd like to clarify the motivation.</div><div><br></div><div>The reason we want to add the version field is to easily identify "old" bitcode. It is only LLVM version granularity, but that is good enough for us. The obvious thing is that we offer compatibility, so why do we need to know the bitcode version? There are really two reasons:</div><div><br></div><div>1. In the short term, LLVM does theoretically provide compatibility. However, we at Sony are under a much stronger commitment to our customers than the open source project here, so until the test infrastructure is beefed up quite a bit to improve this confidence in the backwards compatibility promise, the version field is a quick unobtrusive way for us to behave correctly in the short term. Beefing up the compatibility testing is a separate discussion that everybody realizes is a much larger long-term endeavor; we at Sony are glad to help with that. As we prepare for our first official SDK release with LTO, where our customers are officially sanctioned to feed bitcode to our tools, a solution is needed though. I think that existing toolchains with LTO will also benefit from this in the near-term.</div><div><br></div><div>2. In the long term, it *will* break across major releases. Currently I don't think we have a way to identify this. This is a bit longer-term perspective, but it will eventually come up and this fixes it.<br></div><div><br></div><div><br></div><div><div>Also, is there a reason why the bitcode wrapper is Darwin-specific?</div></div></div></blockquote><div><br></div><div>Rafael gave me some of the backstory on this. Basically it is to work around some buggy behavior in the Darwin ar. Adding that on the front of the bitcode file just to get a version doesn't seem like a very clean thing to do.</div><div><br></div><div>Doug, what other alternatives did you guys consider before settling on this?</div><div><br></div><div>As for #2 above, the non-universality of the wrapper makes using the wrapper as a version indicator sort of a non-starter.</div><div><br></div><div>Looks like I've taken my second U-turn on this proposal :/</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div> Can we just always use it and simplify the code path?</div><span class=""><font color="#888888"><div><br></div><div>-- Sean Silva</div></font></span></div></div>
</blockquote></div><br></div></div>