summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2020-03-05 15:52:44 -0800
committerGitHub <noreply@github.com>2020-03-05 15:52:44 -0800
commit9e3dbb1f668a14341e9aebae479537d4a26095a5 (patch)
tree9857d50c3373c3f6320ca3f2586bd499bc40b224 /scripts
parent3a275d0627da443cce93631a64d78e7b3f441416 (diff)
downloadbinaryen-9e3dbb1f668a14341e9aebae479537d4a26095a5.tar.gz
binaryen-9e3dbb1f668a14341e9aebae479537d4a26095a5.tar.bz2
binaryen-9e3dbb1f668a14341e9aebae479537d4a26095a5.zip
Initial multivalue support (#2675)
Implements parsing and emitting of tuple creation and extraction and tuple-typed control flow for both the text and binary formats. TODO: - Extend Precompute/interpreter to handle tuple values - C and JS API support/testing - Figure out how to lower in stack IR - Fuzzing
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gen-s-parser.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/gen-s-parser.py b/scripts/gen-s-parser.py
index 3d493f1de..e290322fb 100755
--- a/scripts/gen-s-parser.py
+++ b/scripts/gen-s-parser.py
@@ -480,7 +480,10 @@ instructions = [
("try", "makeTry(s)"),
("throw", "makeThrow(s)"),
("rethrow", "makeRethrow(s)"),
- ("br_on_exn", "makeBrOnExn(s)")
+ ("br_on_exn", "makeBrOnExn(s)"),
+ # Multivalue pseudoinstructions
+ ("tuple.make", "makeTupleMake(s)"),
+ ("tuple.extract", "makeTupleExtract(s)")
]