Skip to content

Commit

Permalink
Tweak the Clang Plugin example commands:
Browse files Browse the repository at this point in the history
• Use real files (small ones, early alphabetically)
• Remove the leading `$`s
(I have a strong preference for build documentation examples which can be triple-clicked and dragged.)
  • Loading branch information
FlashSheridan committed Oct 16, 2023
1 parent dd6fa1a commit 22c6463
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,16 +129,17 @@ This plugin tries to validate every IR-level transformation performed
by LLVM. Invoke the plugin like this:

```
$ clang -O3 <src.c> -S -emit-llvm \
clang -O3 $LLVM2_HOME/clang/test/C/C99/n505.c -S -emit-llvm \
-fpass-plugin=$ALIVE2_HOME/alive2/build/tv/tv.so \
-Xclang -load -Xclang $ALIVE2_HOME/alive2/build/tv/tv.so
```

Or, more conveniently:

```
$ $ALIVE2_HOME/alive2/build/alivecc -O3 -c <src.c>
$ $ALIVE2_HOME/alive2/build/alive++ -O3 -c <src.cpp>
$ALIVE2_HOME/alive2/build/alivecc -O3 -c $LLVM2_HOME/clang/test/C/C99/n505.c
$ALIVE2_HOME/alive2/build/alive++ -O3 -c $LLVM2_HOME/clang/test/Analysis/aggrinit-cfg-output.cpp
```

The Clang plugin can optionally use multiple cores. To enable parallel
Expand Down

0 comments on commit 22c6463

Please sign in to comment.