diff options
author | Dan Gohman <gohman@apple.com> | 2008-12-08 04:02:47 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-12-08 04:02:47 +0000 |
commit | 70ef449741da8b1ef035e04a55958652a0200ba1 (patch) | |
tree | 5076fe2492725480299ed59fe3199de3e5ef892d /docs/CommandGuide | |
parent | 28ea4f6c070f3d7eb75291a64cf75f1e7af6eadf (diff) | |
download | external_llvm-70ef449741da8b1ef035e04a55958652a0200ba1.zip external_llvm-70ef449741da8b1ef035e04a55958652a0200ba1.tar.gz external_llvm-70ef449741da8b1ef035e04a55958652a0200ba1.tar.bz2 |
Generalize bugpoint's concept of a "safe" backend, and add options
to allow the "safe" backend to be run with a different path, and/or
with different command-line options.
This enables the following use cases:
- bugpoint llc against an llc command from a different build
- bugpoint llc against the same llc with different command-line options
- and more...
Also, document the existing "custom" interpreter options.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60681 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/CommandGuide')
-rw-r--r-- | docs/CommandGuide/bugpoint.pod | 36 |
1 files changed, 32 insertions, 4 deletions
diff --git a/docs/CommandGuide/bugpoint.pod b/docs/CommandGuide/bugpoint.pod index d97f51f..4a16ffd 100644 --- a/docs/CommandGuide/bugpoint.pod +++ b/docs/CommandGuide/bugpoint.pod @@ -57,6 +57,11 @@ The "--" right after the B<--tool-args> option tells B<bugpoint> to consider any options starting with C<-> to be part of the B<--tool-args> option, not as options to B<bugpoint> itself. (See B<--args>, above.) +=item B<--safe-tool-args> I<tool args> + +Pass all arguments specified after --safe-tool-args to the "safe" execution +tool. + =item B<--disable-{dce,simplifycfg}> Do not run the specified passes to clean up and reduce the size of the test @@ -103,18 +108,41 @@ to zero to disable the limit. Whenever the test program produces output on its standard output stream, it should match the contents of F<filename> (the "reference output"). If you do not use this option, B<bugpoint> will attempt to generate a reference output -by compiling the program with the C backend and running it. +by compiling the program with the "safe" backend and running it. =item B<--profile-info-file> F<filename> Profile file loaded by B<--profile-loader>. -=item B<--run-{int,jit,llc,cbe}> +=item B<--run-{int,jit,llc,cbe,custom}> Whenever the test program is compiled, B<bugpoint> should generate code for it using the specified code generator. These options allow you to choose the -interpreter, the JIT compiler, the static native code compiler, or the C -backend, respectively. +interpreter, the JIT compiler, the static native code compiler, the C +backend, or a custom command (see B<--exec-command>) respectively. + +=item B<--safe-{llc,cbe,custom}> + +When debugging a code generator, B<bugpoint> should use the specified code +generator as the "safe" code generator. This is a known-good code generator +used to generate the "reference output" if it has not been provided, and to +compile portions of the program that as they are excluded from the testcase. +These options allow you to choose the +static native code compiler, the C backend, or a custom command, +(see B<--exec-command>) respectively. The interpreter and the JIT backends +cannot currently be used as the "safe" backends. + +=item B<--exec-command> I<command> + +This option defines the command to use with the B<--run-custom> and +B<--safe-custom> options to execute the bitcode testcase. This can +be useful for cross-compilation. + +=item B<--safe-path> I<path> + +This option defines the path to the command to execute with the +B<--safe-{int,jit,llc,cbe,custom}> +option. =back |