[PATCH] D94013: [libclc] Add clspv target for libclc

Alan Baker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 10 08:17:20 PST 2021


alan-baker added a comment.

In D94013#2554055 <https://reviews.llvm.org/D94013#2554055>, @tstellar wrote:

> Is the fma.cl file mostly copied from another file that is already in the tree?

Yes, it is mostly based on the generic software implementation of fma, but instead of using 64-bit integers for the mantissa, it instead uses uint2 and handles all the carry/borrow logic explicitly. This is because clspv translates to Vulkan SPIR-V and the ability to use 64-bit integers is not widely available on many mobile devices. So the uint2 avoids that requirement.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D94013



More information about the llvm-commits mailing list