<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 19, 2014 at 7:45 PM, Eric Christopher <span dir="ltr"><<a href="mailto:echristo@gmail.com" target="_blank">echristo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":3dl" class="a3s" style="overflow:hidden">Does seem useful in a few limited cases, one comment - you do know about llvm-extract right?</div></blockquote><div><br></div><div>I think that this flag is most useful as a filter on the -print-before kind of flags. Given that, what I wanted to suggest was for this flag to use the logic of llvm-extract so that it produces a  stand-alone module with just the one function when doing print-before-all, etc. That might also suggest specific flag names related to the 'extract' logic.</div><div><br></div><div>I know that I have frequently wanted to essentially run llvm-extract programmatically during the pass pipeline.</div></div></div></div>