search for: passoptionlist

Displaying 7 results from an estimated 7 matches for "passoptionlist".

2010 Mar 26
0
[LLVMdev] [PATCH] Before/After IR Dumps
...er()->getParent()); + delete Printer; + return false; + } This can just call print on the function, no need to create the pass. It would be even better to just print the blocks in the loop or print "not implemented yet" though. +// Print IR out before/after specified passes. +PassOptionList +PrintBefore("print-before", + llvm::cl::desc("Print IR before specified passes")); + +PassOptionList +PrintAfter("print-after", + llvm::cl::desc("Print IR after specified passes")); + +cl::opt<bool> +PrintBeforeAll("print-befo...
2010 Mar 17
4
[LLVMdev] [PATCH] Before/After IR Dumps
On Monday 15 March 2010 13:45:14 David Greene wrote: > On Sunday 14 March 2010 18:32:35 Chris Lattner wrote: > > This is much better than the first iteration but still has many issues. I believe I've addressed all your points with this patch except I didn't use StringRef. It doesn't appear to be useful since createPrinterPass will be sent a const std::string & and will
2010 Mar 14
3
[LLVMdev] [PATCH] Before/After IR Dumps
...ss.h" #include "llvm/Assembly/Writer.h" #include "llvm/Support/CommandLine.h" You don't need this #include. +// Register a pass and add options to dump the IR before and after it +// is run +typedef llvm::cl::list<const llvm::PassInfo *, bool, PassNameParser> +PassOptionList; This comment is out of date. +// Print IR out before/after specified passes +PassOptionList +PrintBefore("print-before", + llvm::cl::desc("Print IR before specified passes")); Please properly punctuate your comment. +namespace { +/// This is a utility to check w...
2010 Mar 29
2
[LLVMdev] [PATCH] Before/After IR Dumps
...> + return false; > + } > > This can just call print on the function, no need to create the pass. It > would be even better to just print the blocks in the loop or print "not > implemented yet" though. Ok. > +// Print IR out before/after specified passes. > +PassOptionList > +PrintBefore("print-before", > + llvm::cl::desc("Print IR before specified passes")); > + > +PassOptionList > +PrintAfter("print-after", > + llvm::cl::desc("Print IR after specified passes")); > + > +cl::opt<b...
2010 Mar 12
0
[LLVMdev] [PATCH] Before/After IR Dumps
On Friday 12 March 2010 08:13:05 Kalle Raiskila wrote: > David Greene wrote: > > Here's a rework using PassManager as Chris suggested. Comments? > > Tried this second patch with the svn version 97812 (the one the patch is > made against), but it doesn't compile: > "llvm/include/llvm/Pass.h:127: Error: expected unqualified-id before "&" >
2010 Mar 12
2
[LLVMdev] [PATCH] Before/After IR Dumps
David Greene wrote: > Here's a rework using PassManager as Chris suggested. Comments? Tried this second patch with the svn version 97812 (the one the patch is made against), but it doesn't compile: "llvm/include/llvm/Pass.h:127: Error: expected unqualified-id before "&" token" Seems raw_ostream is forward declared but not defined (adding a missing #include
2010 Mar 15
0
[LLVMdev] [PATCH] Before/After IR Dumps
...y/Writer.h" > #include "llvm/Support/CommandLine.h" > > You don't need this #include. Ok. > +// Register a pass and add options to dump the IR before and after it > +// is run > +typedef llvm::cl::list<const llvm::PassInfo *, bool, PassNameParser> > +PassOptionList; > > This comment is out of date. Not sure, I'll check. > +// Print IR out before/after specified passes > +PassOptionList > +PrintBefore("print-before", > + llvm::cl::desc("Print IR before specified passes")); > > Please properly punctua...