
    Mh                     d    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e          ZdS )z
    pygments.lexers.amdgpu
    ~~~~~~~~~~~~~~~~~~~~~~

    Lexers for the AMDGPU ISA assembly.

    :copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
    )
RegexLexerwords)NameTextKeyword
WhitespaceNumberCommentNAMDGPULexerc                   4   e Zd ZdZdZdgZdgZdZd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          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.
    AMDGPUamdgpuz*.isaz)https://gpuopen.com/amd-isa-documentationz2.8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]))opvaddrvdataoffsoffsetsrsrcformatoffsetoffenidxenglcdlcslctfeldslit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urlversion_addedre
IGNORECASEflagsr   r   r   	Attributer
   Singler   ReservedVariabler   r	   FloatIntegertokens     V/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/pygments/lexers/amdgpu.pyr   r      s         DjG	I
5CMME 	Z +T^<%t,/@'BRS4=)&7!4>2U   )./ / / 15@ "7+DM* '*%t}5DM*.)6>:)
FFFr6   )r%   pygments.lexerr   r   pygments.tokenr   r   r   r   r	   r
   r+   __all__r   r5   r6   r7   <module>r;      s     - , , , , , , , K K K K K K K K K K K K K K K K 				/# # # # #* # # # # #r6   