[llvm] 9399681 - [Doc] Fix example in codegen doc.

Kai Nacke via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 18 05:26:34 PST 2021


Author: Kai Nacke
Date: 2021-01-18T08:24:10-05:00
New Revision: 9399681a57cef143dc4d087706947a03af819ef5

URL: https://github.com/llvm/llvm-project/commit/9399681a57cef143dc4d087706947a03af819ef5
DIFF: https://github.com/llvm/llvm-project/commit/9399681a57cef143dc4d087706947a03af819ef5.diff

LOG: [Doc] Fix example in codegen doc.

The attributes in the example are placed wrong:
They belong after the type, not after the parameter name.

Reviewed by: abhina.sreeskantharajan

Differential Revision: https://reviews.llvm.org/D94683

Added: 
    

Modified: 
    llvm/docs/CodeGenerator.rst

Removed: 
    


################################################################################
diff  --git a/llvm/docs/CodeGenerator.rst b/llvm/docs/CodeGenerator.rst
index 875a96ca4e2a..7644242d2d61 100644
--- a/llvm/docs/CodeGenerator.rst
+++ b/llvm/docs/CodeGenerator.rst
@@ -2112,7 +2112,7 @@ Call as ``llc -tailcallopt test.ll``.
 
   define fastcc i32 @tailcaller(i32 %in1, i32 %in2) {
     %l1 = add i32 %in1, %in2
-    %tmp = tail call fastcc i32 @tailcallee(i32 %in1 inreg, i32 %in2 inreg, i32 %in1, i32 %l1)
+    %tmp = tail call fastcc i32 @tailcallee(i32 inreg %in1, i32 inreg %in2, i32 %in1, i32 %l1)
     ret i32 %tmp
   }
 


        


More information about the llvm-commits mailing list