Skip to content

Commit b68b76d

Browse files
committed
[squashme] Add docs for llvm.launder.alignment
1 parent feaed6c commit b68b76d

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

llvm/docs/LangRef.rst

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26826,6 +26826,38 @@ Returns another pointer that aliases its argument but which has no associated
2682626826
``invariant.group`` metadata.
2682726827
It does not read any memory and can be speculated.
2682826828

26829+
'``llvm.launder.alignment``' Intrinsic
26830+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26831+
26832+
Syntax:
26833+
"""""""
26834+
This is an overloaded intrinsic. The returned pointer must belong to the same
26835+
address space as the argument.
26836+
26837+
::
26838+
26839+
declare ptr @llvm.launder.alignment.p0(ptr <ptr>)
26840+
26841+
Overview:
26842+
"""""""""
26843+
26844+
The '``llvm.launder.alignment``' intrinsic can be used when the informations
26845+
regarding the alignment of the type the argument points to must be removed, so
26846+
to block unwanted optimizations.
26847+
26848+
26849+
Arguments:
26850+
""""""""""
26851+
26852+
The ``llvm.launder.alignment`` takes only one argument, which is a pointer
26853+
to the memory.
26854+
26855+
Semantics:
26856+
""""""""""
26857+
26858+
Returns another pointer that aliases its argument but which has no associated
26859+
alignment metadata.
26860+
It does not read any memory and can be speculated.
2682926861

2683026862

2683126863
.. _constrainedfp:

0 commit comments

Comments
 (0)