]> granicus.if.org Git - llvm/commitdiff
[WebAssembly] Add mutable-globals to bleeding-edge CPU
authorThomas Lively <tlively@google.com>
Fri, 12 Apr 2019 20:39:53 +0000 (20:39 +0000)
committerThomas Lively <tlively@google.com>
Fri, 12 Apr 2019 20:39:53 +0000 (20:39 +0000)
Summary: This brings the backend in line with Clang.

Reviewers: aheejin, dschuff

Subscribers: sbc100, jgravelle-google, hiraditya, sunfish, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D60594

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358310 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/WebAssembly/WebAssembly.td
test/CodeGen/WebAssembly/target-features.ll

index 9138683d4984540bec5f75d6a7b2f5bb150a2888..813c7e652e4a36eee528266478c94ae28ff1e67d 100644 (file)
@@ -86,7 +86,8 @@ def : ProcessorModel<"generic", NoSchedModel, []>;
 // Latest and greatest experimental version of WebAssembly. Bugs included!
 def : ProcessorModel<"bleeding-edge", NoSchedModel,
                       [FeatureSIMD128, FeatureAtomics,
-                       FeatureNontrappingFPToInt, FeatureSignExt]>;
+                       FeatureNontrappingFPToInt, FeatureSignExt,
+                       FeatureMutableGlobals]>;
 
 //===----------------------------------------------------------------------===//
 // Target Declaration
index 7ce7fcf0b7c0d6e1b672813ccfd9bc6cab81e5fc..6d9c392938221e76036304e1c794f5d60ffb704c 100644 (file)
@@ -75,11 +75,14 @@ attributes #1 = { "target-features"="+nontrapping-fptoint" }
 ; SIMD128-NEXT: .ascii "simd128"
 
 ; +atomics, +nontrapping-fptoint, +sign-ext, +simd128
-; BLEEDING-EDGE-NEXT: .int8   4
+; BLEEDING-EDGE-NEXT: .int8   5
 ; BLEEDING-EDGE-NEXT: .int8   43
 ; BLEEDING-EDGE-NEXT: .int8   7
 ; BLEEDING-EDGE-NEXT: .ascii  "atomics"
 ; BLEEDING-EDGE-NEXT: .int8   43
+; BLEEDING-EDGE-NEXT: .int8   15
+; BLEEDING-EDGE-NEXT: .ascii  "mutable-globals"
+; BLEEDING-EDGE-NEXT: .int8   43
 ; BLEEDING-EDGE-NEXT: .int8   19
 ; BLEEDING-EDGE-NEXT: .ascii  "nontrapping-fptoint"
 ; BLEEDING-EDGE-NEXT: .int8   43