| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[libc] fix scudo integration build (#116979) | 1 年前 | |
[libc][stdlib] Simplify getenv_test by using strcmp instead of custom helper (#163055) [libc][stdlib] Simplify getenv_test by using inline_strcmp instead of custom helper Replace the custom my_streq helper function with LLVM libc's inline_strcmp utility from src/string/memory_utils/inline_strcmp.h. Changes: - Remove 18-line custom my_streq implementation - Use inline_strcmp with a simple comparator lambda for string comparisons - Replace my_streq(..., nullptr) checks with direct == nullptr comparisons - Maintain identical test coverage while reducing code duplication Benefits: - Uses existing, well-tested LLVM libc infrastructure - Clearer test assertions with standard comparison functions - More concise code (reduced from ~48 to ~33 lines) - Consistent with LLVM libc coding practices The test continues to verify: - Empty string handling - Invalid name handling ('=') - Missing environment variable queries - Correct retrieval of existing variables (FRANCE, GERMANY, PATH) - Partial name matching behavior (FRANC vs FRANCE, FRANCE1 vs FRANCE) | 8 个月前 | |
[libc] Remove separate RPC test handling (#160206) Summary: This was originally kept separate so it didn't pollute the name space, but now I'm thinking it's just easier to bundle it in with the default interface. This means that we'll have a bit of extra code for people using the server.h file to handle libc opcodes, but it's minimal (3 functions) and it simplifies this. I'm doing this because I'm hoping to move the GPU tester binary to liboffload which handles libc opcodes internally except these. This is the easier option compared to adding a hook to register custom handlers there. | 10 个月前 | |
[libc] Remove dummy archive and file from integration test This doesn't seem to be used anymore after recent changes that removed the --sysroot method for the integration tests. Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D146040 | 3 年前 |