<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>I don't think this represent my position. I mentioned earlier in the thread that we should have "llvm-dis | llvm-as" being able to round-trip bitcode, including summaries when present.<br></div></div></div></div></blockquote><div><br>OK, then I think there's been a lot of confusion, so maybe focussing on these comments might be more useful.<br><br>How do you envision that happening? That the summary would be written in the textual representation? (or it could be reconstructed, as you mention, by having a single bit/flag/something in the textual representation that says "this has a summary" & then a summary could be generated from the Module and written out to the bitcode)<br><br>That's all I'm really interested in in this discussion. That summaries seem like they should be as well represented in .ll files as they are in .bc files.<br><br>And if that's the case, it seems weird for them to be YAML - YAML in a .ll file would seem out of place/inconsistent with the rest of what's in a .ll file, to me. Not impossible, but a bit 'off'.<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
</blockquote></div></div><div class="gmail_extra">This does not mean that testing how we handle summaries in ThinLTO requires to write *both* IR and summary in the textual input. </div><div class="gmail_extra">I'm advocating that this would b a terrible way of writing test, which I believe is an orthogonal concern to *supporting* round-tripping bitcode files that contain summaries.</div></div><div dir="ltr"><div class="gmail_extra"><br></div><div class="gmail_extra">-- </div><div class="gmail_extra">Mehdi</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div></blockquote></div></div>