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

@@ -2,56 +2,51 @@
(type $v (func))
(type $FUNCSIG$v (func))
(memory $0 0)
(table 1 anyfunc)
(table $0 1 anyfunc)
(elem (i32.const 0) $null)
(export "memory" (memory $0))
(export "table" (table $0))
(start $start)
(func $scoped/fn (; 0 ;) (; has Stack IR ;) (type $FUNCSIG$v)
(nop)
(func $scoped/fn (; 0 ;) (type $FUNCSIG$v)
nop
)
(func $start (; 1 ;) (; has Stack IR ;) (type $v)
(func $start (; 1 ;) (type $v)
(local $0 i32)
(block $break|0
(loop $repeat|0
(br_if $break|0
(i32.ge_s
(get_local $0)
(i32.const 1)
)
)
(set_local $0
(i32.add
(get_local $0)
(i32.const 1)
)
)
(br $repeat|0)
)
)
(block $break|1
(set_local $0
(i32.const 0)
)
(loop $repeat|1
(br_if $break|1
(i32.ge_s
(get_local $0)
(i32.const 1)
)
)
(set_local $0
(i32.add
(get_local $0)
(i32.const 1)
)
)
(br $repeat|1)
)
)
(call $scoped/fn)
block $break|0
loop $repeat|0
get_local $0
i32.const 1
i32.ge_s
br_if $break|0
get_local $0
i32.const 1
i32.add
set_local $0
br $repeat|0
unreachable
end
unreachable
end
block $break|1
i32.const 0
set_local $0
loop $repeat|1
get_local $0
i32.const 1
i32.ge_s
br_if $break|1
get_local $0
i32.const 1
i32.add
set_local $0
br $repeat|1
unreachable
end
unreachable
end
call $scoped/fn
)
(func $null (; 2 ;) (; has Stack IR ;) (type $v)
(nop)
(func $null (; 2 ;) (type $v)
nop
)
)