Lines Matching full:table
1 // WebAssemblyInstrTable.td - WebAssembly Table codegen support -*- tablegen -*-
10 /// WebAssembly Table operand code-gen constructs.
23 multiclass TABLE<WebAssemblyRegClass rc, string suffix> {
25 defm TABLE_GET_#rc : I<(outs rc:$res), (ins table32_op:$table, I32:$i),
26 (outs), (ins table32_op:$table),
27 …cast<Intrinsic>("int_wasm_table_get_" # suffix) (WebAssemblyWrapper tglobaladdr:$table), I32:$i))],
28 "table.get\t$res, $table, $i",
29 "table.get\t$table",
33 defm TABLE_SET_#rc : I<(outs), (ins table32_op:$table, I32:$i, rc:$val),
34 (outs), (ins table32_op:$table),
35 …trinsic>("int_wasm_table_set_" # suffix) (WebAssemblyWrapper tglobaladdr:$table), I32:$i, rc:$val)…
36 "table.set\t$table, $i, $val",
37 "table.set\t$table",
40 defm TABLE_GROW_#rc : I<(outs I32:$sz), (ins table32_op:$table, rc:$val, I32:$n),
41 (outs), (ins table32_op:$table),
42 …rinsic>("int_wasm_table_grow_" # suffix) (WebAssemblyWrapper tglobaladdr:$table), rc:$val, I32:$n)…
43 "table.grow\t$sz, $table, $val, $n",
44 "table.grow\t$table",
47 defm TABLE_FILL_#rc : I<(outs), (ins table32_op:$table, I32:$i, rc:$val, I32:$n),
48 (outs), (ins table32_op:$table),
49 …rinsic>("int_wasm_table_fill_" # suffix) (WebAssemblyWrapper tglobaladdr:$table), I32:$i, rc:$val,…
50 "table.fill\t$table, $i, $val, $n",
51 "table.fill\t$table",
55 def : Pat<(vt (WebAssemblyTableGet (WebAssemblyWrapper tglobaladdr:$table), i32:$idx)),
56 (!cast<NI>("TABLE_GET_" # rc) tglobaladdr:$table, i32:$idx)>;
58 (WebAssemblyWrapper tglobaladdr:$table),
61 (!cast<NI>("TABLE_SET_" # rc) tglobaladdr:$table, i32:$idx, vt:$src)>;
65 defm "" : TABLE<FUNCREF, "funcref">, Requires<[HasReferenceTypes]>;
66 defm "" : TABLE<EXTERNREF, "externref">, Requires<[HasReferenceTypes]>;
67 defm "" : TABLE<EXNREF, "exnref">,
70 def : Pat<(WebAssemblyTableSet mcsym:$table, i32:$idx, funcref:$r),
71 (TABLE_SET_FUNCREF mcsym:$table, i32:$idx, funcref:$r)>,
74 defm TABLE_SIZE : I<(outs I32:$sz), (ins table32_op:$table),
75 (outs), (ins table32_op:$table),
76 [(set I32:$sz, (int_wasm_table_size (WebAssemblyWrapper tglobaladdr:$table)))],
77 "table.size\t$sz, $table",
78 "table.size\t$table",
88 "table.copy\t$table1, $table2, $d, $s, $n",
89 "table.copy\t$table1, $table2",