From 88058d4e1e05eb873c1df358e94d4e7608007ab6 Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Thu, 31 Jan 2019 21:02:19 +0000 Subject: [WebAssembly] Add bulk memory target feature Summary: Also clean up some preexisting target feature code. Reviewers: aheejin Subscribers: dschuff, sbc100, jgravelle-google, hiraditya, sunfish, jfb Differential Revision: https://reviews.llvm.org/D57495 llvm-svn: 352793 --- llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h') diff --git a/llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h b/llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h index e6ee2f54c5e..b6f3e6b4a10 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h +++ b/llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h @@ -38,6 +38,7 @@ class WebAssemblySubtarget final : public WebAssemblyGenSubtargetInfo { bool HasNontrappingFPToInt = false; bool HasSignExt = false; bool HasExceptionHandling = false; + bool HasBulkMemory = false; /// String name of used CPU. std::string CPUString; @@ -89,6 +90,7 @@ public: bool hasNontrappingFPToInt() const { return HasNontrappingFPToInt; } bool hasSignExt() const { return HasSignExt; } bool hasExceptionHandling() const { return HasExceptionHandling; } + bool hasBulkMemory() const { return HasBulkMemory; } /// Parses features string setting specified subtarget options. Definition of /// function is auto generated by tblgen. -- cgit v1.2.3