diff options
| author | 2018-04-06 14:26:03 +0000 | |
|---|---|---|
| committer | 2018-04-06 14:26:03 +0000 | |
| commit | bdabc2f19ffb9e20600dad6e8a300842a7bda50e (patch) | |
| tree | c50e7b2e5449b074651bb82a58517a8ebc4a8cf7 /gnu/llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h | |
| parent | Print a 'p' flag for file descriptors that were opened after pledge(2). (diff) | |
| download | wireguard-openbsd-bdabc2f19ffb9e20600dad6e8a300842a7bda50e.tar.xz wireguard-openbsd-bdabc2f19ffb9e20600dad6e8a300842a7bda50e.zip | |
Import LLVM 6.0.1 release including clang, lld and lldb.
"where is the kaboom?" deraadt@
Diffstat (limited to 'gnu/llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h')
| -rw-r--r-- | gnu/llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h b/gnu/llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h index f530a290fa0..a6bf0b6d54f 100644 --- a/gnu/llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h +++ b/gnu/llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h @@ -20,7 +20,7 @@ #include "WebAssemblyISelLowering.h" #include "WebAssemblyInstrInfo.h" #include "WebAssemblySelectionDAGInfo.h" -#include "llvm/Target/TargetSubtargetInfo.h" +#include "llvm/CodeGen/TargetSubtargetInfo.h" #include <string> #define GET_SUBTARGETINFO_HEADER @@ -30,6 +30,8 @@ namespace llvm { class WebAssemblySubtarget final : public WebAssemblyGenSubtargetInfo { bool HasSIMD128; + bool HasAtomics; + bool HasNontrappingFPToInt; /// String name of used CPU. std::string CPUString; @@ -74,6 +76,8 @@ public: // Predicates used by WebAssemblyInstrInfo.td. bool hasAddr64() const { return TargetTriple.isArch64Bit(); } bool hasSIMD128() const { return HasSIMD128; } + bool hasAtomics() const { return HasAtomics; } + bool hasNontrappingFPToInt() const { return HasNontrappingFPToInt; } /// Parses features string setting specified subtarget options. Definition of /// function is auto generated by tblgen. |
