[PATCH] Single function IR dump

Chandler Carruth chandlerc at google.com
Wed Nov 19 17:54:20 PST 2014


On Wed, Nov 19, 2014 at 7:45 PM, Eric Christopher <echristo at gmail.com>
wrote:

> Does seem useful in a few limited cases, one comment - you do know about
> llvm-extract right?
>

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.

I know that I have frequently wanted to essentially run llvm-extract
programmatically during the pass pipeline.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141119/74509a08/attachment.html>


More information about the llvm-commits mailing list