diff options
author | Reid Kleckner <reid@kleckner.net> | 2015-03-04 00:08:56 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2015-03-04 00:08:56 +0000 |
commit | 5a2ab2bb932d94eb350f809693a48d05e4a7eea6 (patch) | |
tree | fc0a7ca63907f9749a07d4549abffcdcbc82bc51 /llvm/docs | |
parent | 9cfa627353a6721990bfa00a0a974d9415889d1a (diff) | |
download | bcm5719-llvm-5a2ab2bb932d94eb350f809693a48d05e4a7eea6.tar.gz bcm5719-llvm-5a2ab2bb932d94eb350f809693a48d05e4a7eea6.zip |
Document the LLVM "thunk" attribute added back in r226708
llvm-svn: 231181
Diffstat (limited to 'llvm/docs')
-rw-r--r-- | llvm/docs/LangRef.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst index 97b2784a691..cc815e1a4e9 100644 --- a/llvm/docs/LangRef.rst +++ b/llvm/docs/LangRef.rst @@ -1369,6 +1369,11 @@ example: If a function that has an ``sspstrong`` attribute is inlined into a function that doesn't have an ``sspstrong`` attribute, then the resulting function will have an ``sspstrong`` attribute. +``"thunk"`` + This attribute indicates that the function will delegate to some other + function with a tail call. The prototype of a thunk should not be used for + optimization purposes. The caller is expected to cast the thunk prototype to + match the thunk target prototype. ``uwtable`` This attribute indicates that the ABI being targeted requires that an unwind table entry be produce for this function even if we can |