This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Support WasmEHFuncInfo serialization
ClosedPublic

Authored by aheejin on Feb 21 2021, 6:36 PM.

Details

Summary

This adds support for serialization of WasmEHFuncInfo, in the form of
<Source BB Number, Unwind destination BB number>. To make YAML mapping
work, we needed to make a copy of the existing SrcToUnwindDest map
within yaml::WebAssemblyMachineFunctionInfo.

It was hard to add EH MIR tests for CFGStackify because WasmEHFuncInfo
could not be read from test MIR files. This adds the serialization
support for that to make EH MIR tests easier.

Diff Detail

Event Timeline

aheejin created this revision.Feb 21 2021, 6:36 PM
aheejin requested review of this revision.Feb 21 2021, 6:36 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 21 2021, 6:36 PM
aheejin updated this revision to Diff 325362.Feb 21 2021, 7:00 PM

Fix comments

aheejin updated this revision to Diff 325364.Feb 21 2021, 7:29 PM

Cosmetic changes in tests

dschuff accepted this revision.Feb 22 2021, 10:07 AM
dschuff added inline comments.
llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h
34

could this be const also?

This revision is now accepted and ready to land.Feb 22 2021, 10:07 AM
aheejin updated this revision to Diff 325544.Feb 22 2021, 1:08 PM
aheejin marked an inline comment as done.

Add consts

This revision was landed with ongoing or failed builds.Feb 22 2021, 1:14 PM
This revision was automatically updated to reflect the committed changes.