Use stack IR when emitting text format (#312)

This commit is contained in:
Daniel Wirtz
2018-11-08 08:04:24 +01:00
committed by GitHub
parent 7135af36bd
commit 2bdc2a72f1
194 changed files with 239934 additions and 340697 deletions

View File

@ -1,24 +1,21 @@
(module
(type $v (func))
(memory $0 0)
(table 1 anyfunc)
(table $0 1 anyfunc)
(elem (i32.const 0) $null)
(global $ternary/a (mut i32) (i32.const 0))
(export "memory" (memory $0))
(export "table" (table $0))
(start $start)
(func $start (; 0 ;) (; has Stack IR ;) (type $v)
(set_global $ternary/a
(i32.const 1)
)
(set_global $ternary/a
(i32.const 1)
)
(set_global $ternary/a
(i32.const 1)
)
(func $start (; 0 ;) (type $v)
i32.const 1
set_global $ternary/a
i32.const 1
set_global $ternary/a
i32.const 1
set_global $ternary/a
)
(func $null (; 1 ;) (; has Stack IR ;) (type $v)
(nop)
(func $null (; 1 ;) (type $v)
nop
)
)