[PATCH] D74387: [SYCL] Defer __float128 type usage diagnostics

Johannes Doerfert via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 10 13:59:02 PDT 2020


jdoerfert added a comment.

As I mentioned before. As long as the type is not "used" you can treat it as a sequence of bytes just as well. So we can lower `__float128` to `char [16]` with the right alignment. SPIRV will never see unsupported types and the code works because we never access it as `float128` anyway. WDYT?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D74387





More information about the cfe-commits mailing list