summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-05-13 20:01:11 +0000
committerChris Lattner <sabre@nondot.org>2005-05-13 20:01:11 +0000
commit1e6df2e6d0decde607945132102771dcf5408812 (patch)
tree963d6ab18c844f5c09b45da0005bb2d9e4619200 /docs
parent4bf7afcc271138512c38ab2e4a348e2fe6164140 (diff)
update this manual
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21965 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r--docs/CommandGuide/llc.pod70
1 files changed, 36 insertions, 34 deletions
diff --git a/docs/CommandGuide/llc.pod b/docs/CommandGuide/llc.pod
index e7b42f3c996..910dfad450f 100644
--- a/docs/CommandGuide/llc.pod
+++ b/docs/CommandGuide/llc.pod
@@ -12,11 +12,11 @@ B<llc> [I<options>] [I<filename>]
The B<llc> command compiles LLVM bytecode into assembly language for a
specified architecture. The assembly language output can then be passed through
-a native assembler and linker to generate native code.
+a native assembler and linker to generate a native executable.
-The choice of architecture for the output assembly code is automatically
-determined from the input bytecode file, unless a B<-m> option is used to override
-the default.
+The choice of architecture for the output assembly code is automatically
+determined from the input bytecode file, unless the B<-march> option is used to
+override the default.
=head1 OPTIONS
@@ -33,8 +33,14 @@ removing any existing F<.bc> extension, and adding a F<.s> suffix.
Other B<llc> options are as follows:
+=head2 End-user Options
+
=over
+=item B<--help>
+
+Print a summary of command line options.
+
=item B<-f>
Overwrite output files. By default, B<llc> will refuse to overwrite
@@ -42,42 +48,32 @@ an output file which already exists.
=item B<-march>=I<arch>
-Specify the architecture for which to generate assembly. Valid
-architectures are:
-
-=over
-
-=item I<x86>
-
-Intel IA-32 (Pentium and above)
-
-=item I<ppc32>
+Specify the architecture for which to generate assembly, overriding the target
+encoded in the bytecode file. See the output of B<llc --help> for a list of
+valid architectures.
-32-bit PowerPC (MacOS X, 32-bit ABI)
+=item B<--disable-fp-elim>
-=item I<sparcv9>
+Disable frame pointer elimination optimization.
-64-bit SPARC V9
+=item B<--disable-excess-fp-precision>
-=item I<c>
+Disable optimizations that may produce excess precision for floating point.
+Note that this option can dramatically slow down code on some systems
+(e.g. X86).
-Emit C code, not assembly
+=item B<--enable-unsafe-fp-math>
-=back
-
-=item B<--disable-fp-elim>
-
-Disable frame pointer elimination optimization.
+Enable optimizations that make unsafe assumptions about IEEE math (e.g. that
+addition is associative) or may not work for all input ranges. These
+optimizations allow the code generator to make use of some instructions which
+would otherwise not be usable (such as fsin on X86).
=item B<--enable-correct-eh-support>
Instruct the B<lowerinvoke> pass to insert code for correct exception handling
support. This is expensive and is by default omitted for efficiency.
-=item B<--help>
-
-Print a summary of command line options.
-
=item B<--stats>
Print statistics recorded by code-generation passes.
@@ -87,6 +83,18 @@ Print statistics recorded by code-generation passes.
Record the amount of time needed for each pass and print a report to standard
error.
+=item B<--load>=F<dso_path>
+
+Dynamically load F<dso_path> (a path to a dynamically shared object) that
+implements an LLVM target. This will permit the target name to be used with the
+B<-march> option so that code can be generated for that target.
+
+=back
+
+=head2 Tuning/Configuration Options
+
+=over
+
=item B<--print-machineinstrs>
Print generated machine code between compilation phases (useful for debugging).
@@ -134,12 +142,6 @@ Local spiller
=back
-=item B<--load>=F<dso_path>
-
-Dynamically load F<dso_path> (a path to a dynamically shared object) that
-implements an LLVM target. This will permit the target name to be used with the
-B<-march> option so that code can be generated for that target.
-
=back
=head2 Intel IA-32-specific Options