Skip to content

Commit a3f18e3

Browse files
committed
Update LangRef
1 parent 92b344f commit a3f18e3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

llvm/docs/LangRef.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3120,6 +3120,9 @@ as follows:
31203120
program memory space defaults to the default address space of 0,
31213121
which corresponds to a Von Neumann architecture that has code
31223122
and data in the same space.
3123+
3124+
.. _globals_addrspace:
3125+
31233126
``G<address space>``
31243127
Specifies the address space to be used by default when creating global
31253128
variables. If omitted, the globals address space defaults to the default
@@ -14968,7 +14971,8 @@ Syntax:
1496814971

1496914972
::
1497014973

14971-
declare ptr @llvm.thread.pointer()
14974+
declare ptr @llvm.thread.pointer.p0()
14975+
declare ptr addrspace(5) @llvm.thread.pointer.p5()
1497214976

1497314977
Overview:
1497414978
"""""""""
@@ -14985,7 +14989,8 @@ specific: it may point to the start of TLS area, to the end, or somewhere
1498514989
in the middle. Depending on the target, this intrinsic may read a register,
1498614990
call a helper function, read from an alternate memory space, or perform
1498714991
other operations necessary to locate the TLS area. Not all targets support
14988-
this intrinsic.
14992+
this intrinsic. The address space must be the :ref:`globals address space
14993+
<globals_addrspace>`.
1498914994

1499014995
'``llvm.call.preallocated.setup``' Intrinsic
1499114996
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)