U
    luf                     @   sV   d Z ddlmZmZ ddlmZmZmZmZm	Z	m
Z
 ddlZdgZG dd deZdS )z
    pygments.lexers.amdgpu
    ~~~~~~~~~~~~~~~~~~~~~~

    Lexers for the AMDGPU ISA assembly.

    :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
    )
RegexLexerwords)NameTextKeyword
WhitespaceNumberCommentNAMDGPULexerc                   @   s   e Zd ZdZdZdgZdgZejZ	dde
fdefdejfd	efd
ejfdejfdejfdejfdejfedddejfdefdejfdefdejfdejfdejfdejfgiZdS )r
   z:
    For AMD GPU assembly.

    .. versionadded:: 2.8
    ZAMDGPUZamdgpuz*.isarootz\s+z[\r\n]+z(([a-z_0-9])*:([a-z_0-9])*)z(\[|\]|\(|\)|,|\:|\&)z([;#]|//).*?\nz0((s_)?(scratch|ds|buffer|flat|image)_[a-z0-9_]+)z	(_lo|_hi)z(vmcnt|lgkmcnt|expcnt)z(attr[0-9].[a-z]))opZvaddrZvdataoffZsoffsetZsrsrcformatoffsetZoffenZidxenZglcZdlcZslcZtfeZldsZlitZunormz\b)suffixz(label_[a-z0-9]+)z
(_L[0-9]*)z(s|v)_[a-z0-9_]+z(v[0-9.]+|vcc|exec|v)z
s[0-9.]+|sz[0-9]+\.[^0-9]+z(0[xX][a-z0-9]+)|([0-9]+)N)__name__
__module____qualname____doc__namealiases	filenamesre
IGNORECASEflagsr   r   r   	Attributer	   Singler   ZReservedVariabler   r   ZFloatZIntegertokens r   r   :/tmp/pip-unpacked-wheel-7eq1ciah/pygments/lexers/amdgpu.pyr
      s:   )r   Zpygments.lexerr   r   Zpygments.tokenr   r   r   r   r   r	   r   __all__r
   r   r   r   r    <module>   s
   
 