This is the following of PR #154452. It extend Wasm binary to Wasm SSA importer with support of control flow operations, comparison operations and conversion operations. --------- Co-authored-by: Ferdinand Lemaire <ferdinand.lemaire@woven-planet.global> Co-authored-by: Jessica Paquette <jessica.paquette@woven-planet.global> Co-authored-by: Luc Forget <luc.forget@woven.toyota>
18 lines
396 B
MLIR
18 lines
396 B
MLIR
// RUN: yaml2obj %S/inputs/loop.yaml.wasm -o - | mlir-translate --import-wasm | FileCheck %s
|
|
|
|
/* IR generated from:
|
|
(module
|
|
(func
|
|
(loop $my_loop
|
|
)
|
|
)
|
|
)*/
|
|
|
|
// CHECK-LABEL: wasmssa.func @func_0() {
|
|
// CHECK: wasmssa.loop : {
|
|
// CHECK: wasmssa.block_return
|
|
// CHECK: }> ^bb1
|
|
// CHECK: ^bb1:
|
|
// CHECK: wasmssa.return
|
|
// CHECK: }
|