Skip to content

Commit

Permalink
[WebAssembly] Add mutable-globals to bleeding-edge CPU
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tlively committed Apr 12, 2019
1 parent e003b9c commit 1be42d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/Target/WebAssembly/WebAssembly.td
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion test/CodeGen/WebAssembly/target-features.ll
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1be42d1

Please sign in to comment.