summaryrefslogtreecommitdiffstats
path: root/llvm/tools/opt
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2018-05-31 22:02:34 +0000
committerHeejin Ahn <aheejin@gmail.com>2018-05-31 22:02:34 +0000
commit99d60e0dabcf20f4db683da83cde905b7a1373de (patch)
tree0f0ea16dbb9884dcc2ee2ac8418ae579b4718c96 /llvm/tools/opt
parent2ae1ab30e378ae982d6e6b00aefedd84a00c9b29 (diff)
downloadbcm5719-llvm-99d60e0dabcf20f4db683da83cde905b7a1373de.tar.gz
bcm5719-llvm-99d60e0dabcf20f4db683da83cde905b7a1373de.zip
[WebAssembly] Add Wasm exception handling prepare pass
Summary: This adds a pass that transforms a program to be prepared for Wasm exception handling. This is using Windows EH instructions and based on the previous Wasm EH proposal. (https://github.com/WebAssembly/exception-handling/blob/master/proposals/Exceptions.md) Reviewers: dschuff, majnemer Subscribers: jfb, mgorny, sbc100, jgravelle-google, JDevlieghere, sunfish, llvm-commits Differential Revision: https://reviews.llvm.org/D43746 llvm-svn: 333696
Diffstat (limited to 'llvm/tools/opt')
-rw-r--r--llvm/tools/opt/opt.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp
index 677ddc6fd06..e552b98b436 100644
--- a/llvm/tools/opt/opt.cpp
+++ b/llvm/tools/opt/opt.cpp
@@ -447,6 +447,7 @@ int main(int argc, char **argv) {
initializePostInlineEntryExitInstrumenterPass(Registry);
initializeUnreachableBlockElimLegacyPassPass(Registry);
initializeExpandReductionsPass(Registry);
+ initializeWasmEHPreparePass(Registry);
initializeWriteBitcodePassPass(Registry);
#ifdef LINK_POLLY_INTO_TOOLS
OpenPOWER on IntegriCloud