diff options
author | Mohamed Emad <73320969+hulxv@users.noreply.github.com> | 2025-03-29 01:07:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-28 16:07:57 -0700 |
commit | 48408954670e1f564bd92eed6b54bf155238201c (patch) | |
tree | e6485780fdaa89e4660d343480332a3a8caa5d9f /llvm/lib/CodeGen/CodeGen.cpp | |
parent | 5bdce305793f161cfa1bf69a65954089c99ccf0b (diff) | |
download | llvm-48408954670e1f564bd92eed6b54bf155238201c.zip llvm-48408954670e1f564bd92eed6b54bf155238201c.tar.gz llvm-48408954670e1f564bd92eed6b54bf155238201c.tar.bz2 |
[libc] implement `memalignment` (#132493)
This patch adds the `memalignment` function to LLVM-libc, following its
description in [WG14 N3220,
ยง7.24.2.1](https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3220.pdf#page=387).
- [x] Add the implementation of `memalignment` in
[`/src/stdlib`](https://github.com/llvm/llvm-project/tree/main/libc/src/stdlib)
- [x] Add tests for `memalignment` in
[`/test/src/stdlib`](https://github.com/llvm/llvm-project/tree/main/libc/test/src/stdlib)
- [x] Add `memalignment` to
[`entrypoints.txt`](https://github.com/llvm/llvm-project/blob/main/libc/config/linux/x86_64/entrypoints.txt)
for at least x86_64 and whatever you're building on
- [x] Add `memalignment` to
[`include/stdlib.yaml`](https://github.com/llvm/llvm-project/blob/main/libc/include/stdlib.yaml)
Closes #132300
---------
Co-authored-by: Joseph Huber <huberjn@outlook.com>
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions