diff options
author | Heejin Ahn <aheejin@gmail.com> | 2018-08-21 19:44:11 +0000 |
---|---|---|
committer | Heejin Ahn <aheejin@gmail.com> | 2018-08-21 19:44:11 +0000 |
commit | ed5e06b0a7174b8da1f9a21e9a182a944a116ceb (patch) | |
tree | d0a19c755da1a3abaea46c09687e262c1c923ddf /llvm/lib/Target/WebAssembly/Disassembler/WebAssemblyDisassembler.cpp | |
parent | 4a76d3e56840b98b66405d6dda53734c0229f1fd (diff) | |
download | llvm-ed5e06b0a7174b8da1f9a21e9a182a944a116ceb.zip llvm-ed5e06b0a7174b8da1f9a21e9a182a944a116ceb.tar.gz llvm-ed5e06b0a7174b8da1f9a21e9a182a944a116ceb.tar.bz2 |
[WebAssembly] Add isEHScopeReturn instruction property
Summary:
So far, `isReturn` property is used to mean both a return instruction
from a functon and the end of an EH scope, a scope that starts with a EH
scope entry BB and ends with a catchret or a cleanupret instruction.
Because WinEH uses funclets, all EH-scope-ending instructions are also
real return instruction from a function. But for wasm, they only serve
as the end marker of an EH scope but not a return instruction that
exits a function. This mismatch caused incorrect prolog and epilog
generation in wasm EH scopes. This patch fixes this.
This patch is in the same vein with rL333045, which splits
`MachineBasicBlock::isEHFuncletEntry` into `isEHFuncletEntry` and
`isEHScopeEntry`.
Reviewers: dschuff
Subscribers: sbc100, jgravelle-google, sunfish, llvm-commits
Differential Revision: https://reviews.llvm.org/D50653
llvm-svn: 340325
Diffstat (limited to 'llvm/lib/Target/WebAssembly/Disassembler/WebAssemblyDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions