[llvm] r195812 - [docs] Mention gotcha regarding implicit BB numbering

Sean Silva silvas at purdue.edu
Tue Nov 26 20:55:23 PST 2013


Author: silvas
Date: Tue Nov 26 22:55:23 2013
New Revision: 195812

URL: http://llvm.org/viewvc/llvm-project?rev=195812&view=rev
Log:
[docs] Mention gotcha regarding implicit BB numbering

Impetus for the clarification by Mikael Lyngvig.

Modified:
    llvm/trunk/docs/LangRef.rst

Modified: llvm/trunk/docs/LangRef.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/LangRef.rst?rev=195812&r1=195811&r2=195812&view=diff
==============================================================================
--- llvm/trunk/docs/LangRef.rst (original)
+++ llvm/trunk/docs/LangRef.rst Tue Nov 26 22:55:23 2013
@@ -128,7 +128,9 @@ lexical features of LLVM:
 #. Unnamed temporaries are created when the result of a computation is
    not assigned to a named value.
 #. Unnamed temporaries are numbered sequentially (using a per-function
-   incrementing counter, starting with 0).
+   incrementing counter, starting with 0). Note that basic blocks are
+   included in this numbering. For example, if the entry basic block is not
+   given a label name, then it will get number 0.
 
 It also shows a convention that we follow in this document. When
 demonstrating instructions, we will follow an instruction with a comment





More information about the llvm-commits mailing list