* Standardize manpage output: program name bold, options italic/emphasized
[oota-llvm.git] / docs / CommandGuide / llvm-bcanalyzer.pod
1 =pod
2
3 =head1 NAME
4
5 llvm-bcanalyzer - LLVM bytecode analyzer
6
7 =head1 SYNOPSIS
8
9 B<llvm-bcanalyzer> [I<options>] [I<filename>]
10
11 =head1 DESCRIPTION
12
13 The B<llvm-bcanalyzer> command is a small utility for analyzing bytecode files.
14 The tool reads a bytecode file (such as generated with the B<llvm-as> tool) and
15 produces a statistical report on the contents of the byteocde file.  The tool
16 will also dump a low level but human readable version of the bytecode file. 
17 This tool is probably not of much interest or utility except for those working 
18 directly with the bytecode file format. Most LLVM users can just ignore
19 this tool.
20
21 If F<filename> is omitted or is C<->, then B<llvm-bcanalyzer> reads its input 
22 from standard input. This is useful for combining the tool into a pipeline.
23
24 Output is written to the standard output.
25
26 =head1 OPTIONS
27
28 =over
29
30 =item B<-nodetails>
31
32 Causes B<llvm-bcanalyzer> to abbreviate its output by writing out only a module 
33 level summary. The details for individual functions are not displayed.
34
35 =item B<-dump>
36
37 Causes B<llvm-bcanalyzer> to dump the bytecode in a human readable format. This 
38 format is significantly different from LLVM assembly and provides details about 
39 the encoding of the bytecode file. 
40
41 =item B<-verify>
42
43 Causes B<llvm-bcanalyzer> to verify the module produced by by reading the 
44 bytecode. This ensures that the statistics generated are based on a consistent
45 module.
46
47 =item B<--help>
48
49 Print a summary of command line options.
50
51 =back
52
53 =head1 EXIT STATUS
54
55 If B<llvm-bcanalyzer> succeeds, it will exit with 0.  Otherwise, if an error
56 occurs, it will exit with a non-zero value, usually 1.
57
58 =head1 SEE ALSO
59
60 L<llvm-dis|llvm-dis>, L<http://llvm.cs.uiuc.edu/docs/BytecodeFormat.html>
61
62 =head1 AUTHORS
63
64 Maintained by the LLVM Team (L<http://llvm.cs.uiuc.edu>).
65
66 =cut