From 4f501bf322eb5ff3f21ff479c1cbeb19cc818f37 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 16 Dec 2005 05:18:53 +0000 Subject: [PATCH] Document -mcpu -mattr -triple git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24731 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/CommandGuide/llc.pod | 36 +++++++++++++++++++++--------------- docs/CommandGuide/lli.pod | 27 ++++++++++++++++++++++++--- 2 files changed, 45 insertions(+), 18 deletions(-) diff --git a/docs/CommandGuide/llc.pod b/docs/CommandGuide/llc.pod index 910dfad450f..7b6eb05254d 100644 --- a/docs/CommandGuide/llc.pod +++ b/docs/CommandGuide/llc.pod @@ -46,11 +46,31 @@ Print a summary of command line options. Overwrite output files. By default, B will refuse to overwrite an output file which already exists. +=item B<-triple>=I + +Override the target triple specified in the input bytecode file with the +specified string. + =item B<-march>=I 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. +valid architectures. By default this is inferred from the target triple or +autodetected to the current architecture. + +=item B<-mcpu>=I + +Specify a specific chip in the current architecture to generate code for. +By default this is inferred from the target triple and autodetected to +the current architecture. For a list of available CPUs, use: +B /dev/null | llc -march=xyz -mcpu=help> + +=item B<-mattr>=I + +Override or control specific attributes of the target, such as whether SIMD +operations are enabled or not. The default set of attributes is set by the +current CPU. For a list of available attributes, use: +B /dev/null | llc -march=xyz -mattr=help> =item B<--disable-fp-elim> @@ -155,20 +175,6 @@ syntax. =back -=head2 SPARCV9-specific Options - -=over - -=item B<--disable-peephole> - -Disable peephole optimization pass. - -=item B<--disable-sched> - -Disable local scheduling pass. - -=back - =head1 EXIT STATUS If B succeeds, it will exit with 0. Otherwise, if an error occurs, diff --git a/docs/CommandGuide/lli.pod b/docs/CommandGuide/lli.pod index 25888c4e857..1bb3e9c4c22 100644 --- a/docs/CommandGuide/lli.pod +++ b/docs/CommandGuide/lli.pod @@ -40,11 +40,32 @@ the just-in-time compiler, at present. Record the amount of time needed for each code-generation pass and print it to standard error. +=item B<-triple>=I + +Override the target triple specified in the input bytecode file with the +specified string. This may result in a crash if you pick an +architecture which is not compatible with the current system. + =item B<-march>=I -Use the specified non-default architecture arch when selecting a code generator -for the just-in-time compiler. This may result in a crash if you pick an -architecture which is not compatible with the hardware you are running B on. +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. By default this is inferred from the target triple or +autodetected to the current architecture. + +=item B<-mcpu>=I + +Specify a specific chip in the current architecture to generate code for. +By default this is inferred from the target triple and autodetected to +the current architecture. For a list of available CPUs, use: +B /dev/null | llc -march=xyz -mcpu=help> + +=item B<-mattr>=I + +Override or control specific attributes of the target, such as whether SIMD +operations are enabled or not. The default set of attributes is set by the +current CPU. For a list of available attributes, use: +B /dev/null | llc -march=xyz -mattr=help> =item B<-force-interpreter>=I<{false,true}> -- 2.34.1