HomePhabricator

[WebAssembly] Support WasmEHFuncInfo serialization

Authored by aheejin on Feb 20 2021, 6:23 PM.

Description

[WebAssembly] Support WasmEHFuncInfo serialization

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.

Reviewed By: dschuff

Differential Revision: https://reviews.llvm.org/D97174

Details

Committed
aheejinFeb 22 2021, 1:13 PM
Reviewer
dschuff
Differential Revision
D97174: [WebAssembly] Support WasmEHFuncInfo serialization
Parents
rGe2224dd75380: Fix typo introduced in https://reviews.llvm.org/D97006
Branches
Unknown
Tags
Unknown