[LLVMdev] output -stats to file.txt

Villmow, Micah Micah.Villmow at amd.com
Tue Jun 12 13:35:07 PDT 2012


Ahh, my bad, its outputting to stderr, not stdout, use '2> file.txt'.

Micah

From: Rafael Parizi [mailto:parizi.computacao at gmail.com]
Sent: Tuesday, June 12, 2012 1:34 PM
To: Villmow, Micah
Cc: llvmdev at cs.uiuc.edu
Subject: Re: [LLVMdev] output -stats to file.txt

I already did. What I need is to have this output in a txt file.
On Tue, Jun 12, 2012 at 5:31 PM, Villmow, Micah <Micah.Villmow at amd.com<mailto:Micah.Villmow at amd.com>> wrote:
Add an optimization level and you get information.
D:\ >opt -stats temp.bc -o tmp.bc2

D:\ >opt -stats temp.bc -o tmp.bc2 -O3
===-------------------------------------------------------------------------===
                          ... Statistics Collected ...
===-------------------------------------------------------------------------===

1 cgscc-passmgr - Maximum CGSCCPassMgr iterations on one SCC
3 reassociate   - Number of insts reassociated


From: Rafael Parizi [mailto:parizi.computacao at gmail.com<mailto:parizi.computacao at gmail.com>]
Sent: Tuesday, June 12, 2012 1:27 PM
To: Villmow, Micah
Cc: llvmdev at cs.uiuc.edu<mailto:llvmdev at cs.uiuc.edu>
Subject: Re: [LLVMdev] output -stats to file.txt

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<mailto: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> [mailto: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<mailto: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




--
Rafael Parizi


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120612/bf704949/attachment.html>


More information about the llvm-dev mailing list