diff options
author | Aiden Grossman <agrossman154@yahoo.com> | 2024-01-08 22:33:08 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-08 22:33:08 -0800 |
commit | cf6e9c4b2711fa4450c537aa381a1d693e130740 (patch) | |
tree | 23123452a72494c51777958b5fac218a19acce71 /llvm/docs/LangRef.rst | |
parent | f1ec0d12bb0843f0deab83ef2b5cf1339cbc4f0b (diff) | |
download | llvm-cf6e9c4b2711fa4450c537aa381a1d693e130740.zip llvm-cf6e9c4b2711fa4450c537aa381a1d693e130740.tar.gz llvm-cf6e9c4b2711fa4450c537aa381a1d693e130740.tar.bz2 |
[RISCV] Add documentation in the LangRef on GHC CC (#72762)
The GHC CC got added to RISCV in
a8dc2110cd4dd69212a204bc1074729f95d5402a but it never got documented in
the LangRef. This adds documentation in the LangRef noting that RISCV is
supports the GHC calling convention and notes the specific limitations
of the GHC CC on RISCV.
Diffstat (limited to 'llvm/docs/LangRef.rst')
-rw-r--r-- | llvm/docs/LangRef.rst | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst index 15abeb1..c90b6be 100644 --- a/llvm/docs/LangRef.rst +++ b/llvm/docs/LangRef.rst @@ -317,8 +317,8 @@ added in the future: not be used lightly but only for specific situations such as an alternative to the *register pinning* performance technique often used when implementing functional programming languages. At the - moment only X86 and AArch64 support this convention. The following - limitations exist: + moment only X86, AArch64, and RISCV support this convention. The + following limitations exist: - On *X86-32* only up to 4 bit type parameters are supported. No floating-point types are supported. @@ -327,6 +327,9 @@ added in the future: - On *AArch64* only up to 4 32-bit floating-point parameters, 4 64-bit floating-point parameters, and 10 bit type parameters are supported. + - *RISCV64* only supports up to 11 bit type parameters, 4 + 32-bit floating-point parameters, and 4 64-bit floating-point + parameters. This calling convention supports `tail call optimization <CodeGenerator.html#tail-call-optimization>`_ but requires |