diff options
author | Alon Zakai <azakai@google.com> | 2023-02-03 12:32:25 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-03 12:32:25 -0800 |
commit | 90c726a606cf8f99307a41d8f889de4e1221c4f8 (patch) | |
tree | 8dcecebb36a2aa437a8abbebd8e225aeb4a516cb /src/passes | |
parent | 42b859f01df94dfffb01258b2305df8ec4d05304 (diff) | |
download | binaryen-90c726a606cf8f99307a41d8f889de4e1221c4f8.tar.gz binaryen-90c726a606cf8f99307a41d8f889de4e1221c4f8.tar.bz2 binaryen-90c726a606cf8f99307a41d8f889de4e1221c4f8.zip |
[Strings] Add experimental string.hash instruction (#5480)
See WebAssembly/stringref#60
Diffstat (limited to 'src/passes')
-rw-r--r-- | src/passes/Print.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index 8c112d6a5..f7cfb7746 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -2404,6 +2404,9 @@ struct PrintExpressionContents case StringMeasureWTF16View: printMedium(o, "stringview_wtf16.length"); break; + case StringMeasureHash: + printMedium(o, "string.hash"); + break; default: WASM_UNREACHABLE("invalid string.measure*"); } |