diff options
author | Albert Gutowski <agutowski@google.com> | 2016-10-12 22:13:19 +0000 |
---|---|---|
committer | Albert Gutowski <agutowski@google.com> | 2016-10-12 22:13:19 +0000 |
commit | 795d7d63810619af504ca1330aaa967c6e1c976d (patch) | |
tree | 4eebf0989b7ec2c007d25a9366eab6f76e90f18d /llvm/docs/LangRef.rst | |
parent | 2a0621e58a3929a0e1662c67ae59bfbb11b3b08f (diff) | |
download | bcm5719-llvm-795d7d63810619af504ca1330aaa967c6e1c976d.tar.gz bcm5719-llvm-795d7d63810619af504ca1330aaa967c6e1c976d.zip |
Create llvm.addressofreturnaddress intrinsic
Summary: We need a new LLVM intrinsic to implement MS _AddressOfReturnAddress builtin on 64-bit Windows.
Reviewers: majnemer, rnk
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D25293
llvm-svn: 284061
Diffstat (limited to 'llvm/docs/LangRef.rst')
-rw-r--r-- | llvm/docs/LangRef.rst | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst index 438c87d9f06..464bf462ac7 100644 --- a/llvm/docs/LangRef.rst +++ b/llvm/docs/LangRef.rst @@ -9294,6 +9294,32 @@ Note that calling this intrinsic does not prevent function inlining or other aggressive transformations, so the value returned may not be that of the obvious source-language caller. +'``llvm.addressofreturnaddress``' Intrinsic +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Syntax: +""""""" + +:: + + declare i8 *@llvm.addressofreturnaddress() + +Overview: +""""""""" + +The '``llvm.addressofreturnaddress``' intrinsic returns a target-specific +pointer to the place in the stack frame where the return address of the +current function is stored. + +Semantics: +"""""""""" + +Note that calling this intrinsic does not prevent function inlining or +other aggressive transformations, so the value returned may not be that +of the obvious source-language caller. + +This intrinsic is only implemented for x86. + '``llvm.frameaddress``' Intrinsic ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |