[PATCH] D46803: [WebAssembly] Add WebAssemblyExceptionPrepare pass

Heejin Ahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 17 01:34:27 PDT 2018


aheejin updated this revision to Diff 151637.
aheejin added a comment.

- Added a method to ensure a terminate pad is a single BB
- Using WasmEHInfo, now this adds `RETHROW` or `RETHROW_TO_CALLER` instruction depending on its unwind destination
- In `hoistCatches`, added handling of a case when `catch` instruction is not in the EH pad BB anymore
- Now uses several utility functions in WebAssemblyUtilities.cpp
- Added helper functions
- Misc. improvements here and there


Repository:
  rL LLVM

https://reviews.llvm.org/D46803

Files:
  lib/Target/WebAssembly/WebAssemblyExceptionPrepare.cpp
  test/CodeGen/WebAssembly/exception.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46803.151637.patch
Type: text/x-patch
Size: 18958 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180617/e9f38d69/attachment.bin>


More information about the llvm-commits mailing list