summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2019-01-10 02:55:52 +0000
committerThomas Lively <tlively@google.com>2019-01-10 02:55:52 +0000
commiteb6f9abd41cbbef407f0b28f03c7ec40e7e8b23d (patch)
tree33f16dbbebbf502da1f0647a77eda4c11b261368 /llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h
parent4d9ecaa8d789ce42c09cb10d422f4ca249163870 (diff)
downloadbcm5719-llvm-eb6f9abd41cbbef407f0b28f03c7ec40e7e8b23d.tar.gz
bcm5719-llvm-eb6f9abd41cbbef407f0b28f03c7ec40e7e8b23d.zip
[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
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h2
1 files changed, 2 insertions, 0 deletions
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; }
OpenPOWER on IntegriCloud