diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2020-09-07 18:29:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-07 18:29:33 -0700 |
commit | a6816a287bd3f802cb6db51032e77145f036c8b7 (patch) | |
tree | 2b13779744aa126688055095bb1c747dc786f265 /test/example/stack-utils.txt | |
parent | 775363a98002a14c64bdc4f8d591c6f37b1e1604 (diff) | |
download | binaryen-a6816a287bd3f802cb6db51032e77145f036c8b7.tar.gz binaryen-a6816a287bd3f802cb6db51032e77145f036c8b7.tar.bz2 binaryen-a6816a287bd3f802cb6db51032e77145f036c8b7.zip |
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.
Diffstat (limited to 'test/example/stack-utils.txt')
-rw-r--r-- | test/example/stack-utils.txt | 17 |
1 files changed, 17 insertions, 0 deletions
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 |