[cfe-users] Documentation of optimization flags/levels

Gonzalo BG gonzalobg88 at gmail.com
Wed Jul 30 04:49:01 PDT 2014


I have tried to find documentation about the optimization flags available
in the current version of clang (ToT) without much success (both in the
webpage, the manual, and google).  Google always points me to:
http://clang.llvm.org/docs/UsersManual.html but I see no information there
regarding optimization levels/flags (only for the visual studio emulation).

Does anyone have a link to this documentation?

I'm particularly interested in:
- which optimization flags are there and a description of what they do
(e.g. -ffast-math),
- which optimization levels are there (e.g. O2) and which flags does each
level enable,
- which potentially-useful llvm optimization options are there (e.g. -mllvm
-inline-threshold=value) and a link to the llvm docs that describe them.

Gonzalo BG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20140730/21ec939d/attachment.html>

More information about the cfe-users mailing list