[libc-commits] [libc] [libc] implement `memalignment` (PR #132493)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Thu Mar 27 19:01:21 PDT 2025


jhuber6 wrote:

> This should probably be an intrinsic so we don't introduce the ptrtoint, it's the opposite of llvm.ptrmask

Presumably we'd want a fallback for GCC, but that definitely sounds compelling considering that this is a freestanding function, so we could just implement it as a builitin in a header for that case.

https://github.com/llvm/llvm-project/pull/132493


More information about the libc-commits mailing list