diff --git a/docs/HowToSubmitABug.html b/docs/HowToSubmitABug.html index b07d6cf1bbe..b94479594d0 100644 --- a/docs/HowToSubmitABug.html +++ b/docs/HowToSubmitABug.html @@ -148,8 +148,7 @@ compilation, compile your test-case to a .s file with the -save-temps option to llvm-gcc. Then run:

-

gccas -debug-pass=Arguments < /dev/null -o - > /dev/null -

+
gccas -debug-pass=Arguments < /dev/null -o - > /dev/null

... which will print a list of arguments, indicating the list of passes that @@ -172,8 +171,9 @@ being linked together (the "llvm-gcc -v" output should include the full list of objects linked). Then run:

-

llvm-as < /dev/null > null.bc - gccld -debug-pass=Arguments null.bc

+
+llvm-as < /dev/null > null.bc
+gccld -debug-pass=Arguments null.bc

... which will print a list of arguments, indicating the list of passes that @@ -196,7 +196,7 @@ order to reduce the list of passes (which is probably large) and the input to something tractable, use the bugpoint tool as follows:

-

bugpoint <input files> <list of passes>

+
bugpoint <input files> <list of passes>

bugpoint will print a bunch of output as it reduces the @@ -242,8 +242,8 @@ which code generator you wish to compile the program with (e.g. C backend, the JIT, or LLC) and optionally a series of LLVM passes to run. For example:

-

bugpoint -run-cbe [... optimization passes ...] file-to-test.bc ---args -- [program arguments]

+
+bugpoint -run-cbe [... optimization passes ...] file-to-test.bc --args -- [program arguments]

bugpoint will try to narrow down your list of passes to the one pass @@ -295,8 +295,10 @@ debug the JIT, LLC, and CBE, using the pre-written Makefile targets, which will pass the program options specified in the Makefiles:

-

cd llvm/test/../../program
- make bugpoint-jit

+
+cd llvm/test/../../program
+make bugpoint-jit
+

At the end of a successful bugpoint run, you will be presented @@ -309,28 +311,32 @@ the following:

    -
  1. Regenerate the shared object from the safe bytecode file:

    +
  2. Regenerate the shared object from the safe bytecode file:

    -
    -

    llc -march=c safe.bc -o safe.c
    - gcc -shared safe.c -o safe.so

    -
  3. +
    +
    +llc -march=c safe.bc -o safe.c
    +gcc -shared safe.c -o safe.so
    +
    +
    -
  4. If debugging LLC, compile test bytecode native and link with the shared - object:

    +
  5. If debugging LLC, compile test bytecode native and link with the shared + object:

    -
    -

    llc test.bc -o test.s -f
    - gcc test.s safe.so -o test.llc
    - ./test.llc [program options]

    -
  6. - -
  7. If debugging the JIT, load the shared object and supply the test - bytecode:

    +
    +
    +llc test.bc -o test.s -f
    +gcc test.s safe.so -o test.llc
    +./test.llc [program options]
    +
    +
  8. + +
  9. If debugging the JIT, load the shared object and supply the test + bytecode:

    -
    -

    lli -load=safe.so test.bc [program options]

    -
  10. +
    +
    lli -load=safe.so test.bc [program options]
    +