Skip to content

Commit cf6e9c4

Browse files
[RISCV] Add documentation in the LangRef on GHC CC (llvm#72762)
The GHC CC got added to RISCV in a8dc211 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.
1 parent f1ec0d1 commit cf6e9c4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

llvm/docs/LangRef.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,8 @@ added in the future:
317317
not be used lightly but only for specific situations such as an
318318
alternative to the *register pinning* performance technique often
319319
used when implementing functional programming languages. At the
320-
moment only X86 and AArch64 support this convention. The following
321-
limitations exist:
320+
moment only X86, AArch64, and RISCV support this convention. The
321+
following limitations exist:
322322

323323
- On *X86-32* only up to 4 bit type parameters are supported. No
324324
floating-point types are supported.
@@ -327,6 +327,9 @@ added in the future:
327327
- On *AArch64* only up to 4 32-bit floating-point parameters,
328328
4 64-bit floating-point parameters, and 10 bit type parameters
329329
are supported.
330+
- *RISCV64* only supports up to 11 bit type parameters, 4
331+
32-bit floating-point parameters, and 4 64-bit floating-point
332+
parameters.
330333

331334
This calling convention supports `tail call
332335
optimization <CodeGenerator.html#tail-call-optimization>`_ but requires

0 commit comments

Comments
 (0)