[llvm] r358310 - [WebAssembly] Add mutable-globals to bleeding-edge CPU
Thomas Lively via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 12 13:39:53 PDT 2019
Author: tlively
Date: Fri Apr 12 13:39:53 2019
New Revision: 358310
URL: http://llvm.org/viewvc/llvm-project?rev=358310&view=rev
Log:
[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
Modified:
llvm/trunk/lib/Target/WebAssembly/WebAssembly.td
llvm/trunk/test/CodeGen/WebAssembly/target-features.ll
Modified: llvm/trunk/lib/Target/WebAssembly/WebAssembly.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssembly.td?rev=358310&r1=358309&r2=358310&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssembly.td (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssembly.td Fri Apr 12 13:39:53 2019
@@ -86,7 +86,8 @@ def : ProcessorModel<"generic", NoSchedM
// Latest and greatest experimental version of WebAssembly. Bugs included!
def : ProcessorModel<"bleeding-edge", NoSchedModel,
[FeatureSIMD128, FeatureAtomics,
- FeatureNontrappingFPToInt, FeatureSignExt]>;
+ FeatureNontrappingFPToInt, FeatureSignExt,
+ FeatureMutableGlobals]>;
//===----------------------------------------------------------------------===//
// Target Declaration
Modified: llvm/trunk/test/CodeGen/WebAssembly/target-features.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/WebAssembly/target-features.ll?rev=358310&r1=358309&r2=358310&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/WebAssembly/target-features.ll (original)
+++ llvm/trunk/test/CodeGen/WebAssembly/target-features.ll Fri Apr 12 13:39:53 2019
@@ -75,11 +75,14 @@ attributes #1 = { "target-features"="+no
; 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
More information about the llvm-commits
mailing list