Hi! I'm estimating the number of basic blocks of the a program using "opt -stats bitecode.bc" I would like to save the output of the -stats opt into a file .txt. How can I do this? -- *Rafael Parizi* -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120612/cc314c37/attachment.html>
Have you tried "opt -stats bitecode.bc > test.txt"? From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Rafael Parizi Sent: Tuesday, June 12, 2012 11:36 AM To: llvmdev at cs.uiuc.edu Subject: [LLVMdev] output -stats to file.txt Hi! I'm estimating the number of basic blocks of the a program using "opt -stats bitecode.bc" I would like to save the output of the -stats opt into a file .txt. How can I do this? -- Rafael Parizi -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120612/2d132089/attachment.html>
Yes, I've tried and it did not work On Tue, Jun 12, 2012 at 4:03 PM, Villmow, Micah <Micah.Villmow at amd.com>wrote:> Have you tried "opt -stats bitecode.bc > test.txt"?**** > > ** ** > > *From:* llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] *On > Behalf Of *Rafael Parizi > *Sent:* Tuesday, June 12, 2012 11:36 AM > *To:* llvmdev at cs.uiuc.edu > *Subject:* [LLVMdev] output -stats to file.txt**** > > ** ** > > Hi!**** > > I'm estimating the number of basic blocks of the a program using "opt > -stats bitecode.bc"**** > > I would like to save the output of the -stats opt into a file .txt.**** > > How can I do this?**** > > ** ** > > ** ** > > -- > *Rafael Parizi* > > > **** >-- *Rafael Parizi* -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120612/8b60fe22/attachment.html>