diff options
author | Thomas Lively <tlively@google.com> | 2019-01-09 23:59:37 +0000 |
---|---|---|
committer | Thomas Lively <tlively@google.com> | 2019-01-09 23:59:37 +0000 |
commit | 2eeade18142c3cd076c7c012d2b7357e91b771c6 (patch) | |
tree | aaddff54403d69d66f3168c33e22b5ac02c68c2e /llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h | |
parent | 224d831bed03dbf3934a606d7aaeefede16ab2fc (diff) | |
download | bcm5719-llvm-2eeade18142c3cd076c7c012d2b7357e91b771c6.tar.gz bcm5719-llvm-2eeade18142c3cd076c7c012d2b7357e91b771c6.zip |
[WebAssembly] Add unimplemented-simd128 subtarget feature
Summary:
This replaces the old ad-hoc -wasm-enable-unimplemented-simd
flag. Also makes the new unimplemented-simd128 feature imply the
simd128 feature.
Reviewers: aheejin, dschuff
Subscribers: sbc100, jgravelle-google, sunfish, llvm-commits, alexcrichton
Differential Revision: https://reviews.llvm.org/D56501
llvm-svn: 350778
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h | 2 |
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..270d5b08241 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 HasUnimplementedSIMD128; 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 hasUnimplementedSIMD128() const { return HasUnimplementedSIMD128; } bool hasAtomics() const { return HasAtomics; } bool hasNontrappingFPToInt() const { return HasNontrappingFPToInt; } bool hasSignExt() const { return HasSignExt; } |