diff options
author | Sean Silva <silvas@purdue.edu> | 2013-11-27 04:55:23 +0000 |
---|---|---|
committer | Sean Silva <silvas@purdue.edu> | 2013-11-27 04:55:23 +0000 |
commit | 6cda6dc6cfc16ab410abb27d24b86cdbfa9baba7 (patch) | |
tree | dceaa7672c30cf5510d138e2ec01d0681653b2ef | |
parent | 41c35d6d2f6e71f26ee1611d426b278e069da09c (diff) | |
download | bcm5719-llvm-6cda6dc6cfc16ab410abb27d24b86cdbfa9baba7.tar.gz bcm5719-llvm-6cda6dc6cfc16ab410abb27d24b86cdbfa9baba7.zip |
[docs] Mention gotcha regarding implicit BB numbering
Impetus for the clarification by Mikael Lyngvig.
llvm-svn: 195812
-rw-r--r-- | llvm/docs/LangRef.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst index 18d2c9cfb52..810455cbc3a 100644 --- a/llvm/docs/LangRef.rst +++ b/llvm/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 |