summaryrefslogtreecommitdiffstats
path: root/llvm/docs
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/docs')
-rw-r--r--llvm/docs/BitCodeFormat.rst1
-rw-r--r--llvm/docs/LangRef.rst3
2 files changed, 4 insertions, 0 deletions
diff --git a/llvm/docs/BitCodeFormat.rst b/llvm/docs/BitCodeFormat.rst
index f6a560df8df..8c56e3fe450 100644
--- a/llvm/docs/BitCodeFormat.rst
+++ b/llvm/docs/BitCodeFormat.rst
@@ -757,6 +757,7 @@ function. The operand fields are:
* ``anyregcc``: code 13
* ``preserve_mostcc``: code 14
* ``preserve_allcc``: code 15
+ * ``swiftcc`` : code 16
* ``cxx_fast_tlscc``: code 17
* ``x86_stdcallcc``: code 64
* ``x86_fastcallcc``: code 65
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index a525c0c99ef..bc7cf9c8a08 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -427,6 +427,9 @@ added in the future:
- On X86-64 the callee preserves all general purpose registers, except for
RDI and RAX.
+"``swiftcc``" - This calling convention is used for Swift language.
+ - On X86-64 RCX and R8 are available for additional integer returns, and
+ XMM2 and XMM3 are available for additional FP/vector returns.
"``cc <n>``" - Numbered convention
Any calling convention may be specified by number, allowing
target-specific calling conventions to be used. Target specific
OpenPOWER on IntegriCloud