summaryrefslogtreecommitdiff
path: root/src/passes/DeadCodeElimination.cpp
diff options
context:
space:
mode:
authorDaniel Wirtz <dcode@dcode.io>2020-09-29 22:19:09 +0200
committerGitHub <noreply@github.com>2020-09-29 22:19:09 +0200
commit7d673ce83206349159a68fe683bc7da02dcdaf98 (patch)
treeb6be0e5842b8726406c50e9481531cf456db326f /src/passes/DeadCodeElimination.cpp
parent781da4c206c54e92b46358c00d079ada66cef0df (diff)
downloadbinaryen-7d673ce83206349159a68fe683bc7da02dcdaf98.tar.gz
binaryen-7d673ce83206349159a68fe683bc7da02dcdaf98.tar.bz2
binaryen-7d673ce83206349159a68fe683bc7da02dcdaf98.zip
GC: Add stubs for the remaining instructions (#3174)
NFC, except adding most of the boilerplate for the remaining GC instructions. Each implementation site is marked with a respective `TODO (gc): theInstruction` in between the typical boilerplate code.
Diffstat (limited to 'src/passes/DeadCodeElimination.cpp')
-rw-r--r--src/passes/DeadCodeElimination.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/passes/DeadCodeElimination.cpp b/src/passes/DeadCodeElimination.cpp
index 7562645e0..067bc81e1 100644
--- a/src/passes/DeadCodeElimination.cpp
+++ b/src/passes/DeadCodeElimination.cpp
@@ -379,6 +379,30 @@ struct DeadCodeElimination
DELEGATE(I31New);
case Expression::Id::I31GetId:
DELEGATE(I31Get);
+ case Expression::Id::RefTestId:
+ DELEGATE(RefTest);
+ case Expression::Id::RefCastId:
+ DELEGATE(RefCast);
+ case Expression::Id::BrOnCastId:
+ DELEGATE(BrOnCast);
+ case Expression::Id::RttCanonId:
+ DELEGATE(RttCanon);
+ case Expression::Id::RttSubId:
+ DELEGATE(RttSub);
+ case Expression::Id::StructNewId:
+ DELEGATE(StructNew);
+ case Expression::Id::StructGetId:
+ DELEGATE(StructGet);
+ case Expression::Id::StructSetId:
+ DELEGATE(StructSet);
+ case Expression::Id::ArrayNewId:
+ DELEGATE(ArrayNew);
+ case Expression::Id::ArrayGetId:
+ DELEGATE(ArrayGet);
+ case Expression::Id::ArraySetId:
+ DELEGATE(ArraySet);
+ case Expression::Id::ArrayLenId:
+ DELEGATE(ArrayLen);
case Expression::Id::InvalidId:
WASM_UNREACHABLE("unimp");
case Expression::Id::NumExpressionIds: