[WebAssembly] Support WebAssemblyFunctionInfo serialization
authorHeejin Ahn <aheejin@gmail.com>
Tue, 26 Mar 2019 17:35:35 +0000 (17:35 +0000)
committerHeejin Ahn <aheejin@gmail.com>
Tue, 26 Mar 2019 17:35:35 +0000 (17:35 +0000)
commit52221d56bcf3d087bb88d44b56c682fd27f59a13
treeda2b6ddee3ba76afab43eab9d9721b710f774c1f
parent222718fdd20545e90f46e93d76b58eeb3dd63773
[WebAssembly] Support WebAssemblyFunctionInfo serialization

Summary:
The framework for supporting target-specific MachineFunctionInfo was
added in r356215. This adds serialization support for
WebAssemblyFunctionInfo on top of that. This patch only adds the
framework and does not actually serialize anything at this point; we
have to add YAML mapping later for the fields in WebAssemblyFunctionInfo
we want to serialize if necessary.

Reviewers: dschuff, arsenm

Subscribers: sunfish, wdng, sbc100, jgravelle-google, llvm-commits

Tags: #llvm

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

llvm-svn: 357009
llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.cpp
llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h
llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.h
llvm/test/CodeGen/WebAssembly/function-info.mir [new file with mode: 0644]