blob: d5eff7ad8812ea3c8a578d6b3734e0553512ecda [file] [log] [blame]
Misha Brukman69985172004-07-01 15:25:04 +00001=pod
2
3=head1 NAME
4
5analyze - LLVM program analyzer
6
7=head1 SYNOPSIS
8
Misha Brukmanc08937a2004-07-02 16:06:19 +00009B<analyze> [I<options>] [I<filename>]
Misha Brukman69985172004-07-01 15:25:04 +000010
11=head1 DESCRIPTION
12
13The B<analyze> command performs various analysis of LLVM assembly
14code or bytecode. It will usually print the results on standard
15output, but in a few cases, it will print output to standard error
16or generate a file with the analysis output, which is usually done
17when the output is meant for another program.
18
19If filename is omitted or is I<->, B<analyze> reads its input from
20standard input. It first attempts to interpret its input as LLVM
21bytecode. If it encounters an error, it then attempts to parse the
22input as LLVM assembly language.
23
24=head1 OPTIONS
25
26=over
27
28=item B<-help>
29
30Print a summary of command line options.
31
32=item B<-q>
33
34Quiet mode. With this option, analysis pass names are not printed.
35
36=item B<-load> I<plugin>
37
38Load the specified dynamic object with name I<plugin>. This file
39should contain additional analysis passes that register themselves
40with the B<analyze> program after being loaded.
41
42After being loaded, additional command line options are made
43available for running the passes made available by I<plugin>. Use
44B<analyze -load> I<plugin> B<-help> to see the new list of available
45analysis passes.
46
47=item B<-profile-info-file> I<filename>
48
49Specify the name of the file loaded by the -profile-loader option.
50
51=item B<-stats>
52
53Print statistics.
54
55=item B<-time-passes>
56
57Record the amount of time needed for each pass and print it to standard
58error.
59
60=back
61
62=head1 EXIT STATUS
63
64If B<analyze> succeeds, it will exit with 0. Otherwise, if an error
65occurs, it will exit with a non-zero value.
66
67=head1 SEE ALSO
68
Misha Brukmanc08937a2004-07-02 16:06:19 +000069L<opt|opt>
Misha Brukman69985172004-07-01 15:25:04 +000070
71=head1 AUTHORS
72
Reid Spencercd143fc2006-03-14 05:42:07 +000073Maintained by the LLVM Team (L<http://llvm.org>).
Misha Brukman69985172004-07-01 15:25:04 +000074
75=cut