[clang] Turn -fno-builtin flag into an IR Attribute
authorGuillaume Chatelet <gchatelet@google.com>
Mon, 9 Dec 2019 11:22:27 +0000 (12:22 +0100)
committerGuillaume Chatelet <gchatelet@google.com>
Thu, 12 Dec 2019 16:21:12 +0000 (17:21 +0100)
commit0508c994f0b14144041f2cfd3ba9f9a80f03de08
treea31e8b07b9a60940698dbfe3628194adec69ca0e
parent65996c302a4472e597780c99bd834f9bf8978712
[clang] Turn -fno-builtin flag into an IR Attribute

Summary:
This is a follow up on https://reviews.llvm.org/D61634#1742154 to turn the clang driver -fno-builtin flag into an IR attribute.
I also investigated pushing the attribute earlier on (in Sema) but it looks like this patch is simple and will cover all function calls.

Reviewers: aaron.ballman, courbet

Subscribers: cfe-commits, tejohnson

Tags: #clang

Differential Revision: https://reviews.llvm.org/D71193
clang/lib/CodeGen/CGCall.cpp
clang/test/CodeGen/libcalls-fno-builtin.c
clang/test/CodeGen/memccpy-libcall.c