summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.h
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2019-03-26 17:35:35 +0000
committerHeejin Ahn <aheejin@gmail.com>2019-03-26 17:35:35 +0000
commit52221d56bcf3d087bb88d44b56c682fd27f59a13 (patch)
treeda2b6ddee3ba76afab43eab9d9721b710f774c1f /llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.h
parent222718fdd20545e90f46e93d76b58eeb3dd63773 (diff)
downloadbcm5719-llvm-52221d56bcf3d087bb88d44b56c682fd27f59a13.tar.gz
bcm5719-llvm-52221d56bcf3d087bb88d44b56c682fd27f59a13.zip
[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
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.h')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.h b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.h
index 0630797fe81..0f1901020b5 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.h
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.h
@@ -51,6 +51,14 @@ public:
TargetTransformInfo getTargetTransformInfo(const Function &F) override;
bool usesPhysRegsForPEI() const override { return false; }
+
+ yaml::MachineFunctionInfo *createDefaultFuncInfoYAML() const override;
+ yaml::MachineFunctionInfo *
+ convertFuncInfoToYAML(const MachineFunction &MF) const override;
+ bool parseMachineFunctionInfo(const yaml::MachineFunctionInfo &,
+ PerFunctionMIParsingState &PFS,
+ SMDiagnostic &Error,
+ SMRange &SourceRange) const override;
};
} // end namespace llvm
OpenPOWER on IntegriCloud