From 1e6df2e6d0decde607945132102771dcf5408812 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 13 May 2005 20:01:11 +0000 Subject: [PATCH] update this manual git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21965 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/CommandGuide/llc.pod | 74 ++++++++++++++++++++------------------- 1 file changed, 38 insertions(+), 36 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 [I] [I] The B 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 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 will refuse to overwrite @@ -42,42 +48,32 @@ an output file which already exists. =item B<-march>=I -Specify the architecture for which to generate assembly. Valid -architectures are: - -=over - -=item I - -Intel IA-32 (Pentium and above) - -=item I - -32-bit PowerPC (MacOS X, 32-bit ABI) - -=item I - -64-bit SPARC V9 - -=item I - -Emit C code, not assembly - -=back +Specify the architecture for which to generate assembly, overriding the target +encoded in the bytecode file. See the output of B for a list of +valid architectures. =item B<--disable-fp-elim> Disable frame pointer elimination optimization. +=item B<--disable-excess-fp-precision> + +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). + +=item B<--enable-unsafe-fp-math> + +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 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 + +Dynamically load F (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 - -Dynamically load F (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