<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>I tried it on a simple file test.c (as you did) but actually clang does not show me any output.<div><br><div>In addition I tried to set the CFLAGS specifying the -mllvm -time-passes options. However<span style="font-size: 12pt; "> I still have anything about the time passes informations in the output and I also get this warning during the build with make:</span></div><div>clang: warning: argument unused during compilation: '-mllvm -time-passes'</div><div>Maybe the warning is due to the fact that the <span style="font-size: 12pt; ">timing code is disabled, but I am not sure since it doesn't seem to work on a simple file.</span></div><div><div><br></div><div>Have I done something wrong or am I missing something? Do you have any other suggestion?</div><div><br></div><div>I really appreciated your help!</div><div>Thank you in advance,</div><div><br></div><div>Niko<br><br><div>> Date: Thu, 12 Sep 2013 12:35:44 -0500<br>> Subject: Re: [LLVMdev] (no subject)<br>> From: willdtz@gmail.com<br>> To: koni10@hotmail.it<br>> CC: llvmdev@cs.uiuc.edu<br>> <br>> To use options like "-time-passes" and "-stats" you need to prefix<br>> them with "-mllvm":<br>> <br>> clang -mllvm -time-passes -O3 test.c -o /dev/null<br>> <br>> Note that I believe you need asserts enabled or some other build<br>> configuration for this to work,<br>> the timing code is disabled in fully release builds IIRC.<br>> <br>> Hope this helps!<br>> </div><div><span style="font-size: 12pt; ">> ~Will</span></div><div>> <br>> On Thu, Sep 12, 2013 at 11:50 AM, Niko Zarzani <koni10@hotmail.it> wrote:<br>> > Hi all,<br>> ><br>> > I was interested in knowing which of the passes spends the most of the time<br>> > compiling the dns server BIND.<br>> > With the -CC option I selected clang as my compiler and, as I was expecting,<br>> > the compilation gave me no problems.<br>> > Now I have a question, is there any way to set an option similiar to<br>> > "-time-passes" to clang in order to get those information I was interested<br>> > in?<br>> > Or do you think there is another equivalent way to do that?<br>> ><br>> > Thank you in advance,<br>> ><br>> > Niko<br>> ><br>> > _______________________________________________<br>> > LLVM Developers mailing list<br>> > LLVMdev@cs.uiuc.edu         http://llvm.cs.uiuc.edu<br>> > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev<br>> ><br></div></div></div></div>                                           </div></body>
</html>