This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Misc. cosmetic changes in EH (NFC)
ClosedPublic

Authored by aheejin on Aug 3 2021, 3:59 PM.

Details

Summary
  • Rename wasm.catch intrinsic to wasm.catch.exn, because we are planning to add a separate wasm.catch.longjmp intrinsic which returns two values.
  • Rename several variables
  • Remove an unnecessary parameter from canLongjmp and isEmAsmCall from LowerEmscriptenEHSjLj pass
  • Add -verify-machineinstrs in a test for a safety measure
  • Add more comments + fix some errors in comments
  • Replace std::vector with SmallVector for cases likely with small number of elements
  • Renamed EnableEH/EnableSjLj to EnableEmEH/EnableEmSjLj: We are soon going to add EnableWasmSjLj, so this makes the distincion clearer

Diff Detail

Event Timeline

aheejin created this revision.Aug 3 2021, 3:59 PM
aheejin requested review of this revision.Aug 3 2021, 3:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 3 2021, 3:59 PM
tlively accepted this revision.Aug 3 2021, 8:13 PM
tlively added inline comments.
llvm/include/llvm/IR/IntrinsicsWebAssembly.td
68
llvm/lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
229

Do the parentheses describe what part of the system is responsible for supplying the function/variable?

839
This revision is now accepted and ready to land.Aug 3 2021, 8:13 PM
aheejin edited the summary of this revision. (Show Details)Aug 3 2021, 9:00 PM
aheejin edited the summary of this revision. (Show Details)
aheejin marked 2 inline comments as done.
aheejin added inline comments.
llvm/lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
229

Yes. 'Emscripten' means Emscripten library. Wanted to write "library" too but that exceeds 80 cols and didn't want to make these inline comments to spill over.

aheejin updated this revision to Diff 363960.Aug 3 2021, 9:01 PM

Address comments

This revision was landed with ongoing or failed builds.Aug 3 2021, 9:04 PM
This revision was automatically updated to reflect the committed changes.