Skip to content

Commit

Permalink
[RISCV] Add documentation in the LangRef on GHC CC (#72762)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
boomanaiden154 authored Jan 9, 2024
1 parent f1ec0d1 commit cf6e9c4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions llvm/docs/LangRef.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit cf6e9c4

Please sign in to comment.