[PATCH] D42319: [CUDA] CUDA has no device-side library builtins.

2018-01-23 Thread Artem Belevich via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL323239: [CUDA] CUDA has no device-side library builtins. (authored by tra, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D42319?vs=130697&id=

[PATCH] D42319: [CUDA] CUDA has no device-side library builtins.

2018-01-22 Thread Justin Lebar via Phabricator via cfe-commits
jlebar accepted this revision. jlebar added a comment. This revision is now accepted and ready to land. Got it, thanks for the explanation. https://reviews.llvm.org/D42319 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org

[PATCH] D42319: [CUDA] CUDA has no device-side library builtins.

2018-01-22 Thread Artem Belevich via Phabricator via cfe-commits
tra added a comment. In https://reviews.llvm.org/D42319#983377, @jlebar wrote: > How does this affect e.g. calling memcpy()? There isn't a standard library > implementation of this on nvptx, but we do want calls to memcpy() to be > lowered to llvm.memcpy so that they can be optimized. We imp

[PATCH] D42319: [CUDA] CUDA has no device-side library builtins.

2018-01-21 Thread Justin Lebar via Phabricator via cfe-commits
jlebar added a comment. How does this affect e.g. calling memcpy()? There isn't a standard library implementation of this on nvptx, but we do want calls to memcpy() to be lowered to llvm.memcpy so that they can be optimized. https://reviews.llvm.org/D42319 _

[PATCH] D42319: [CUDA] CUDA has no device-side library builtins.

2018-01-19 Thread Artem Belevich via Phabricator via cfe-commits
tra created this revision. tra added a reviewer: jlebar. Herald added a subscriber: sanjoy. We should (almost) never consider a device-side declaration to match a builtin. If we do, the un-inlined device-side functions provided by CUDA headers that ship with clang may be ignored. We may end up em