[PATCH] D124701: [clang] Honor __attribute__((no_builtin("foo"))) on functions

Stephen Long via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 2 06:44:22 PDT 2022


steplong added a comment.

In D124701#3485317 <https://reviews.llvm.org/D124701#3485317>, @hans wrote:

> If I understand correctly, D68028 <https://reviews.llvm.org/D68028> made it so that LLVM doesn't add any builtin calls (e.g. turning for-loops into memcpy), but Clang could still turn calls into builtins. Maybe the patch description could be expanded to explain this?

I'm not too sure, but I think D68028 <https://reviews.llvm.org/D68028> just adds the attribute nobuiltin, but it gets ignored. It doesn't seem to affect the calls in the function. They're still being converted into builtins even with the attribute on the function.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D124701



More information about the cfe-commits mailing list