[webkit-changes] [WebKit/WebKit] d99e74: [WTF] Introduce SIMDHelpers

Yusuke Suzuki noreply at github.com
Thu May 9 10:22:41 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d99e74de2a175bf67cdc2e5aaf0617540fa2a448
      https://github.com/WebKit/WebKit/commit/d99e74de2a175bf67cdc2e5aaf0617540fa2a448
  Author: Yusuke Suzuki <ysuzuki at apple.com>
  Date:   2024-05-09 (Thu, 09 May 2024)

  Changed paths:
    M Source/JavaScriptCore/runtime/JSONObject.cpp
    M Source/JavaScriptCore/runtime/LiteralParser.cpp
    M Source/WTF/WTF.xcodeproj/project.pbxproj
    M Source/WTF/wtf/CMakeLists.txt
    A Source/WTF/wtf/SIMDHelpers.h
    M Source/WTF/wtf/text/StringCommon.h

  Log Message:
  -----------
  [WTF] Introduce SIMDHelpers
https://bugs.webkit.org/show_bug.cgi?id=273927
rdar://127795191

Reviewed by Keith Miller.

This patch adds wtf/SIMDHelpers.h, which offers various SIMD abstraction on the top of simde.
The main motivation is writing SIMD code for LChar / UChar in the same code.
Also, we add some x64 specific optimizations for some of particular primitive operations.

* Source/JavaScriptCore/runtime/JSONObject.cpp:
(JSC::FastStringifier<CharType>::append):
* Source/JavaScriptCore/runtime/LiteralParser.cpp:
(JSC::LiteralParser<CharType>::Lexer::lexString):
* Source/WTF/WTF.xcodeproj/project.pbxproj:
* Source/WTF/wtf/CMakeLists.txt:
* Source/WTF/wtf/SIMDHelpers.h: Added.
(WTF::SIMD::splat):
(WTF::SIMD::load):
(WTF::SIMD::store):
(WTF::SIMD::merge):
(WTF::SIMD::isNonZero):
(WTF::SIMD::findFirstNonZeroIndex):
(WTF::SIMD::equal):
(WTF::SIMD::lessThan):
* Source/WTF/wtf/text/StringCommon.h:

Canonical link: https://commits.webkit.org/278572@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list