Open PiJoules opened 1 month ago
@llvm/issue-subscribers-libc
Author: None (PiJoules)
Hi!
This issue may be a good introductory issue for people new to working on LLVM. If you would like to work on this issue, your first steps are:
test/
create fine-grained testing targets, so you can e.g. use make check-clang-ast
to only run Clang's AST tests.git clang-format HEAD~1
to format your changes.If you have any further questions about this issue, don't hesitate to ask via a comment in the thread below.
@llvm/issue-subscribers-good-first-issue
Author: None (PiJoules)
I can try this, assign me pls
also, are there any previously merged PR's that I can refer on how to implement libc functions? @PiJoules
also, are there any previously merged PR's that I can refer on how to implement libc functions? @PiJoules
Maybe something like https://github.com/llvm/llvm-project/pull/84391 (modulo the math part) to add new functions and tests to the stdfix.h
header.
Initially I was thinking this could be a __builtin_
function that would be exposed through llvm-libc but I think from https://github.com/llvm/llvm-project/issues/113357#issuecomment-2443183341, it would also work to just have this function do a cpp::bit_cast
and avoid having to do clang-side changes.
Thanks for taking this on also!
@braw-lee if you're still working on this, you might be able to leverage some of the stuff added in https://github.com/llvm/llvm-project/pull/114912
oh thanks, that will be helpful
Some fixed point functions from ISO 18037 are implemented in llvm-libc, but not all of them are implemented. The various bits
fx
functions should also be added. Copying from the extension:These can first be implemented as
__builtin_*
functions in clang then llvm-libc can provide the wrappers for each of the builtin functions.