[clang] Honor __attribute__((no_builtin("foo"))) on functions
authorStephen Long <steplong@quicinc.com>
Fri, 20 May 2022 13:41:37 +0000 (06:41 -0700)
committerStephen Long <steplong@quicinc.com>
Fri, 20 May 2022 13:41:47 +0000 (06:41 -0700)
commitae80024fbe51339afabfa2ff43ae532356fa3c93
treed67b91eff94b1a14e29c8441c614b344f94a51fb
parent1c4b31c38b3c36d6e6bbb071ce66abfa52d64c10
[clang] Honor __attribute__((no_builtin("foo"))) on functions

Support for `__attribute__((no_builtin("foo")))` was added in https://reviews.llvm.org/D68028,
but builtins were still being used even when the attribute was placed on a function.

Reviewed By: hans

Differential Revision: https://reviews.llvm.org/D124701
clang/docs/ReleaseNotes.rst
clang/include/clang/Basic/AttrDocs.td
clang/lib/CodeGen/CGExpr.cpp
clang/test/CodeGen/no-builtin-2.c [new file with mode: 0644]