From e50e1603485d7f80efb3d9d47de4f9b91157f8a6 Mon Sep 17 00:00:00 2001 From: Sean Silva Date: Wed, 27 Nov 2013 04:55:23 +0000 Subject: [PATCH] [docs] Mention gotcha regarding implicit BB numbering Impetus for the clarification by Mikael Lyngvig. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195812 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LangRef.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/LangRef.rst b/docs/LangRef.rst index 18d2c9cfb52..810455cbc3a 100644 --- a/docs/LangRef.rst +++ b/docs/LangRef.rst @@ -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 -- 2.34.1