[PATCH] D94043: [WebAssembly] Update InstPrinter support for EH

Heejin Ahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 4 15:47:41 PST 2021


aheejin created this revision.
aheejin added reviewers: dschuff, tlively, aardappel.
Herald added subscribers: wingo, ecnelises, sunfish, hiraditya, jgravelle-google, sbc100.
aheejin requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

- Updates InstPrinter to handle `catch_all`.
- Makes `rethrow` condition an early exit from the function to make the rest simpler.
- Unify label and catch counters. They don't need to be counted separately and this will help `delegate` instruction later.
- Removes `LastSeenEHInst` field. This was first introduced to handle when there are more than one `catch` blocks per `try`, but this was not implemented correctly and not being used at the moment anyway.
- Reenables all tests in cfg-stackify-eh.ll that don't deal with unwind destination mismatches, which will be handled in a later CL.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94043

Files:
  llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyInstPrinter.cpp
  llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyInstPrinter.h
  llvm/test/CodeGen/WebAssembly/cfg-stackify-eh.ll
  llvm/test/MC/WebAssembly/annotations.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94043.314467.patch
Type: text/x-patch
Size: 13014 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210104/b73fa307/attachment.bin>


More information about the llvm-commits mailing list