- Adds LLVM_LIBC_IS_DEFINED macro to libc/src/__support/common.h
- Adds a few knobs to memcpy to help with experimentations:
- LLVM_LIBC_MEMCPY_X86_USE_ONLY_REPMOVSB replaces the implementation with a single call to rep;movsb
- LLVM_LIBC_MEMCPY_X86_USE_REPMOVSB_FROM_SIZE customizes where the usage of rep;movsb
Details
Details
- Reviewers
sivachandra - Commits
- rGa10300a2b27c: [libc] Allow customization of memcpy via flags.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Few inline nits.
libc/src/__support/common.h | ||
---|---|---|
42 | In other places, we have named such namespaces as internal. | |
45 | Just pointing out, we cannot use the C++ standard library. So, this comment should either be removed or updated suitably. | |
libc/src/string/x86/memcpy.cpp | ||
64 | Can we use the early return pattern for this as well without the else? if (kUseOnlyRepMovSb) return CopyRepMovsb(...); |
In other places, we have named such namespaces as internal.