diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-07-02 10:05:23 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-02 10:05:23 -0700 |
commit | ef93042503a61e5a051536ba7f02b41fffcd69bc (patch) | |
tree | 82d5e221f6654e181c6c4ac3a9a870f5680852c9 /src/binaryen-c.h | |
parent | 44290db4fc014c8e032fb61f95ca9805d2ce57bc (diff) | |
download | binaryen-ef93042503a61e5a051536ba7f02b41fffcd69bc.tar.gz binaryen-ef93042503a61e5a051536ba7f02b41fffcd69bc.tar.bz2 binaryen-ef93042503a61e5a051536ba7f02b41fffcd69bc.zip |
Relooper switch support (#617)
* support switches in relooper and c api
* update relooper fuzzer for switches
Diffstat (limited to 'src/binaryen-c.h')
-rw-r--r-- | src/binaryen-c.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/binaryen-c.h b/src/binaryen-c.h index 1421325d9..7f9a775d5 100644 --- a/src/binaryen-c.h +++ b/src/binaryen-c.h @@ -386,10 +386,10 @@ RelooperBlockRef RelooperAddBlock(RelooperRef relooper, BinaryenExpressionRef co void RelooperAddBranch(RelooperBlockRef from, RelooperBlockRef to, BinaryenExpressionRef condition, BinaryenExpressionRef code); // Create a basic block that ends a switch on a condition -// TODO RelooperBlockRef RelooperAddBlockWithSwitch(RelooperRef relooper, BinaryenExpressionRef code, BinaryenExpressionRef condition); +RelooperBlockRef RelooperAddBlockWithSwitch(RelooperRef relooper, BinaryenExpressionRef code, BinaryenExpressionRef condition); -// Create a switch-style branch to another basic block. The block's switch table will have an index for this branch -// TODO void RelooperAddBranchForSwitch(RelooperBlockRef from, RelooperBlockRef to, BinaryenIndex index, BinaryenExpressionRef code); +// Create a switch-style branch to another basic block. The block's switch table will have these indexes going to that target +void RelooperAddBranchForSwitch(RelooperBlockRef from, RelooperBlockRef to, BinaryenIndex* indexes, BinaryenIndex numIndexes, BinaryenExpressionRef code); // Generate structed wasm control flow from the CFG of blocks and branches that were created // on this relooper instance. This returns the rendered output, and also disposes of the |