[PATCH] D19801: [SelectionDAG] Don't treat library calls specially if marked with nobuiltin.

Jan Vesely via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 24 12:31:57 PDT 2016


jvesely added a comment.

In http://reviews.llvm.org/D19801#465894, @jvesely wrote:

> Hi,
>
> this change breaks OpenCL using mesa (clover) with some library functonis implemneted using builtins:
>
>   __attribute__((always_inline)) __attribute__((overloadable)) float copysign(float a, float b) {
>       return __builtin_copysignf(a, b)
>   }
>
>
> results in kernel build failure:
>
>   <unknown>:0:0: in function test_1_copysign_float void (float addrspace(1)*, float addrspace(1)*, float addrspace(1)*): unsupported call to function copysignf
>
>
> Both for R600 (evergreen) and GCN (kaveri)


nvm, libclc was using -fno-builtins and __builtins.

Jan


Repository:
  rL LLVM

http://reviews.llvm.org/D19801





More information about the llvm-commits mailing list