[LLVMdev] [PATCH] Before/After IR Dumps

David Greene dag at cray.com
Thu Mar 4 08:13:46 PST 2010


On Thursday 04 March 2010 09:28:22 David Greene wrote:

> I could get rid of the "Previous" parameter to addPass<> if we don't mind
> duplicate output in the case where we want something printed after
> Pass A and before Pass B when Pass B immediately follows Pass A.

I could get rid of "LastPass" as well if we don't mind duplicate output.  This
would remove the changes to the addPasses... interfaces which would
reduce the impact of the patch.  But the main cause of the widespread changes
is changing PM.addPass(...) to addPass<>(PM,...) and I can't think of a way
to avoid that change offhand.  Those lines have to change in some way to
tell some entity which kind of printer is needed.

                                                    -Dave




More information about the llvm-dev mailing list