Skip to content

Commit 9e27514

Browse files
committed
[WebAssembly] Add mutable-globals to bleeding-edge CPU
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 llvm-svn: 358310
1 parent 6636978 commit 9e27514

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

llvm/lib/Target/WebAssembly/WebAssembly.td

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ def : ProcessorModel<"generic", NoSchedModel, []>;
8686
// Latest and greatest experimental version of WebAssembly. Bugs included!
8787
def : ProcessorModel<"bleeding-edge", NoSchedModel,
8888
[FeatureSIMD128, FeatureAtomics,
89-
FeatureNontrappingFPToInt, FeatureSignExt]>;
89+
FeatureNontrappingFPToInt, FeatureSignExt,
90+
FeatureMutableGlobals]>;
9091

9192
//===----------------------------------------------------------------------===//
9293
// Target Declaration

llvm/test/CodeGen/WebAssembly/target-features.ll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,14 @@ attributes #1 = { "target-features"="+nontrapping-fptoint" }
7575
; SIMD128-NEXT: .ascii "simd128"
7676

7777
; +atomics, +nontrapping-fptoint, +sign-ext, +simd128
78-
; BLEEDING-EDGE-NEXT: .int8 4
78+
; BLEEDING-EDGE-NEXT: .int8 5
7979
; BLEEDING-EDGE-NEXT: .int8 43
8080
; BLEEDING-EDGE-NEXT: .int8 7
8181
; BLEEDING-EDGE-NEXT: .ascii "atomics"
8282
; BLEEDING-EDGE-NEXT: .int8 43
83+
; BLEEDING-EDGE-NEXT: .int8 15
84+
; BLEEDING-EDGE-NEXT: .ascii "mutable-globals"
85+
; BLEEDING-EDGE-NEXT: .int8 43
8386
; BLEEDING-EDGE-NEXT: .int8 19
8487
; BLEEDING-EDGE-NEXT: .ascii "nontrapping-fptoint"
8588
; BLEEDING-EDGE-NEXT: .int8 43

0 commit comments

Comments
 (0)