submit [PATCH] SimplifyCFG for code review

Renato Golin renato.golin at linaro.org
Sun Jun 23 10:13:00 PDT 2013


On 22 June 2013 00:39, Ye, Mei <Mei.Ye at amd.com> wrote:

>  On the other hand, what’s the policy to check in if a specific opt is
> not enabled by default?
>

Regarding the compiler flags, just look for: "static cl::opt<" and you'll
see all valid options, hidden or not, and if they're enabled by default or
not.

Example:

static cl::opt<bool> UseNewSROA("use-new-sroa",
  cl::init(true), cl::Hidden,
  cl::desc("Enable the new, experimental SROA pass"));

If you want to know what passes are enabled on certain optimizations levels
from Clang, search for "CodeGenOpts.OptimizationLevel".

Unfortunately, there isn't a document yet of what gets enabled at which
optimization level, or with what flag, since there isn't an automatic way
of documenting all the flags and their status and descriptions into nice
webpages, like GCC. Though, flags declaration (cl::opt) do create a nice
description on the command-line help.

It should be possible to add some call-backs on the PassRegistry to
document what goes where, maybe even at compile time with template magic.
But I'm not sure there are many people interested in doing or maintaining
this...

cheers,
--renato
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130623/bf967b5a/attachment.html>


More information about the llvm-commits mailing list