Inline jump tables in parsed br_table instructions (#5755)

As jump tables are used by at most one br_table instruction, inline their definition in those instructions instead of requiring them to be declared as function-level metadata.
This commit is contained in:
Trevor Elliott
2023-02-09 14:24:04 -08:00
committed by GitHub
parent 202d3af16a
commit 15fe9c7c93
23 changed files with 54 additions and 200 deletions

View File

@@ -985,10 +985,9 @@ mod tests {
// Here is the pseudo-program we want to translate:
//
// function %f {
// jt = jump_table [block2, block1]
// block0:
// x = 1;
// br_table x, block2, jt
// br_table x, block2, [block2, block1]
// block1:
// x = 2
// jump block2