[llvm-commits] [llvm] r56337 - in /llvm/trunk: test/Analysis/CallGraph/2008-09-09-DirectCall.ll test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll test/Other/2002-01-31-CallGraph.ll tools/opt/AnalysisWrappers.cpp

Devang Patel dpatel at apple.com
Mon Sep 22 11:08:00 PDT 2008


On Sep 22, 2008, at 7:46 AM, Duncan Sands wrote:

> Hi Devang,
>
>> How about renaming -callgraph as -dump-callgraph ?
>
> opt has the following options that print info.
>
>    -callgraph                            - Print a call graph
>    -callscc                              - Print SCCs of the Call  
> Graph
>    -cfgscc                               - Print SCCs of each  
> function CFG
>    -externalfnconstants                  - Print external fn  
> callsites passed constants
>    -print                                - Print function to stderr
>    -print-alias-sets                     - Alias Set Printer
>    -print-callgraph                      - Print Call Graph to 'dot'  
> file
>    -print-cfg                            - Print CFG of function to  
> 'dot' file
>    -print-cfg-only                       - Print CFG of function to  
> 'dot' file (with no function bodies)
>    -print-dom-info                       - Dominator Info Printer
>    -printm                               - Print module to stderr
>    -printusedtypes                       - Find Used Types
>
> It seems a bit of a mess.  What do you think of the following changes:
>
>    -callgraph => print-callgraph
>    -callscc   => print-callgraph-sccs
>    -cfgscc    => print-cfg-sccs
>    -externalfnconstants => print-externalfnconstants
>    -print               => print-function
>    -print-alias-sets (no change)
>    -print-callgraph     => dot-callgraph
>    -print-cfg           => dot-cfg
>    -print-cfg-only      => dot-cfg-only
>    -print-dom-info (no change)
>    -printm              => print-module
>    -printusedtypes      => print-used-types
>
> ?

Yes, this is better.
-
Devang



More information about the llvm-commits mailing list