| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[libc] Update the memory helper functions for simd types (#160174) Summary: This unifies the interface to just be a bunch of load and store functions that optionally accept a mask / indices for gathers and scatters with masks. I had to rename this from load and store because it conflicts with the other version in op_generic. I might just work around that with a trait instead. | 10 个月前 | |
[libc][math] Make BFloat16 comparison tests constexpr (#151211) Signed-off-by: Krishna Pandey <kpandey81930@gmail.com> | 1 年前 | |
| 11 个月前 | ||
[libc][NFC] Add stdint.h proxy header to fix dependency issue with <stdint.h> includes. (#150303) https://github.com/llvm/llvm-project/issues/149993 | 1 年前 | |
[libc] add getrandom vDSO symbol (#151630) | 11 个月前 | |
[libc] Rework the RPC interface to accept runtime wave sizes (#80914) Summary: The RPC interface needs to handle an entire warp or wavefront at once. This is currently done by using a compile time constant indicating the size of the buffer, which right now defaults to some value on the client (GPU) side. However, there are currently attempts to move the libc library to a single IR build. This is problematic as the size of the wave fronts changes between ISAs on AMDGPU. The builitin __builtin_amdgcn_wavefrontsize() will return the appropriate value, but it is only known at runtime now. In order to support this, this patch restructures the packet. Now instead of having an array of arrays, we simply have a large array of buffers and slice it according to the runtime value if we don't know it ahead of time. This also somewhat has the advantage of making the buffer contiguous within a page now that the header has been moved out of it. | 2 年前 | |
[libc] Fix implicit conversion warnings in tests. (#131362) | 1 年前 | |
| 1 年前 | ||
[libc] Fix compilation warnings on 32-bit archs (#97745) timespec's tv_nsec is a long int, which has different sizes in 32-bit and 64-bit platforms, so this patch adds one and fixes another static_cast throw warnings in 32-bit archs | 2 年前 | |
[libc] Template StringConverter pop function to avoid duplicate code (#152204) Addressed TODO to template the StringConverter pop functions to have a single implementation (combine popUTF8 and popUTF32 into a single templated pop function) | 11 个月前 | |
[libc] Templatize strtointeger implementation. (#165884) * Removes the copy-pasta implementation of wcstointeger, and migrate the wcsto* family of functions to use a template version of strtointeger. * Fixes the out-of-bound read in the original implementation(s) when the entire input string consists of whitespaces (then the sign check can access OOB memory) The code is currently slightly peppered with "if constexpr" statements to distinguish between char and wchar_t. We can probably simplify it in subsequent changes by: * using overrides, so that internal::isalnum() is overriden for both char and wchar_t (since C++ luckily allows us to reuse names). * this wouldn't help for direct comparison with literals - for this as a somewhat ugly workaround like is_char_literal(c, '0', L'0') | 9 个月前 | |
[libc] Fix implicit conversion warnings in tests. (#131362) | 1 年前 | |
[libc] Add -Wno-sign-conversion & re-attempt -Wconversion (#129811) Relates to https://github.com/llvm/llvm-project/issues/119281#issuecomment-2699470459 | 1 年前 | |
[libc] Fix malloc riscv32 test failures from #117815 | 1 年前 | |
[libc] Add -Wno-sign-conversion & re-attempt -Wconversion (#129811) Relates to https://github.com/llvm/llvm-project/issues/119281#issuecomment-2699470459 | 1 年前 | |
[libc] Mass replace enclosing namespace (#67032) This is step 4 of https://discourse.llvm.org/t/rfc-customizable-namespace-to-allow-testing-the-libc-when-the-system-libc-is-also-llvms-libc/73079 | 2 年前 | |
| 1 年前 | ||
[libc] Add -Wno-sign-conversion & re-attempt -Wconversion (#129811) Relates to https://github.com/llvm/llvm-project/issues/119281#issuecomment-2699470459 | 1 年前 | |
[libc] Add -Wextra for libc tests (#153321) RE apply https://github.com/llvm/llvm-project/pull/133643/commits#top | 10 个月前 | |
[libc][NFC] Remove template arguments from Block (#117386) | 1 年前 | |
[libc] Outer size, not inner size | 1 年前 | |
[libc][NFC] Remove template arguments from Block (#117386) | 1 年前 | |
[libc] Add -Wno-sign-conversion & re-attempt -Wconversion (#129811) Relates to https://github.com/llvm/llvm-project/issues/119281#issuecomment-2699470459 | 1 年前 | |
[libc][NFC] Rename UInt.h to big_int.h and UInt128.h to uint128.h for consistency (#87808) | 2 年前 | |
[libc][NFC] Correct test header inclusion, license (#114604) Some tests were including LibcTest.h directly. Instead you should include Test.h which does proper indirection for other test frameworks we support (zxtest, gtest). Also added some license headers to tests that were missing them. | 1 年前 | |
[libc] Add -Wno-sign-conversion & re-attempt -Wconversion (#129811) Relates to https://github.com/llvm/llvm-project/issues/119281#issuecomment-2699470459 | 1 年前 | |
[libc] Add -Wno-sign-conversion & re-attempt -Wconversion (#129811) Relates to https://github.com/llvm/llvm-project/issues/119281#issuecomment-2699470459 | 1 年前 | |
| 2 年前 | ||
[libc] Reduce direct use of errno in src/stdlib and src/__support tests. (#143767) * Get rid of libc_errno assignments in str_to_* __support tests, since those API have been migrated to return error in a struct instead. * Migrate tests for atof and to strto* functions from <stdlib.h> and for strdup from <string.h> to use ErrnoCheckingTest harness. | 1 年前 | |
[libc] add atof, strtof and strtod Add the string to floating point conversion functions. Long doubles aren't supported yet, but floats and doubles are. The primary algorithm used is the Eisel-Lemire ParseNumberF64 algorithm, with the Simple Decimal Conversion algorithm as backup. Links for more information on the algorithms: Number Parsing at a Gigabyte per Second, Software: Practice and Experience 51 (8), 2021 (https://arxiv.org/abs/2101.11408) https://nigeltao.github.io/blog/2020/eisel-lemire.html https://nigeltao.github.io/blog/2020/parse-number-f64-simple.html Differential Revision: https://reviews.llvm.org/D109261 | 4 年前 | |
[libc][NFC] Add stdint.h proxy header to fix dependency issue with <stdint.h> includes. (#150303) https://github.com/llvm/llvm-project/issues/149993 | 1 年前 | |
[libc] Reduce direct use of errno in src/stdlib and src/__support tests. (#143767) * Get rid of libc_errno assignments in str_to_* __support tests, since those API have been migrated to return error in a struct instead. * Migrate tests for atof and to strto* functions from <stdlib.h> and for strdup from <string.h> to use ErrnoCheckingTest harness. | 1 年前 | |
[libc] Clean up errno header usage in some more tests. (#157974) Either remove spurious libc_errno.h which are no longer needed, or migrate some tests to ErrnoCheckingTest to remove manual errno manipulation. | 10 个月前 | |
[libc] Templatize strtointeger implementation. (#165884) * Removes the copy-pasta implementation of wcstointeger, and migrate the wcsto* family of functions to use a template version of strtointeger. * Fixes the out-of-bound read in the original implementation(s) when the entire input string consists of whitespaces (then the sign check can access OOB memory) The code is currently slightly peppered with "if constexpr" statements to distinguish between char and wchar_t. We can probably simplify it in subsequent changes by: * using overrides, so that internal::isalnum() is overriden for both char and wchar_t (since C++ luckily allows us to reuse names). * this wouldn't help for direct comparison with literals - for this as a somewhat ugly workaround like is_char_literal(c, '0', L'0') | 9 个月前 | |
[libc][i386] FPBit support for 96b long double (#115084) long double is haunted on most architectures, but it is especially so on i386-linux-gnu. While have 80b of significant data, on i386-linux-gnu this type has 96b of storage. Fixes for supporting printf family of conversions for long double on i386-linux-gnu. This allows the libc-stdlib-tests and libc_stdio_unittests ninja target tests to pass on i386-linux-gnu. Fixes: #110894 Link: #93709 Co-authored-by: Michael Jones <michaelrj@google.com> | 1 年前 | |
[libc] Templatize strtointeger implementation. (#165884) * Removes the copy-pasta implementation of wcstointeger, and migrate the wcsto* family of functions to use a template version of strtointeger. * Fixes the out-of-bound read in the original implementation(s) when the entire input string consists of whitespaces (then the sign check can access OOB memory) The code is currently slightly peppered with "if constexpr" statements to distinguish between char and wchar_t. We can probably simplify it in subsequent changes by: * using overrides, so that internal::isalnum() is overriden for both char and wchar_t (since C++ luckily allows us to reuse names). * this wouldn't help for direct comparison with literals - for this as a somewhat ugly workaround like is_char_literal(c, '0', L'0') | 9 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 10 个月前 | ||
| 1 年前 | ||
| 11 个月前 | ||
| 1 年前 | ||
| 11 个月前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 11 个月前 | ||
| 9 个月前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 10 个月前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 4 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 10 个月前 | ||
| 9 个月前 | ||
| 1 年前 | ||
| 9 个月前 |