This is a NFC, it aims at simplifying both the code and build files.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libc/src/string/CMakeLists.txt | ||
---|---|---|
78 | While we're here maybe we could call this LIBC_STRING_TARGET_DIR? But as a second thought maybe we just call this LIBC_STRING_TARGET_ARCH. There are already a few places where we don't care about x86/x86_64. For example in memory_utils/CMakeLists.txt we can use the data file as cacheline_size_${LIBC_STRING_TARGET_ARCH}.h.inc and not need two identical cacheline_size files. |
libc/src/string/CMakeLists.txt | ||
---|---|---|
78 | +1. |
Comment Actions
Would it help the reader to say: The function is written in pure C++ *and not in assembler/intrinsics* for several reasons:
While we're here maybe we could call this LIBC_STRING_TARGET_DIR?
But as a second thought maybe we just call this LIBC_STRING_TARGET_ARCH. There are already a few places where we don't care about x86/x86_64. For example in memory_utils/CMakeLists.txt we can use the data file as cacheline_size_${LIBC_STRING_TARGET_ARCH}.h.inc and not need two identical cacheline_size files.