Skip to content

Commit c357018

Browse files
committed
[WebAssembly] Update generic and bleeding-edge CPUs
This updates the list of features in 'generic' and 'bleeding-edge' CPUs in the backend to match https://github.com/llvm/llvm-project/blob/4e0a0eae58f7a6998866719f7eb970096a2a52e9/clang/lib/Basic/Targets/WebAssembly.cpp#L150-L175. It is hard to add a backend test for this, given that we don't have a convenient way of testing the list of features included in each cpu like the preprocessor test in Clang: https://github.com/llvm/llvm-project/blob/4e0a0eae58f7a6998866719f7eb970096a2a52e9/clang/test/Preprocessor/wasm-target-features.c#L158-L208 And the current features for 'generic' and 'bleeding-edge' don't have a separate backend test anyway.
1 parent a0e1b4a commit c357018

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

llvm/lib/Target/WebAssembly/WebAssembly.td

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,17 @@ def : ProcessorModel<"mvp", NoSchedModel, []>;
110110
// consideration given to available support in relevant engines and tools, and
111111
// the importance of the features.
112112
def : ProcessorModel<"generic", NoSchedModel,
113-
[FeatureSignExt, FeatureMutableGlobals]>;
113+
[FeatureMultivalue, FeatureMutableGlobals,
114+
FeatureReferenceTypes, FeatureSignExt]>;
114115

115116
// Latest and greatest experimental version of WebAssembly. Bugs included!
116117
def : ProcessorModel<"bleeding-edge", NoSchedModel,
117-
[FeatureSIMD128, FeatureAtomics,
118-
FeatureNontrappingFPToInt, FeatureSignExt,
119-
FeatureMutableGlobals, FeatureBulkMemory,
118+
[FeatureAtomics, FeatureBulkMemory,
119+
FeatureExceptionHandling, FeatureExtendedConst,
120+
FeatureHalfPrecision, FeatureMultiMemory,
121+
FeatureMultivalue, FeatureMutableGlobals,
122+
FeatureNontrappingFPToInt, FeatureRelaxedSIMD,
123+
FeatureReferenceTypes, FeatureSIMD128, FeatureSignExt,
120124
FeatureTailCall]>;
121125

122126
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)