blob: 4f0e1d881ae0599decdbc3ba37b0576526a26ec4 [file] [log] [blame]
Reid Spencerf02edd22006-12-02 16:36:48 +00001=pod
2
3=head1 NAME
4
5llvm-upgrade - LLVM assembly upgrader
6
7=head1 SYNOPSIS
8
9B<llvm-upgrade> [I<options>] [I<filename>]
10
11=head1 DESCRIPTION
12
13B<llvm-upgrade> is the LLVM assembly upgrader. It reads a file containing
14human-readable LLVM assembly language, and upgrades that assembly to the current
15version of LLVM. If the input is in the form currently accepted by LLVM, then
16no upgrades are performed.
17
18The expected usage of this tool is as a filter, like this:
19
20=over
21
22B<llvm-1.9/bin/llvm-dis < 1.9.bc | llvm-upgrade | llvm-2.0/bin/llvm-as -o 2.0.bc>
23
24=back
25
26If F<filename> is omitted or is C<->, then B<llvm-upgrade> reads its input from
27standard input.
28
29If an output file is not specified with the B<-o> option, then
30B<llvm-upgrade> sends its output to standard output.
31
32=head1 OPTIONS
33
34=over
35
36=item B<-f>
37
38Force overwrite. Normally, B<llvm-upgrade> will refuse to overwrite an
39output file that already exists. With this option, B<llvm-upgrade>
40will overwrite the output file.
41
42=item B<--help>
43
44Print a summary of command line options.
45
46=item B<-o> F<filename>
47
48Specify the output file name. If F<filename> is C<->, then B<llvm-upgrade>
49sends its output to standard output.
50
51=back
52
53=head1 EXIT STATUS
54
55If B<llvm-upgrade> succeeds, it will exit with 0. Otherwise, if an error
56occurs, it will exit with a non-zero value.
57
58=head1 SEE ALSO
59
60L<llvm-as|llvm-as>, L<llvm-dis|llvm-dis>
61
62=head1 AUTHORS
63
64Maintained by the LLVM Team (L<http://llvm.org>).
65
66=cut