[PATCH] D20682: Expose target-specific pre-linking passes in TargetMachine

Yaxun Liu via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 14 14:10:30 PDT 2016


yaxunl added a comment.

In http://reviews.llvm.org/D20682#457939, @echristo wrote:

> I've read the cfe-dev summary and I'm still not sure why you need this - what's going on here?
>
> -eric


Basically some OpenCL builtin functions are not easily implemented by library only. Instead, they need to be transformed by some pre-linking passes then linked with the library. These passes are target specific, so they need to stay in the specific target directory. Then we need a way to tell Clang that we want these passes before linking with libraries for this target.


http://reviews.llvm.org/D20682





More information about the llvm-commits mailing list