diff options
author | Heejin Ahn <aheejin@gmail.com> | 2020-12-27 03:02:22 -0800 |
---|---|---|
committer | Heejin Ahn <aheejin@gmail.com> | 2021-01-11 17:54:28 -0800 |
commit | 9f8b25769efa409ffc3b85f1c8043d2fcb4f185e (patch) | |
tree | 75e1c3bf622cc910ec6df6704c6a6bd966787996 /llvm/lib/CodeGen/MachineOperand.cpp | |
parent | 70474dfebcd9babf2e3af5fb002b40417fd6cf88 (diff) | |
download | llvm-9f8b25769efa409ffc3b85f1c8043d2fcb4f185e.zip llvm-9f8b25769efa409ffc3b85f1c8043d2fcb4f185e.tar.gz llvm-9f8b25769efa409ffc3b85f1c8043d2fcb4f185e.tar.bz2 |
[WebAssembly] Ensure terminate pads are a single BB
This ensures every single terminate pad is a single BB in the form of:
```
%exn = catch $__cpp_exception
call @__clang_call_terminate(%exn)
unreachable
```
This is a preparation for HandleEHTerminatePads pass, which will be
added in a later CL and will run after CFGStackify. That pass duplicates
terminate pads with a `catch_all` instruction, and duplicating it
becomes simpler if we can ensure every terminate pad is a single BB.
Reviewed By: dschuff, tlively
Differential Revision: https://reviews.llvm.org/D94045
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
0 files changed, 0 insertions, 0 deletions