diff options
author | Reid Kleckner <reid@kleckner.net> | 2014-01-31 17:41:22 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2014-01-31 17:41:22 +0000 |
commit | 1c843228f825e91ede7e15b0cd15e8d2c8e7a7ff (patch) | |
tree | 45755ddc21e19f0abc6ac23d82a3635c9cd74577 /llvm/docs/BitCodeFormat.rst | |
parent | 56908b34015e79f57283c8f162f61730b4cf2b26 (diff) | |
download | llvm-1c843228f825e91ede7e15b0cd15e8d2c8e7a7ff.zip llvm-1c843228f825e91ede7e15b0cd15e8d2c8e7a7ff.tar.gz llvm-1c843228f825e91ede7e15b0cd15e8d2c8e7a7ff.tar.bz2 |
[ms-cxxabi] Add a new calling convention that swaps 'this' and 'sret'
MSVC always places the 'this' parameter for a method first. The
implicit 'sret' pointer for methods always comes second. We already
implement this for __thiscall by putting sret parameters on the stack,
but __cdecl methods require putting both parameters on the stack in
opposite order.
Using a special calling convention allows frontends to keep the sret
parameter first, which avoids breaking lots of assumptions in LLVM and
Clang.
Fixes PR15768 with the corresponding change in Clang.
Reviewers: ributzka, majnemer
Differential Revision: http://llvm-reviews.chandlerc.com/D2663
llvm-svn: 200561
Diffstat (limited to 'llvm/docs/BitCodeFormat.rst')
-rw-r--r-- | llvm/docs/BitCodeFormat.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/docs/BitCodeFormat.rst b/llvm/docs/BitCodeFormat.rst index 38b40104..4c1c94a 100644 --- a/llvm/docs/BitCodeFormat.rst +++ b/llvm/docs/BitCodeFormat.rst @@ -746,6 +746,8 @@ function. The operand fields are: * ``arm_apcscc``: code 66 * ``arm_aapcscc``: code 67 * ``arm_aapcs_vfpcc``: code 68 + * ``x86_thiscallcc``: code 70 + * ``x86_cdeclmethodcc``: code 80 * isproto*: Non-zero if this entry represents a declaration rather than a definition |