summaryrefslogtreecommitdiffstats
path: root/llvm/docs/CommandGuide/llvm-upgrade.pod
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-12-02 16:36:48 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-12-02 16:36:48 +0000
commit797cb85015c6d8dcd20951be18dada10a7f72d25 (patch)
tree55b6b6ad3c143102f95535f25dc8f1f024a4993c /llvm/docs/CommandGuide/llvm-upgrade.pod
parent963bdf3885b1fd1e2d2fdbf5a2faa0685b1ebdf7 (diff)
downloadbcm5719-llvm-797cb85015c6d8dcd20951be18dada10a7f72d25.tar.gz
bcm5719-llvm-797cb85015c6d8dcd20951be18dada10a7f72d25.zip
Add llvm-upgrade documentation.
llvm-svn: 32125
Diffstat (limited to 'llvm/docs/CommandGuide/llvm-upgrade.pod')
-rw-r--r--llvm/docs/CommandGuide/llvm-upgrade.pod66
1 files changed, 66 insertions, 0 deletions
diff --git a/llvm/docs/CommandGuide/llvm-upgrade.pod b/llvm/docs/CommandGuide/llvm-upgrade.pod
new file mode 100644
index 00000000000..4f0e1d881ae
--- /dev/null
+++ b/llvm/docs/CommandGuide/llvm-upgrade.pod
@@ -0,0 +1,66 @@
+=pod
+
+=head1 NAME
+
+llvm-upgrade - LLVM assembly upgrader
+
+=head1 SYNOPSIS
+
+B<llvm-upgrade> [I<options>] [I<filename>]
+
+=head1 DESCRIPTION
+
+B<llvm-upgrade> is the LLVM assembly upgrader. It reads a file containing
+human-readable LLVM assembly language, and upgrades that assembly to the current
+version of LLVM. If the input is in the form currently accepted by LLVM, then
+no upgrades are performed.
+
+The expected usage of this tool is as a filter, like this:
+
+=over
+
+B<llvm-1.9/bin/llvm-dis < 1.9.bc | llvm-upgrade | llvm-2.0/bin/llvm-as -o 2.0.bc>
+
+=back
+
+If F<filename> is omitted or is C<->, then B<llvm-upgrade> reads its input from
+standard input.
+
+If an output file is not specified with the B<-o> option, then
+B<llvm-upgrade> sends its output to standard output.
+
+=head1 OPTIONS
+
+=over
+
+=item B<-f>
+
+Force overwrite. Normally, B<llvm-upgrade> will refuse to overwrite an
+output file that already exists. With this option, B<llvm-upgrade>
+will overwrite the output file.
+
+=item B<--help>
+
+Print a summary of command line options.
+
+=item B<-o> F<filename>
+
+Specify the output file name. If F<filename> is C<->, then B<llvm-upgrade>
+sends its output to standard output.
+
+=back
+
+=head1 EXIT STATUS
+
+If B<llvm-upgrade> succeeds, it will exit with 0. Otherwise, if an error
+occurs, it will exit with a non-zero value.
+
+=head1 SEE ALSO
+
+L<llvm-as|llvm-as>, L<llvm-dis|llvm-dis>
+
+=head1 AUTHORS
+
+Maintained by the LLVM Team (L<http://llvm.org>).
+
+=cut
OpenPOWER on IntegriCloud