mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +00:00
llvm2cpp no longer reads LLVM assembly but LLVM bytecode instead. Adjust
the documentation to reflect this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29596 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
=head1 NAME
|
=head1 NAME
|
||||||
|
|
||||||
llvm2xpp - LLVM assembler to LLVM C++ IR translator
|
llvm2xpp - LLVM bytecode to LLVM C++ IR translator
|
||||||
|
|
||||||
=head1 SYNOPSIS
|
=head1 SYNOPSIS
|
||||||
|
|
||||||
@@ -10,18 +10,18 @@ B<llvm2cpp> [I<options>] [I<filename>]
|
|||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
B<llvm2cpp> translates from human readable LLVM assembly (.ll files) to a
|
B<llvm2cpp> translates from LLVM bytecode (.bc files) to a
|
||||||
corresponding C++ source file that will make calls against the LLVM C++ API to
|
corresponding C++ source file that will make calls against the LLVM C++ API to
|
||||||
build the same module as the input. By default, the C++ output is a complete
|
build the same module as the input. By default, the C++ output is a complete
|
||||||
program that builds the module, verifies it and then emits the module as
|
program that builds the module, verifies it and then emits the module as
|
||||||
LLVM assembly again. This technique assists with testing because the input to
|
LLVM assembly. This technique assists with testing because the input to
|
||||||
B<llvm2cpp> and the output of the generated C++ program should be identical.
|
B<llvm2cpp> and the output of the generated C++ program should be identical.
|
||||||
|
|
||||||
If F<filename> is omitted or is C<->, then B<llvm2cpp> reads its input from
|
If F<filename> is omitted or is C<->, then B<llvm2cpp> reads its input from
|
||||||
standard input.
|
standard input.
|
||||||
|
|
||||||
If an output file is not specified with the B<-o> option, then
|
If an output file is not specified with the B<-o> option, then
|
||||||
B<llvm-as> sends its output to a file or standard output by following
|
B<llvm2cpp> sends its output to a file or standard output by following
|
||||||
these rules:
|
these rules:
|
||||||
|
|
||||||
=over
|
=over
|
||||||
@@ -32,12 +32,12 @@ If the input is standard input, then the output is standard output.
|
|||||||
|
|
||||||
=item *
|
=item *
|
||||||
|
|
||||||
If the input is a file that ends with C<.ll>, then the output file is of
|
If the input is a file that ends with C<.bc>, then the output file is of
|
||||||
the same name, except that the suffix is changed to C<.cpp>.
|
the same name, except that the suffix is changed to C<.cpp>.
|
||||||
|
|
||||||
=item *
|
=item *
|
||||||
|
|
||||||
If the input is a file that does not end with the C<.ll> suffix, then the
|
If the input is a file that does not end with the C<.bc> suffix, then the
|
||||||
output file has the same name as the input file, except that the C<.cpp>
|
output file has the same name as the input file, except that the C<.cpp>
|
||||||
suffix is appended.
|
suffix is appended.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user