aaron.ballman added a comment.

> This lets offloading languages such as OpenMP use the system string.h when 
> compiling for the host and then the LLVM libc string.h when targeting the GPU.

How do we avoid ABI issues when the two headers get sufficiently out of sync? 
(In general, I'm pretty surprised to hear we would want different headers for 
the GPU and the system -- does this affect conformance requirements from the C 
standard?)

Excuse my ignorance on this point, but is llvm-libc intended to work with any 
compiler other than Clang? (e.g., will other compilers need to do this dance as 
well?)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D146973

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to