]> granicus.if.org Git - clang/commit
Implement the flatten attribute.
authorPeter Collingbourne <peter@pcc.me.uk>
Tue, 20 May 2014 17:12:51 +0000 (17:12 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Tue, 20 May 2014 17:12:51 +0000 (17:12 +0000)
commit7e9a34dfa561f6fa3e91848212f1a0cf15094799
tree5ea7928f5e67865e5ab5f8d35ad06722b96a6486
parentfa11365ab61a9934a68147ba6f7e9a5fdde526c0
Implement the flatten attribute.

This is a GNU attribute that causes calls within the attributed function
to be inlined where possible. It is implemented by giving such calls the
alwaysinline attribute.

Differential Revision: http://reviews.llvm.org/D3816

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209217 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Attr.td
include/clang/Basic/AttrDocs.td
lib/CodeGen/CGCall.cpp
lib/Sema/SemaDeclAttr.cpp
test/CodeGen/flatten.c [new file with mode: 0644]
test/CodeGenCXX/flatten.cpp [new file with mode: 0644]
test/SemaCXX/attr-flatten.cpp [new file with mode: 0644]