diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -55,13 +55,13 @@ bin/binaryen-shell [.wast file] [options] [passes, see --help] [--help] The binaryen shell receives a .wast file as input, and can run transformation passes on it, as well as print it (before and/or after the transformations). For example, try ```` -bin/binaryen-shell test/if_else.wast -print-before +bin/binaryen-shell test/if_else.wast --print-before ```` That will pretty-print out one of the testcases in the test suite. To run a transformation pass on it, try ```` -bin/binaryen-shell test/if_else.wast -print-before -print-after -lower-if-else +bin/binaryen-shell test/if_else.wast --print-before --print-after --lower-if-else ```` The `lower-if-else` pass lowers if-else into a block and a break. You can see the change the transformation causes by comparing the print before versus after. |