-
Notifications
You must be signed in to change notification settings - Fork 15.1k
[WebAssembly] Enable multivalue and reference-types in generic CPU config #80923
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 8 commits
d6fd487
e501363
01ac8bd
7119137
17e81e3
26caed5
de6aa6a
91df749
f4aee60
af79d4e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -147,19 +147,25 @@ void WebAssemblyTargetInfo::setFeatureEnabled(llvm::StringMap<bool> &Features, | |
| bool WebAssemblyTargetInfo::initFeatureMap( | ||
| llvm::StringMap<bool> &Features, DiagnosticsEngine &Diags, StringRef CPU, | ||
| const std::vector<std::string> &FeaturesVec) const { | ||
| if (CPU == "bleeding-edge") { | ||
| Features["nontrapping-fptoint"] = true; | ||
| auto addGenericFeatures = [&]() { | ||
| Features["sign-ext"] = true; | ||
| Features["mutable-globals"] = true; | ||
| Features["reference-types"] = true; | ||
| Features["multivalue"] = true; | ||
| }; | ||
| auto addBleedingEdgeFeatures = [&]() { | ||
| addGenericFeatures(); | ||
| Features["nontrapping-fptoint"] = true; | ||
|
||
| Features["bulk-memory"] = true; | ||
| Features["atomics"] = true; | ||
| Features["mutable-globals"] = true; | ||
| Features["tail-call"] = true; | ||
| Features["reference-types"] = true; | ||
| Features["multimemory"] = true; | ||
| setSIMDLevel(Features, SIMD128, true); | ||
| } else if (CPU == "generic") { | ||
| Features["sign-ext"] = true; | ||
| Features["mutable-globals"] = true; | ||
| }; | ||
| if (CPU == "generic") { | ||
| addGenericFeatures(); | ||
| } else if (CPU == "bleeding-edge") { | ||
| addBleedingEdgeFeatures(); | ||
| } | ||
|
|
||
| return TargetInfo::initFeatureMap(Features, Diags, CPU, FeaturesVec); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.