Skip to content

Commit ff20ff0

Browse files
authored
Merge pull request #37879 from haampie/fix-export-copy-and-paste
Make it easy to copy and paste JULIA_LLVM_ARGS from the docs
2 parents 8519538 + c0504a1 commit ff20ff0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/src/devdocs/llvm.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ implies that option by default.
6060
You can pass options to LLVM via the environment variable `JULIA_LLVM_ARGS`.
6161
Here are example settings using `bash` syntax:
6262

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

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

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

0 commit comments

Comments
 (0)