[all-commits] [llvm/llvm-project] 718729: [libc] Add memmem implementation
Caslyn Tonelli via All-commits
all-commits at lists.llvm.org
Tue Apr 11 14:11:49 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 718729e9971d4ad12d8c7cb088c661202564cf34
https://github.com/llvm/llvm-project/commit/718729e9971d4ad12d8c7cb088c661202564cf34
Author: Caslyn Tonelli <caslyn at google.com>
Date: 2023-04-11 (Tue, 11 Apr 2023)
Changed paths:
M libc/config/baremetal/arm/entrypoints.txt
M libc/config/darwin/arm/entrypoints.txt
M libc/config/darwin/x86_64/entrypoints.txt
M libc/config/gpu/entrypoints.txt
M libc/config/linux/aarch64/entrypoints.txt
M libc/config/linux/arm/entrypoints.txt
M libc/config/linux/riscv64/entrypoints.txt
M libc/config/linux/x86_64/entrypoints.txt
M libc/config/windows/entrypoints.txt
M libc/spec/gnu_ext.td
M libc/src/string/CMakeLists.txt
A libc/src/string/memmem.cpp
A libc/src/string/memmem.h
M libc/src/string/memory_utils/CMakeLists.txt
A libc/src/string/memory_utils/memmem_implementations.h
M libc/src/string/memory_utils/strstr_implementations.h
M libc/test/src/string/CMakeLists.txt
A libc/test/src/string/memmem_test.cpp
M utils/bazel/llvm-project-overlay/libc/BUILD.bazel
Log Message:
-----------
[libc] Add memmem implementation
Introduce the `memmem` libc string function.
`memmem_implementation` performs shared logic for `strstr`,
`strcasestr`, and `memmem`; essentially reconfiguring what was the
`strstr_implementation` to support length parameters.
Differential Revision: https://reviews.llvm.org/D147822
More information about the All-commits
mailing list