[PATCH] D146973: [Clang] Implicitly include LLVM libc headers for the GPU

Joseph Huber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 28 11:37:31 PDT 2023


jhuber6 added a comment.

In D146973#4228070 <https://reviews.llvm.org/D146973#4228070>, @tra wrote:

> I'm OK with injecting the path *now* with an understanding that it's a short-term "happens to work" way to move forward while we're working on a better solution.

So, the proposed path forward is this. We have `libc` generate its own headers so we can have a base implementation. We create these headers with the intention of them providing a full interface between the host and device. This might mean curating some differences based on whatever the host does, or just making sure we choose sizes that are compatible. So these headers are the expected interface to the `libc` implementations we support, but we ensure that things match between the host and device by only providing interfaces we've verified somehow.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D146973/new/

https://reviews.llvm.org/D146973



More information about the cfe-commits mailing list