[llvm] 584bd38 - [docs] fix output question (#177842)

via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 1 01:37:54 PST 2026


Author: guohaonan
Date: 2026-02-01T09:37:48Z
New Revision: 584bd38627b83cabb061ea7ee3395adc07c809ee

URL: https://github.com/llvm/llvm-project/commit/584bd38627b83cabb061ea7ee3395adc07c809ee
DIFF: https://github.com/llvm/llvm-project/commit/584bd38627b83cabb061ea7ee3395adc07c809ee.diff

LOG: [docs] fix output question (#177842)

See the code:
<img width="2631" height="1090" alt="image"
src="https://github.com/user-attachments/assets/dfe949b3-fbc6-4cd3-9e8d-5c0adbfcc67a"
/>
<img width="1751" height="577" alt="image"
src="https://github.com/user-attachments/assets/e3b78596-24b9-4bd5-b40d-a4154b2e6bb2"
/>


So the output is not the number, is the text "__anon_expr".

Added: 
    

Modified: 
    llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl03.rst

Removed: 
    


################################################################################
diff  --git a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl03.rst b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl03.rst
index 001a314cb1331..123f122af77e4 100644
--- a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl03.rst
+++ b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl03.rst
@@ -429,7 +429,7 @@ at the LLVM IR for simple functions. For example:
 
     ready> 4+5;
     Read top-level expression:
-    define double @0() {
+    define double @__anon_expr() {
     entry:
       ret double 9.000000e+00
     }
@@ -484,7 +484,7 @@ control flow to actually make recursion useful :).
 
     ready> cos(1.234);
     Read top-level expression:
-    define double @1() {
+    define double @__anon_expr() {
     entry:
       %calltmp = call double @cos(double 1.234000e+00)
       ret double %calltmp


        


More information about the llvm-commits mailing list