diff options
author | Jérôme Vouillon <jerome.vouillon@gmail.com> | 2024-07-16 16:36:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-16 13:36:47 -0700 |
commit | 43e8809d2683706b1ce43861ac8f9447d96a5273 (patch) | |
tree | 4033cbeacca1b0c8177cec2a879bfd5433ef2140 /test/binaryen.js/generate-stack-ir.js | |
parent | 53b7dd1f0f129f0304a045ea00ce92334c01fb75 (diff) | |
download | binaryen-43e8809d2683706b1ce43861ac8f9447d96a5273.tar.gz binaryen-43e8809d2683706b1ce43861ac8f9447d96a5273.tar.bz2 binaryen-43e8809d2683706b1ce43861ac8f9447d96a5273.zip |
Add C and JS APIs to control more pass options (#6713)
Add functions to:
* Set and get the trapsNeverHappen, closedWorld, generateStackIR and optimizeStackIR flags
* Manage the list of passes to skip.
Diffstat (limited to 'test/binaryen.js/generate-stack-ir.js')
-rw-r--r-- | test/binaryen.js/generate-stack-ir.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/binaryen.js/generate-stack-ir.js b/test/binaryen.js/generate-stack-ir.js new file mode 100644 index 000000000..8aac2ccd8 --- /dev/null +++ b/test/binaryen.js/generate-stack-ir.js @@ -0,0 +1,3 @@ +console.log("// generateStackIR=" + binaryen.getGenerateStackIR()); +binaryen.setGenerateStackIR(true); +assert(binaryen.getGenerateStackIR() == true); |