This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Support WebAssemblyFunctionInfo serialization
ClosedPublic

Authored by aheejin on Mar 23 2019, 10:49 AM.

Details

Summary

The framework for supporting target-specific MachineFunctionInfo was
added in rL356215. This adds serialization support for
WebAssemblyFunctionInfo on top of that. This also adds a new field
CFGStackified to WebAssemblyFunctionInfo. We currently only serialize
this CFGStackified field, but the support for other fields can be
added later if necessary.

Diff Detail

Repository
rL LLVM

Event Timeline

aheejin created this revision.Mar 23 2019, 10:49 AM
aheejin edited the summary of this revision. (Show Details)Mar 23 2019, 10:53 AM
arsenm added inline comments.Mar 23 2019, 1:46 PM
lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h
59–61 ↗(On Diff #192000)

I think adding a new field should be a separate patch

aheejin updated this revision to Diff 192028.Mar 24 2019, 6:44 AM
aheejin marked an inline comment as done.

Deleted isCFGStackified field and its serialization

aheejin marked an inline comment as done.Mar 24 2019, 6:51 AM
aheejin added inline comments.
lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h
59–61 ↗(On Diff #192000)

I took it out that part in D59747. The primary reason I included that here was without any field to serialize there was no way to test this CL alone. I added an empty machineFunctionInfo: {} in the test here but it's printed without this anyway.

dschuff accepted this revision.Mar 25 2019, 1:48 PM
This revision is now accepted and ready to land.Mar 25 2019, 1:48 PM
This revision was automatically updated to reflect the committed changes.