From a6816a287bd3f802cb6db51032e77145f036c8b7 Mon Sep 17 00:00:00 2001 From: Thomas Lively <7121787+tlively@users.noreply.github.com> Date: Mon, 7 Sep 2020 18:29:33 -0700 Subject: Stack utils (#3083) Implement and test utilities for manipulating and analyzing a new stacky form of Binaryen IR that is able to express arbitrary stack machine code. This new Poppy IR will eventually replace Stack IR, and new optimization passes will be built with these utilities. See #3059. --- test/example/stack-utils.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/example/stack-utils.txt (limited to 'test/example/stack-utils.txt') diff --git a/test/example/stack-utils.txt b/test/example/stack-utils.txt new file mode 100644 index 000000000..c278ca099 --- /dev/null +++ b/test/example/stack-utils.txt @@ -0,0 +1,17 @@ +;; Test removeNops +(block (result i32 i64) + (nop) + (i32.const 0) + (nop) + (i64.const 0) + (nop) + (nop) +) +(block (result i32 i64) + (i32.const 0) + (i64.const 0) +) +;; Test stack signatures +;; Test stack signature composition +;; Test stack signature satisfaction +;; Test stack flow -- cgit v1.2.3