summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Ributzka <juergen@apple.com>2014-01-30 02:39:00 +0000
committerJuergen Ributzka <juergen@apple.com>2014-01-30 02:39:00 +0000
commit980f2dc4fc9a27fa950f6f9c6baf554aa7cef351 (patch)
treed576c6658584bc6c2922ef30f3dbbdd57fcd6864
parentf166f6c8d0393eeb10c5531ddf3e1bdcc9aa1f92 (diff)
downloadbcm5719-llvm-980f2dc4fc9a27fa950f6f9c6baf554aa7cef351.tar.gz
bcm5719-llvm-980f2dc4fc9a27fa950f6f9c6baf554aa7cef351.zip
Extend the preserve_most/all calling convention description in LangRef about the
fact that the argument registers will be preserved too. llvm-svn: 200441
-rw-r--r--llvm/docs/LangRef.rst9
1 files changed, 7 insertions, 2 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index 8bb834b45ed..d1eaee16a66 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -366,7 +366,9 @@ added in the future:
calling convention on how arguments and return values are passed, but it
uses a different set of caller/callee-saved registers. This alleviates the
burden of saving and recovering a large register set before and after the
- call in the caller.
+ call in the caller. If the arguments are passed in callee-saved registers,
+ then they will be preserved by the callee across the call. This doesn't
+ apply for values returned in callee-saved registers.
- On X86-64 the callee preserves all general purpose registers, except for
R11. R11 can be used as a scratch register. Floating-point registers
@@ -397,7 +399,10 @@ added in the future:
convention also behaves identical to the `C` calling convention on how
arguments and return values are passed, but it uses a different set of
caller/callee-saved registers. This removes the burden of saving and
- recovering a large register set before and after the call in the caller.
+ recovering a large register set before and after the call in the caller. If
+ the arguments are passed in callee-saved registers, then they will be
+ preserved by the callee across the call. This doesn't apply for values
+ returned in callee-saved registers.
- On X86-64 the callee preserves all general purpose registers, except for
R11. R11 can be used as a scratch register. Furthermore it also preserves
OpenPOWER on IntegriCloud