[PATCH] D36327: [OpenCL] Allow targets emit optimized pipe functions for power of 2 type sizes
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 14 07:02:46 PDT 2017
yaxunl added a comment.
In https://reviews.llvm.org/D36327#839809, @rjmccall wrote:
> Could you just implement this in SimplifyLibCalls? I assume there's some way to fill in TargetLibraryInfo appropriately for a platform. Is that too late for your linking requirements?
Both the optimized and generic versions of __read_pipe function contains call of other library functions and are complicate enough not to be generated programmatically. amdgpu target does not have the capability to link in library code after LLVM codegen. The linking has to be done before SimplifyLibCalls.
More information about the cfe-commits