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