This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Update InstPrinter support for EH
ClosedPublic

Authored by aheejin on Jan 4 2021, 3:47 PM.

Details

Summary
  • 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.

Diff Detail

Event Timeline

aheejin created this revision.Jan 4 2021, 3:47 PM
aheejin requested review of this revision.Jan 4 2021, 3:47 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 4 2021, 3:47 PM
aardappel accepted this revision.Jan 5 2021, 10:05 AM
This revision is now accepted and ready to land.Jan 5 2021, 10:05 AM
tlively accepted this revision.Jan 5 2021, 11:39 AM
dschuff accepted this revision.Jan 6 2021, 5:09 PM
This revision was automatically updated to reflect the committed changes.