[llvm] r292657 - docs: Document that !absolute_symbol { all-ones, all-ones } means the full set.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 20 13:56:37 PST 2017


Author: pcc
Date: Fri Jan 20 15:56:37 2017
New Revision: 292657

URL: http://llvm.org/viewvc/llvm-project?rev=292657&view=rev
Log:
docs: Document that !absolute_symbol { all-ones, all-ones } means the full set.

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=292657&r1=292656&r2=292657&view=diff
==============================================================================
--- llvm/trunk/docs/LangRef.rst (original)
+++ llvm/trunk/docs/LangRef.rst Fri Jan 20 15:56:37 2017
@@ -4601,16 +4601,19 @@ declaration. It marks the declaration as
 which causes the backend to use absolute relocations for the symbol even
 in position independent code, and expresses the possible ranges that the
 global variable's *address* (not its value) is in, in the same format as
-``range`` metadata.
+``range`` metadata, with the extension that the pair ``all-ones,all-ones``
+may be used to represent the full set.
 
-Example:
+Example (assuming 64-bit pointers):
 
 .. code-block:: llvm
 
       @a = external global i8, !absolute_symbol !0 ; Absolute symbol in range [0,256)
+      @b = external global i8, !absolute_symbol !1 ; Absolute symbol in range [0,2^64)
 
     ...
     !0 = !{ i64 0, i64 256 }
+    !1 = !{ i64 -1, i64 -1 }
 
 '``unpredictable``' Metadata
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^




More information about the llvm-commits mailing list