Home
last modified time | relevance | path

Searched refs:func (Results 1 – 25 of 2963) sorted by relevance

12345678910>>...119

/wasmtime-44.0.1/cranelift/src/
H A Dbugpoint.rs223 func, in mutate()
298 func, in mutate()
309 func, in mutate()
343 func, in mutate()
409 func, in mutate()
665 func, in mutate()
679 func, in mutate()
725 func, in mutate()
761 func: &Function, in next_inst_ret_prev()
783 func.layout in inst_count()
[all …]
/wasmtime-44.0.1/tests/misc_testsuite/component-model/gc/
H A Dempty.wast11 (func (export "f"))
15 (core type $ty (func))
16 (func (export "f")
25 (core func $f' (canon lower (func $f) gc (core-type $ty)))
29 (func (export "f")
38 (func (export "f") (canon lift (core func $i "f")))
58 (func (export "f")
67 (core func $f' (canon lower (func $f) gc (core-type $ty)))
80 (func (export "f") (canon lift (core func $i "f")))
108 (core func $f' (canon lower (func $f)))
[all …]
/wasmtime-44.0.1/tests/misc_testsuite/component-model/
H A Dadapter.wast6 (func (export ""))
10 (func (export "thunk")
18 (func (export ""))
22 (type $to_alias (func))
42 (core func $i "")
80 (core func $f_lower
94 (func $f1 (canon lift (core func $m "")))
95 (core func $f2 (canon lower (func $f1)))
102 (func $f1 (canon lift (core func $m "")))
103 (core func $f2 (canon lower (func $f1)))
[all …]
H A Dresources.wast54 (func (export "r") (canon lift (core func $i "r")))
76 (func (export "r") (canon lift (core func $i "r")))
231 (core func $ctor (canon lower (func $ctor)))
232 (core func $assert (canon lower (func $assert)))
309 (core func $ctor (canon lower (func $ctor)))
350 (core func $ctor (canon lower (func $ctor)))
398 (core func $ctor (canon lower (func $ctor)))
549 (core func $ctor (canon lower (func $ctor)))
762 (core func $ctor (canon lower (func $ctor)))
828 (core func $ctor (canon lower (func $ctor)))
[all …]
/wasmtime-44.0.1/tests/misc_testsuite/winch/
H A Dref-types-basic.wast4 (type $i32-func (func (result i32)))
6 (func $returns-42 (type $i32-func) (i32.const 42))
7 (func $returns-7 (type $i32-func) (i32.const 7))
8 (func $dummy)
13 ;; ref.null func / ref.is_null
15 (ref.is_null (ref.null func))
18 ;; ref.func + ref.is_null
19 (func (export "func-is-not-null") (result i32)
23 ;; ref.func + call_indirect
36 (select (result funcref) (ref.func $returns-42) (ref.func $returns-7) (local.get $c))
[all …]
H A Dtable_fill.wast4 (type $t0 (func))
5 (func $f1 (type $t0))
6 (func $f2 (type $t0))
7 (func $f3 (type $t0))
23 (func (export "get") (param $i i32) (result funcref)
36 (assert_return (invoke "get" (i32.const 2)) (ref.func 0))
37 (assert_return (invoke "get" (i32.const 3)) (ref.func 0))
38 (assert_return (invoke "get" (i32.const 4)) (ref.func 0))
42 (assert_return (invoke "get" (i32.const 3)) (ref.func 0))
77 (func (export "fill1") (param i32 funcref i32)
[all …]
/wasmtime-44.0.1/cranelift/frontend/src/
H A Dssa.rs155 .func in emit_zero()
226 func: &mut Function, in use_var()
310 func: &mut Function, in find_var()
465 self.run_state_machine(func, var, func.dfg.value_type(val)); in seal_one_block()
504 func: &mut Function, in finish_predecessors_lookup()
638 let mut func = Function::new(); in simple_block() localVariable
687 let mut func = Function::new(); in sequence_of_blocks() localVariable
816 let mut func = Function::new(); in program_with_loop() localVariable
957 let mut func = Function::new(); in br_table_with_args() localVariable
1150 func.dfg.insts[func.layout.first_inst(block0).unwrap()].opcode(), in undef_in_entry()
[all …]
/wasmtime-44.0.1/cranelift/codegen/src/dominator_tree/
H A Dsimple.rs216 domtree.compute(func, cfg); in with_function()
224 self.compute_postorder(func); in compute()
225 self.compute_domtree(func, cfg); in compute()
340 let func = Function::new(); in empty() localVariable
350 let mut func = Function::new(); in unreachable_node() localVariable
351 let block0 = func.dfg.make_block(); in unreachable_node()
353 let block1 = func.dfg.make_block(); in unreachable_node()
404 let mut func = Function::new(); in non_zero_entry_block() localVariable
456 &cur.func.layout in non_zero_entry_block()
478 let mut func = Function::new(); in backwards_layout() localVariable
[all …]
/wasmtime-44.0.1/tests/misc_testsuite/component-model/async/
H A Dfuture-read.wast40 (core func $child-run (canon lower (func $child "run")))
45 (func (export "run")
100 (core func $child-run (canon lower (func $child "run")))
106 (func (export "run")
117 (func (export "run")
154 (canon lift (core func $i "run") async (callback (func $i "cb"))))
164 (core func $child-run (canon lower (func $child "run")))
170 (func (export "run")
223 (canon lift (core func $i "run") async (callback (func $i "cb"))))
233 (core func $child-run (canon lower (func $child "run")))
[all …]
H A Dtask-builtins.wast96 (func (export "run")
119 (func (export "run")
120 (canon lift (core func $dm "run") (post-return (func $dm "post-return"))))
291 (core func $sync-to-sync
375 (func (export "sync-to-sync") async (canon lift (core func $m "sync-to-sync")))
376 (func (export "sync-to-async") async (canon lift (core func $m "sync-to-async")))
377 (func (export "async-to-sync") async (canon lift (core func $m "async-to-sync")))
378 (func (export "async-to-async") async (canon lift (core func $m "async-to-async")))
435 (core func $run
447 (func (export "run")
[all …]
H A Dfused.wast24 (canon lift (core func $i "foo") async (callback (func $i "callback")))
32 (core func $foo (canon lower (func $foo) async (memory $libc "memory")))
36 (func (export "run")
49 (func (export "run") (canon lift (core func $i "run")))
77 (core func $foo (canon lower (func $foo) async (memory $libc "memory")))
81 (func (export "run")
94 (func (export "run") (canon lift (core func $i "run")))
121 (canon lift (core func $i "foo") async (callback (func $i "callback")))
127 (core func $foo (canon lower (func $foo)))
130 (func (export "run")
[all …]
H A Dreenter-during-yield.wast24 (func (export "noop"))
32 (func (export "yield-loop") async
34 (core func $a "yield-loop")
39 (func (export "noop") (canon lift (core func $a "noop")))
45 (import "noop" (func $noop))
47 (core func $yield-loop (canon lower (func $yield-loop) async))
48 (core func $noop (canon lower (func $noop)))
54 (func (export "run")
73 (func (export "run") async (canon lift (core func $b "run")))
77 (with "noop" (func $a "noop"))
[all …]
H A Dstackful.wast10 (func (export "foo") (param i32) unreachable)
14 (func (export "foo") (param "p1" u32) (result u32)
15 (canon lift (core func $i "foo") async)
32 (canon lift (core func $i "foo") async)
40 (core func $foo (canon lower (func $foo) async (memory $libc "memory")))
44 (func (export "run")
57 (func (export "run") (canon lift (core func $i "run")))
80 (canon lift (core func $i "foo") async)
86 (core func $foo (canon lower (func $foo)))
89 (func (export "run")
[all …]
H A Dcancel-host.wast21 (func (export "run")
61 (core func $f (canon lower (func $host "[method]resource1.never-return") async))
62 (core func $new (canon lower (func $host "[constructor]resource1")))
76 (func (export "f") async
101 (func (export "run")
163 (func (export "run") async
188 (func (export "run")
252 (func (export "run") async
283 (func (export "run")
382 (func (export "run") async (canon lift (core func $i "run")))
[all …]
/wasmtime-44.0.1/tests/all/
H A Dpulley_provenance_test_component.wat3 (import "host-empty" (func $host-empty))
77 (core func $host-empty (canon lower (func $host-empty)))
78 (core func $host-u32 (canon lower (func $host-u32)))
79 (core func $host-enum (canon lower (func $host-enum)))
80 (core func $host-option (canon lower (func $host-option) (memory $libc "memory")))
81 (core func $host-result (canon lower (func $host-result) (memory $libc "memory")))
82 (core func $host-string (canon lower (func $host-string)
84 (core func $host-list (canon lower (func $host-list)
149 (func (export "guest-empty") (canon lift (core func $i "guest-empty")))
174 (func (export "random_get"))
[all …]
H A Dpulley_provenance_test_async_component.wat2 (import "return-slowly" (func $return-slowly async))
5 (import "run-stackless" (func $run_stackless async))
6 (import "run-stackful" (func $run_stackful async))
10 (core func $task_return (canon task.return))
15 (canon lower (func $run_stackless) async (core func $run_stackless))
16 (canon lower (func $run_stackful) async (core func $run_stackful))
48 (func (export "run-stackful")
95 …(func (export "run-stackless") async (canon lift (core func $i "run-stackless") async (callback (f…
96 (func (export "run-stackful") async (canon lift (core func $i "run-stackful") async))
130 (func (export "run")
[all …]
/wasmtime-44.0.1/tests/misc_testsuite/
H A Dcall_indirect.wast5 (type $proc (func))
6 (type $out-i32 (func (result i32)))
7 (type $out-i64 (func (result i64)))
8 (type $out-f32 (func (result f32)))
9 (type $out-f64 (func (result f64)))
55 (func (export "type-i32") (result i32)
104 (type $out-i32 (func (result i32)))
105 (type $out-i64 (func (result i64)))
106 (type $out-f32 (func (result f32)))
107 (type $out-f64 (func (result f64)))
[all …]
/wasmtime-44.0.1/cranelift/codegen/src/
H A Dinline.rs116 trace!("function {} before inlining: {}", func.name, func); in do_inlining()
250 trace!("function {} after inlining: {}", func.name, func); in do_inlining()
414 func, in inline_one()
824 func, in fixup_inst_that_returns()
833 func.dfg in fixup_inst_that_returns()
869 func, in fixup_inst_that_returns()
878 func.dfg in fixup_inst_that_returns()
940 self.func in map_jump_table()
964 self.func in map_exception_table()
1043 func.layout in inline_block_layout()
[all …]
H A Ddominator_tree.rs297 domtree.compute(func, cfg); in with_function()
314 self.compute_spanning_tree(func); in compute()
543 let func = Function::new(); in empty() localVariable
553 let mut func = Function::new(); in unreachable_node() localVariable
554 let block0 = func.dfg.make_block(); in unreachable_node()
556 let block1 = func.dfg.make_block(); in unreachable_node()
557 let block2 = func.dfg.make_block(); in unreachable_node()
607 let mut func = Function::new(); in non_zero_entry_block() localVariable
659 &cur.func.layout in non_zero_entry_block()
667 let mut func = Function::new(); in backwards_layout() localVariable
[all …]
H A Dwrite.rs21 func: &Function, in write_block_header()
30 func: &Function, in write_instruction()
96 func: &Function, in write_entity_definition()
122 func: &Function, in write_instruction()
133 func: &Function, in write_block_header()
165 func: &Function, in decorate_function()
188 write!(w, "{}{}", func.name, func.signature) in write_function_spec()
208 func: &Function, in write_block_header()
240 func: &Function, in decorate_block()
322 func: &Function, in write_instruction()
[all …]
/wasmtime-44.0.1/crates/component-macro/tests/codegen/
H A Dintegers.wit4 a1: func(x: u8);
5 a2: func(x: s8);
6 a3: func(x: u16);
7 a4: func(x: s16);
8 a5: func(x: u32);
9 a6: func(x: s32);
10 a7: func(x: u64);
11 a8: func(x: s64);
13 a9: func(
25 r1: func() -> u8;
[all …]
H A Dresources-import.wit6 static-a: static func() -> u32;
7 method-a: func() -> u32;
10 bar-own-arg: func(x: own<bar>);
11 bar-borrow-arg: func(x: borrow<bar>);
12 bar-result: func() -> own<bar>;
43 func-with-handle-typedef: func(x: some-handle);
56 foo: func();
57 static-foo: static func();
60 import some-world-func: func() -> world-resource;
75 handle: func(x: foo);
[all …]
H A Dlists.wit4 list-u8-param: func(x: list<u8>);
5 list-u16-param: func(x: list<u16>);
6 list-u32-param: func(x: list<u32>);
7 list-u64-param: func(x: list<u64>);
8 list-s8-param: func(x: list<s8>);
9 list-s16-param: func(x: list<s16>);
10 list-s32-param: func(x: list<s32>);
11 list-s64-param: func(x: list<s64>);
15 list-u8-ret: func() -> list<u8>;
16 list-u16-ret: func() -> list<u16>;
[all …]
/wasmtime-44.0.1/tests/misc_testsuite/component-model-threading/
H A Dthreading-trap-in-post-return.wast9 (core type $ft (func (param i32)))
12 (core func $thread.suspend (canon thread.suspend))
23 (func (export "noop"))
37 (func (export "trap-calling-thread-new-indirect")
38 (canon lift (core func $dm "noop")
41 (canon lift (core func $dm "noop")
43 (func (export "trap-calling-thread-suspend")
44 (canon lift (core func $dm "noop")
46 (func (export "trap-calling-thread-unsuspend")
47 (canon lift (core func $dm "noop")
[all …]
/wasmtime-44.0.1/tests/misc_testsuite/threads/
H A Datomics_wait_address.wast7 (type (;0;) (func))
8 (func $main (type 0)
21 (type (;0;) (func))
22 (func $main (type 0)
35 (type (;0;) (func))
36 (func $wait32 (type 0)
42 (func $wait64 (type 0)
57 (type (;0;) (func))
81 (type (;0;) (func))
104 (type (;0;) (func))
[all …]

12345678910>>...119