[llvm] r355379 - [LangRef] Add 'callbr' instruction to the 'blockaddress' section.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 4 21:23:37 PST 2019


Author: ctopper
Date: Mon Mar  4 21:23:37 2019
New Revision: 355379

URL: http://llvm.org/viewvc/llvm-project?rev=355379&view=rev
Log:
[LangRef] Add 'callbr' instruction to the 'blockaddress' section.

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=355379&r1=355378&r2=355379&view=diff
==============================================================================
--- llvm/trunk/docs/LangRef.rst (original)
+++ llvm/trunk/docs/LangRef.rst Mon Mar  4 21:23:37 2019
@@ -3294,14 +3294,14 @@ basic block in the specified function, a
 Taking the address of the entry block is illegal.
 
 This value only has defined behavior when used as an operand to the
-':ref:`indirectbr <i_indirectbr>`' instruction, or for comparisons
-against null. Pointer equality tests between labels addresses results in
-undefined behavior --- though, again, comparison against null is ok, and
-no label is equal to the null pointer. This may be passed around as an
+':ref:`indirectbr <i_indirectbr>`' or ':ref:`callbr <i_callbr>`'instruction, or
+for comparisons against null. Pointer equality tests between labels addresses
+results in undefined behavior --- though, again, comparison against null is ok,
+and no label is equal to the null pointer. This may be passed around as an
 opaque pointer sized value as long as the bits are not inspected. This
 allows ``ptrtoint`` and arithmetic to be performed on these values so
-long as the original value is reconstituted before the ``indirectbr``
-instruction.
+long as the original value is reconstituted before the ``indirectbr`` or
+``callbr`` instruction.
 
 Finally, some targets may provide defined semantics when using the value
 as the operand to an inline assembly, but that is target specific.




More information about the llvm-commits mailing list