+
    ғLjA                     0   ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIHtHt ^ RI	H
t
 ^ RIHt ^ RIHt ^ RIHt ]
! R^d^ 4      t]P$                  P'                  ]4      t]P$                  P-                  ]R4      t ! R	 R
]4      tR tR/ ]3R ltR tR tR# )    N)	ASTSourcemake_backend)	GPUTarget)GluonASTSource)create_function_from_signature)ircuda	FileCheckc                   >   a a ] tR t^t oV 3R ltV 3R ltRtVtV ;t# )
MatchErrorc                2   < \         SV `  V4       W n        R # N)super__init__
module_str)selfmessager   	__class__s   &&&=/app/.local/lib/python3.14/site-packages/triton/_filecheck.pyr   MatchError.__init__   s    !$    c                >   < \         SV `  4        R V P                   2# )
)r   __str__r   )r   r   s   &r   r   MatchError.__str__   s!    '/#$Bt&788r   )r   )	__name__
__module____qualname____firstlineno__r   r   __static_attributes____classdictcell____classcell__)r   __classdict__s   @@r   r   r      s     %9 9r   r   c           	         \         P                  ! 4       ;_uu_ 4       p\        P                  P	                  VR 4      p\        VR4      ;_uu_ 4       pVP                  V4       RRR4       \        P                  P	                  VR4      p\        VR4      ;_uu_ 4       pVP                  V4       RRR4        \        P                  ! \        VRVR.\        P                  R7        RRR4       R#   + '       g   i     L; i  + '       g   i     L^; i  \        P                   d,   pTP                  P                  R4      p\        T4      hRp?ii ; i  + '       g   i     R# ; i)modulewNexpectedz--input-filez--dump-input-context=50)stderrunicode_escape)tempfileTemporaryDirectoryospathjoinopenwrite
subprocesscheck_outputfilecheck_pathSTDOUTCalledProcessErroroutputdecode
ValueError)	namer   check_templatetempdirtemp_moduletemptemp_expectederrordecodeds	   &&&      r   run_filecheckrA   #   s   		$	$	&	&'ggll7H5+s##tJJz" $ Wj9-%%JJ~& &	&##Mfg!((* 
'	&## &% ,, 	&ll))*:;GW%%	& 
'	&	&sY   5EC6	%<E!D		3E</D6DE	DEE1&EEEE0	c                    R V9  d   \        V4      pRVR &   \        V4      p\        V P                  V P                  V4      pV! V/ VB w  rgpV P                  WBWgV4      w  rrV P                  4       '       d   \        M\        pV! W	W4      p\        P                  ! 4       p\        P                  ! V4       VP                  V4       VP                  V4      pVP                  4       pVP                  W8VVV4      pV# )sanitize_overflowF)dictr   r   	signatureparams
_pack_argsis_gluonr   r   r   contextload_dialectsget_codegen_implementationget_module_mapmake_ir)	kernel_fnargskwargstargetbackendbinder
bound_argsspecializationoptionsrE   
constexprsattrs
source_clssrcrI   codegen_fns
module_mapr%   s   &&&&              r   
run_parserr]   6   s    &(f&+"#6"G+F +1$*A&*A'J,5,@,@R\nu,v)G
#,#5#5#7#7YJ
Y:
=CjjlGW'"44W=K'')J[[+z7KFMr   c                    \        V \        P                  P                  4      '       g   Q h\        P
                  ! V P                  4      pVf   \        R4      h\        V 4      p\        RVP                  4       V4       R # )Nz=kernel function must have a docstring with FileCheck templateplaceholder)
isinstancetritonruntimeJITFunctioninspect	getsourcefnr8   r]   rA   str_nodebug)rN   r:   mlir_modules   &  r   run_filecheck_testri   P   sd    i!;!;<<<<&&y||4NXYYY'K-!8!8!:NKr   c                 F   a  \         P                  ! S 4      V 3R  l4       pV# )c                     < \        S 4       R # r   )ri   )rf   s   r   test_fnfilecheck_test.<locals>.test_fn\   s    2r   )	functoolswraps)rf   rl   s   f r   filecheck_testrp   Z   s%    __R  Nr    )rn   r,   rd   r1   r*   ra   triton.compilerr   r   triton.backends.compilerr   "triton.experimental.gluon._runtimer   triton.runtime.jitr   triton._C.libtritonr   stub_targetr-   dirname__file__
triton_dirr.   r3   r8   r   rA   r]   ri   rp   rq   r   r   <module>r{      s     	     3 . = = " R(WW__X&
j+69 9&&  ""[ 4Lr   