[PATCH] D71193: [clang] Turn -fno-builtin flag into an IR Attribute

2019-12-12 Thread Guillaume Chatelet via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG0508c994f0b1: [clang] Turn -fno-builtin flag into an IR Attribute (authored by gchatelet). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D71193/new/ https://

[PATCH] D71193: [clang] Turn -fno-builtin flag into an IR Attribute

2019-12-12 Thread Guillaume Chatelet via Phabricator via cfe-commits
gchatelet marked an inline comment as done. gchatelet added inline comments. Comment at: clang/test/CodeGen/libcalls-fno-builtin.c:163 -// CHECK: [[ATTR]] = { nobuiltin } +// GLOBAL: #2 = { nobuiltin "no-builtins" } +// INDIVIDUAL: #2 = { nobuiltin "no-builtin-ceil" "no-builtin

[PATCH] D71193: [clang] Turn -fno-builtin flag into an IR Attribute

2019-12-12 Thread Teresa Johnson via Phabricator via cfe-commits
tejohnson added inline comments. Comment at: clang/test/CodeGen/libcalls-fno-builtin.c:163 -// CHECK: [[ATTR]] = { nobuiltin } +// GLOBAL: #2 = { nobuiltin "no-builtins" } +// INDIVIDUAL: #2 = { nobuiltin "no-builtin-ceil" "no-builtin-copysign" "no-builtin-cos" "no-builtin-fab

[PATCH] D71193: [clang] Turn -fno-builtin flag into an IR Attribute

2019-12-12 Thread Guillaume Chatelet via Phabricator via cfe-commits
gchatelet marked an inline comment as done. gchatelet added inline comments. Comment at: clang/test/CodeGen/libcalls-fno-builtin.c:163 -// CHECK: [[ATTR]] = { nobuiltin } +// GLOBAL: #2 = { nobuiltin "no-builtins" } +// INDIVIDUAL: #2 = { nobuiltin "no-builtin-ceil" "no-builtin

[PATCH] D71193: [clang] Turn -fno-builtin flag into an IR Attribute

2019-12-11 Thread Teresa Johnson via Phabricator via cfe-commits
tejohnson added a comment. This LGTM, although I have a couple of questions that are orthogonal to this patch and shouldn't block it. Please wait to see if @aaron.ballman has any more comments. Comment at: clang/test/CodeGen/libcalls-fno-builtin.c:163 -// CHECK: [[ATTR]] =

[PATCH] D71193: [clang] Turn -fno-builtin flag into an IR Attribute

2019-12-11 Thread Guillaume Chatelet via Phabricator via cfe-commits
gchatelet updated this revision to Diff 233272. gchatelet marked 3 inline comments as done. gchatelet added a comment. - Address comments Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D71193/new/ https://reviews.llvm.org/D71193 Files: clang/lib/C

[PATCH] D71193: [clang] Turn -fno-builtin flag into an IR Attribute

2019-12-10 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added reviewers: efriedma, tejohnson, hfinkel. aaron.ballman added a comment. Adding a few more reviewers who may know more about LLVM attributes. Comment at: clang/lib/CodeGen/CGCall.cpp:1884 +else { + const auto AddNoBuiltinAttr = [&FuncAttrs](S

[PATCH] D71193: [clang] Turn -fno-builtin flag into an IR Attribute

2019-12-09 Thread Guillaume Chatelet via Phabricator via cfe-commits
gchatelet created this revision. gchatelet added reviewers: aaron.ballman, courbet. Herald added a project: clang. Herald added a subscriber: cfe-commits. 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 investi