Skip to content
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

[WebAssembly] Define call-indirect-overlong and bulk-memory-opt features #117087

Merged
merged 15 commits into from
Dec 3, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update clang/lib/Basic/Targets/WebAssembly.cpp
Co-authored-by: Heejin Ahn <aheejin@gmail.com>
  • Loading branch information
sunfishcode and aheejin authored Nov 22, 2024
commit 2423264970431230d5057de41f4bc2285613fd80
10 changes: 5 additions & 5 deletions clang/lib/Basic/Targets/WebAssembly.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,17 +333,17 @@ bool WebAssemblyTargetInfo::handleTargetFeatures(
return false;
}

// bulk-memory-opt is a subset of bulk-memory.
if (HasBulkMemory) {
HasBulkMemoryOpt = true;
}

// The reference-types feature included the change to `call_indirect`
// encodings to support overlong immediates.
if (HasReferenceTypes) {
HasCallIndirectOverlong = true;
}

// bulk-memory-opt is a subset of bulk-memory.
if (HasBulkMemory) {
HasBulkMemoryOpt = true;
}

return true;
}

Expand Down
Loading