Skip to content

Commit

Permalink
Make it easy to copy and paste JULIA_LLVM_ARGS from the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
haampie committed Oct 5, 2020
1 parent 55a6dab commit c0504a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/src/devdocs/llvm.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ implies that option by default.
You can pass options to LLVM via the environment variable `JULIA_LLVM_ARGS`.
Here are example settings using `bash` syntax:

* `export JULIA_LLVM_ARGS = -print-after-all` dumps IR after each pass.
* `export JULIA_LLVM_ARGS = -debug-only=loop-vectorize` dumps LLVM `DEBUG(...)` diagnostics for
* `export JULIA_LLVM_ARGS=-print-after-all` dumps IR after each pass.
* `export JULIA_LLVM_ARGS=-debug-only=loop-vectorize` dumps LLVM `DEBUG(...)` diagnostics for
loop vectorizer. If you get warnings about "Unknown command line argument", rebuild LLVM with
`LLVM_ASSERTIONS = 1`.

Expand Down Expand Up @@ -113,7 +113,7 @@ The best strategy is to create a code example in a form where you can use LLVM's
study it and the pass of interest in isolation.

1. Create an example Julia code of interest.
2. Use `JULIA_LLVM_ARGS = -print-after-all` to dump the IR.
2. Use `JULIA_LLVM_ARGS=-print-after-all` to dump the IR.
3. Pick out the IR at the point just before the pass of interest runs.
4. Strip the debug metadata and fix up the TBAA metadata by hand.

Expand Down

0 comments on commit c0504a1

Please sign in to comment.