Introduce Julia filter to encapsulate top level Block as a FunctionDefinition (wasm specific)

This commit is contained in:
Alex Beregszaszi
2018-05-09 11:21:03 +02:00
parent 1e95335589
commit 8afd0ea030
4 changed files with 192 additions and 0 deletions
+9
View File
@@ -87,3 +87,12 @@ simple rules like ``x + 0 == x`` to simplify expressions.
## Ineffective Statement Remover
This step removes statements that have no side-effects.
## WebAssembly specific
### Main Function
Changes the topmost block to be a function with a specific name ("main") which has no
inputs nor outputs.
Depends on the Function Grouper.