[llvm] 0854232 - [LangRef] formatting

Juneyoung Lee via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 15 18:41:45 PDT 2021


Author: Juneyoung Lee
Date: 2021-04-16T10:41:30+09:00
New Revision: 085423282de993e2ad3bbc5f673edd61db6e19fe

URL: https://github.com/llvm/llvm-project/commit/085423282de993e2ad3bbc5f673edd61db6e19fe
DIFF: https://github.com/llvm/llvm-project/commit/085423282de993e2ad3bbc5f673edd61db6e19fe.diff

LOG: [LangRef] formatting

Added: 
    

Modified: 
    llvm/docs/LangRef.rst

Removed: 
    


################################################################################
diff  --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index 3d483d067acc..628f23e99d1d 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -2680,8 +2680,8 @@ To be precise, a pointer is captured if one or more of the following conditions
 hold:
 
 1. The call stores any bit of the pointer carrying information into a place,
-and the stored bits can be read from the place by the caller after this call
-exits.
+   and the stored bits can be read from the place by the caller after this call
+   exits.
 
 .. code-block:: llvm
 
@@ -2708,8 +2708,8 @@ exits.
     }
 
 2. The call stores any bit of the pointer carrying information into a place,
-and the stored bits can be safely read from the place by another thread via
-synchronization.
+   and the stored bits can be safely read from the place by another thread via
+   synchronization.
 
 .. code-block:: llvm
 
@@ -2726,12 +2726,13 @@ synchronization.
 
 .. code-block:: llvm
 
-    @glb  = global i8 0
+    @glb = global i8 0
+
     define void @f(i8* %a) {
       %c = icmp eq i8* %a, @glb
-      br i1 %c, BB_EXIT, BB_CONTINUE ; escapes %a
+      br i1 %c, label %BB_EXIT, label %BB_CONTINUE ; escapes %a
     BB_EXIT:
-      call void exit()
+      call void @exit()
       unreachable
     BB_CONTINUE:
       ret void


        


More information about the llvm-commits mailing list