<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 20 May 2015 at 00:21, Owen Anderson <span dir="ltr"><<a href="mailto:resistor@mac.com" target="_blank">resistor@mac.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><span class=""><blockquote type="cite"><div>On May 19, 2015, at 6:04 PM, Nick Lewycky <<a href="mailto:nlewycky@google.com" target="_blank">nlewycky@google.com</a>> wrote:</div><br><div><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">What are the guarantees on it? Can I take .bc -> spir-V -> .bc and get identical .bc back?</span></div></blockquote><div><br></div></span><div>For the subset of LLVM IR that is representable in SPIR-V, I would expect this to work.  Given that SPIR-V is specialized for representing a particular kind of programming model, that seems completely reasonable to me.</div><span class=""><br><blockquote type="cite"><div><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">Can I take spir-V -> .bc -> spir-V and get identical spir-V back?</span></div></blockquote><div><br></div></span><div>I would expect this to work as well.</div></div></div></blockquote><div><br></div><div>I think you missed the point of my question, I am asking what LLVM promises will work, not what's "expected to work today".</div></div></div></div>