<div dir="ltr">Not for the summary format specifically, but you can always search the web for "yaml reference" for general information about the format. There are also examples of valid yaml summaries in llvm/test/Transforms/LowerTypeTests/Inputs.<div><br></div><div>Peter</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 7, 2018 at 3:15 PM,  <span dir="ltr"><<a href="mailto:dmitry.mikulin@sony.com" target="_blank">dmitry.mikulin@sony.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Are there any pointers to docs to help write them?<br>
<div class="HOEnZb"><div class="h5"><br>
> On Feb 7, 2018, at 3:10 PM, Peter Collingbourne <<a href="mailto:peter@pcc.me.uk">peter@pcc.me.uk</a>> wrote:<br>
><br>
> Generally we write them by hand. Is there anything in particular that you are having trouble with?<br>
><br>
> Peter<br>
><br>
> On Wed, Feb 7, 2018 at 2:47 PM, <<a href="mailto:dmitry.mikulin@sony.com">dmitry.mikulin@sony.com</a>> wrote:<br>
> How do I generate yams summary file?<br>
> Tests for -lowertypetests-write-summary always read an input summary.<br>
> How do I generate the input?<br>
><br>
> > On Feb 7, 2018, at 12:17 PM, Peter Collingbourne via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br>
> ><br>
> > pcc added a comment.<br>
> ><br>
> > In <a href="https://reviews.llvm.org/D43027#1000808" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D43027#1000808</a>, @tejohnson wrote:<br>
> ><br>
> >> I'd like @pcc to comment. I noticed there are a number of other places in this file where we will still be calling replaceAllUsesWith on a Function. How do we know which should use which method?<br>
> ><br>
> ><br>
> > We need to use `replaceUsesExceptBlockAddr` if the function that we are replacing is a function definition. As far as I can tell, in all other cases we are replacing function declarations.<br>
> ><br>
> ><br>
> ><br>
> > ================<br>
> > Comment at: llvm/test/ThinLTO/X86/<wbr>blockaddr-import.ll:2<br>
> > +; RUN: opt -thinlto-bc %s -o %t1.bc<br>
> > +; RUN: llvm-lto2 run %t1.bc -r=%t1.bc,o,x -r=%t1.bc,l,plx -r=%t1.bc,m,plx -r=%t1.bc,d,plx -o %t2<br>
> > +<br>
> > ----------------<br>
> > Can this be written as an IR-level test of the pass? See for example `llvm/test/Transforms/<wbr>LowerTypeTests/import-icall.<wbr>ll`.<br>
> ><br>
> ><br>
> > <a href="https://reviews.llvm.org/D43027" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D43027</a><br>
> ><br>
> ><br>
> ><br>
><br>
><br>
><br>
><br>
> --<br>
> --<br>
> Peter<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">-- <div>Peter</div></div></div>
</div>