diff options
author | Reid Kleckner <reid@kleckner.net> | 2013-12-19 02:14:12 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2013-12-19 02:14:12 +0000 |
commit | a534a381304efc038276f426a756f5c56834bbc5 (patch) | |
tree | 0e73ad0bfb6ba29e5473a7ce1d4d91bb68175557 /llvm/lib/Target/CppBackend/CPPBackend.cpp | |
parent | b353ee18086227b3a4192a970cdbced5358003f5 (diff) | |
download | bcm5719-llvm-a534a381304efc038276f426a756f5c56834bbc5.tar.gz bcm5719-llvm-a534a381304efc038276f426a756f5c56834bbc5.zip |
Begin adding docs and IR-level support for the inalloca attribute
The inalloca attribute is designed to support passing C++ objects by
value in the Microsoft C++ ABI. It behaves the same as byval, except
that it always implies that the argument is in memory and that the bytes
are never copied. This attribute allows the caller to take the address
of an outgoing argument's memory and execute arbitrary code to store
into it.
This patch adds basic IR support, docs, and verification. It does not
attempt to implement any lowering or fix any possibly broken transforms.
When this patch lands, a complete description of this feature should
appear at http://llvm.org/docs/InAlloca.html .
Differential Revision: http://llvm-reviews.chandlerc.com/D2173
llvm-svn: 197645
Diffstat (limited to 'llvm/lib/Target/CppBackend/CPPBackend.cpp')
-rw-r--r-- | llvm/lib/Target/CppBackend/CPPBackend.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp index 07a9db35a1f..c290f70e9e4 100644 --- a/llvm/lib/Target/CppBackend/CPPBackend.cpp +++ b/llvm/lib/Target/CppBackend/CPPBackend.cpp @@ -491,6 +491,7 @@ void CppWriter::printAttributes(const AttributeSet &PAL, HANDLE_ATTR(NoUnwind); HANDLE_ATTR(NoAlias); HANDLE_ATTR(ByVal); + HANDLE_ATTR(InAlloca); HANDLE_ATTR(Nest); HANDLE_ATTR(ReadNone); HANDLE_ATTR(ReadOnly); |