From eb6f9abd41cbbef407f0b28f03c7ec40e7e8b23d Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Thu, 10 Jan 2019 02:55:52 +0000 Subject: [WebAssembly] Add simd128-unimplemented subtarget feature This is a second attempt at r350778, which was reverted in r350789. The only change is that the unimplemented-simd128 feature has been renamed simd128-unimplemented, since naming it unimplemented-simd128 somehow made the simd128 feature flag enable the unimplemented-simd128 feature on Windows. llvm-svn: 350791 --- 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 b170dbff3b3..bd2e995d286 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h +++ b/llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h @@ -30,6 +30,7 @@ namespace llvm { class WebAssemblySubtarget final : public WebAssemblyGenSubtargetInfo { bool HasSIMD128; + bool HasSIMD128Unimplemented; bool HasAtomics; bool HasNontrappingFPToInt; bool HasSignExt; @@ -78,6 +79,7 @@ public: // Predicates used by WebAssemblyInstrInfo.td. bool hasAddr64() const { return TargetTriple.isArch64Bit(); } bool hasSIMD128() const { return HasSIMD128; } + bool hasSIMD128Unimplemented() const { return HasSIMD128Unimplemented; } bool hasAtomics() const { return HasAtomics; } bool hasNontrappingFPToInt() const { return HasNontrappingFPToInt; } bool hasSignExt() const { return HasSignExt; } -- cgit v1.2.3