llvm/llvm/docs/AMDGPU/gfx11_msg_b8ff6d.rst

..
    **************************************************
    *                                                *
    *   Automatically generated file, do not edit!   *
    *                                                *
    **************************************************

.. _amdgpu_synid_gfx11_msg_b8ff6d:

msg
===

A 16-bit message code. The bits of this operand have the following meaning:

    ============ =============================== ===============
    Bits         Description                     Value Range
    ============ =============================== ===============
    6:0          Message *type*.                 0..127
    7:7          Must be 1.                      1
    15:8         Unused.                         \-
    ============ =============================== ===============

    This operand may be specified as one of the following:

    * An :ref:`integer_number<amdgpu_synid_integer_number>` or an :ref:`absolute_expression<amdgpu_synid_absolute_expression>`. The value must be in the range from 0 to 0xFFFF.
    * A *sendmsg* value which is described below.

    ==================================== ====================================================
    Sendmsg Value Syntax                 Description
    ==================================== ====================================================
    sendmsg(MSG_RTN_GET_DOORBELL)        Get doorbell ID.
    sendmsg(MSG_RTN_GET_DDID)            Get Draw/Dispatch ID.
    sendmsg(MSG_RTN_GET_TMA)             Get TMA value.
    sendmsg(MSG_RTN_GET_TBA)             Get TBA value.
    sendmsg(MSG_RTN_GET_REALTIME)        Get REALTIME value.
    sendmsg(MSG_RTN_SAVE_WAVE)           Report that this wave is ready to be context-saved.
    ==================================== ====================================================

Examples:

.. parsed-literal::

    s_sendmsg_rtn_b32 s0, 132
    s_sendmsg_rtn_b32 s0, sendmsg(MSG_GET_REALTIME)