From db7e3c9e990a2a867b96c57189197720435b91b8 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Sat, 8 Sep 2007 13:57:50 +0000 Subject: [PATCH] Fix description of the call instruction. There are two types, with one being optional. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41785 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LangRef.html | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/docs/LangRef.html b/docs/LangRef.html index 687c87f45f3..7a97ff5d1d4 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -3581,7 +3581,7 @@ value argument; otherwise, it returns the second value argument.
Syntax:
-  <result> = [tail] call [cconv] <ty>* <fnptrval>(<param list>)
+  <result> = [tail] call [cconv] <ty> [<fnty>*] <fnptrval>(<param list>)
 
Overview:
@@ -3606,10 +3606,15 @@ value argument; otherwise, it returns the second value argument. to using C calling conventions.
  • -

    'ty': shall be the signature of the pointer to function value - being invoked. The argument types must match the types implied by this - signature. This type can be omitted if the function is not varargs and - if the function type does not return a pointer to a function.

    +

    'ty': the type of the call instruction itself which is also + the type of the return value. Functions that return no value are marked + void.

    +
  • +
  • +

    'fnty': shall be the signature of the pointer to function + value being invoked. The argument types must match the types implied by + this signature. This type can be omitted if the function is not varargs + and if the function type does not return a pointer to a function.

  • 'fnptrval': An LLVM value containing a pointer to a function to @@ -3639,10 +3644,11 @@ the invoke instruction.

    Example:
    -  %retval = call i32 %test(i32 %argc)
    -  call i32(i8 *, ...) *%printf(i8 * %msg, i32 12, i8 42);
    -  %X = tail call i32 %foo()
    -  %Y = tail call fastcc i32 %foo()
    +  %retval = call i32 @test(i32 %argc)
    +  call i32 (i8 *, ...)* @printf(i8 * %msg, i32 12, i8 42);
    +  %X = tail call i32 @foo()
    +  %Y = tail call fastcc i32 @foo()
    +  %Z = call void %foo(i8 97 signext)
     
    -- 2.34.1