diff options
Diffstat (limited to 'llvm/docs/CodeGenerator.rst')
-rw-r--r-- | llvm/docs/CodeGenerator.rst | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/llvm/docs/CodeGenerator.rst b/llvm/docs/CodeGenerator.rst index 700ab7f9a55..75d893b1393 100644 --- a/llvm/docs/CodeGenerator.rst +++ b/llvm/docs/CodeGenerator.rst @@ -2090,9 +2090,14 @@ PowerPC constraints: * On ppc32/64 GOT/PIC only module-local calls (visibility = hidden or protected) are supported. -On WebAssembly, tail calls are lowered to ``return_call`` and -``return_call_indirect`` instructions whenever the 'tail-call' target attribute -is enabled. +WebAssembly constraints: + +* No variable argument lists are used + +* The 'tail-call' target attribute is enabled. + +* The caller and callee's return types must match. The caller cannot + be void unless the callee is, too. Example: |