summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2020-09-09 13:01:21 -0700
committerGitHub <noreply@github.com>2020-09-09 13:01:21 -0700
commit2aa0cf300998c62aea8cc6698f8325653a9f0895 (patch)
tree2116bc18fd58514589821858c528951e76c5178b /src/wasm.h
parent41ea543093ed734c73e5202c58c899be447b3223 (diff)
downloadbinaryen-2aa0cf300998c62aea8cc6698f8325653a9f0895.tar.gz
binaryen-2aa0cf300998c62aea8cc6698f8325653a9f0895.tar.bz2
binaryen-2aa0cf300998c62aea8cc6698f8325653a9f0895.zip
Poppy IR wast parsing and validation (#3105)
Adds an IR profile to each function so the validator can determine which validation rules to apply and adds a flag to have the wast parser set the profile to Poppy for testing purposes.
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wasm.h b/src/wasm.h
index edcda4219..63a6fe79c 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -62,6 +62,8 @@ struct Address {
}
};
+enum class IRProfile { Normal, Poppy };
+
// Operators
enum UnaryOp {
@@ -1262,6 +1264,7 @@ class Function : public Importable {
public:
Name name;
Signature sig; // parameters and return value
+ IRProfile profile = IRProfile::Normal;
std::vector<Type> vars; // non-param locals
// The body of the function