diff options
Diffstat (limited to 'lib/Target/WebAssembly/WebAssembly.td')
| -rw-r--r-- | lib/Target/WebAssembly/WebAssembly.td | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/Target/WebAssembly/WebAssembly.td b/lib/Target/WebAssembly/WebAssembly.td index f647349d759b..99cf1f119a20 100644 --- a/lib/Target/WebAssembly/WebAssembly.td +++ b/lib/Target/WebAssembly/WebAssembly.td @@ -25,6 +25,12 @@ include "llvm/Target/Target.td" def FeatureSIMD128 : SubtargetFeature<"simd128", "HasSIMD128", "true", "Enable 128-bit SIMD">; +def FeatureAtomics : SubtargetFeature<"atomics", "HasAtomics", "true", + "Enable Atomics">; +def FeatureNontrappingFPToInt : + SubtargetFeature<"nontrapping-fptoint", + "HasNontrappingFPToInt", "true", + "Enable non-trapping float-to-int conversion operators">; //===----------------------------------------------------------------------===// // Architectures. @@ -55,7 +61,8 @@ def : ProcessorModel<"mvp", NoSchedModel, []>; def : ProcessorModel<"generic", NoSchedModel, []>; // Latest and greatest experimental version of WebAssembly. Bugs included! -def : ProcessorModel<"bleeding-edge", NoSchedModel, [FeatureSIMD128]>; +def : ProcessorModel<"bleeding-edge", NoSchedModel, + [FeatureSIMD128, FeatureAtomics]>; //===----------------------------------------------------------------------===// // Target Declaration |
