[LLVMdev] (no subject)
willdtz at gmail.com
Thu Sep 12 10:35:44 PDT 2013
To use options like "-time-passes" and "-stats" you need to prefix
them with "-mllvm":
clang -mllvm -time-passes -O3 test.c -o /dev/null
Note that I believe you need asserts enabled or some other build
configuration for this to work,
the timing code is disabled in fully release builds IIRC.
Hope this helps!
On Thu, Sep 12, 2013 at 11:50 AM, Niko Zarzani <koni10 at hotmail.it> wrote:
> Hi all,
> I was interested in knowing which of the passes spends the most of the time
> compiling the dns server BIND.
> With the -CC option I selected clang as my compiler and, as I was expecting,
> the compilation gave me no problems.
> Now I have a question, is there any way to set an option similiar to
> "-time-passes" to clang in order to get those information I was interested
> Or do you think there is another equivalent way to do that?
> Thank you in advance,
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the llvm-dev