[PATCH] D139163: Utils: Add utility pass to lower ifuncs

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 22 15:39:40 PST 2022


MaskRay added a comment.

You previously said "OpenCL forbids function pointers. If you use target_clones in clang, there's no function pointer in the source and the compiler takes care of everything. I want to patch up subtarget specific implementations of builtin functions. It's not for end users"

I take it that if `target_clones` supports non-ifunc use, this patch is not needed. It seems that  `target_clones` indeed works without ifunc (inefficient now, but can be improved), so may I assume that this is not needed?


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

https://reviews.llvm.org/D139163



More information about the llvm-commits mailing list