+
    ;i                         ^ RI HtHt ^ RIHtHtHt ^ RIHt ^ RI	H
t
 ^ RIHtHtHtHt ^ RIHtHtHt ^ RIHt ^ RIHt  ! R	 R
]4      t ! R R]4      tR# )    )CompilerDefaultPassBuilder)FunctionPassAnalysisPassregister_pass)InlineInlinables)IRLegalization)jitobjmodenjitcfunc)typespostprocerrors)
FunctionIR)TestCasec                   D   a a ] tR t^t oV 3R ltR tR tR tRtVt	V ;t
# )TestCustomPipelinec                `   <a \         \        V `  4         ! V3R  lR\        4      oSV n        R# )c                   H   <a a ] tR t^t o. tVV 3R ltVV 3R ltRtVtV ;t	# )0TestCustomPipeline.setUp.<locals>.CustomPipelinec                X   < V P                   P                  V4       \        SV `  V4      # N)custom_pipeline_cacheappendsupercompile_extra)selffuncCustomPipeline	__class__s   &&W/var/www/html/photoedit/myenv/lib/python3.14/site-packages/numba/tests/test_pipeline.pyr   >TestCustomPipeline.setUp.<locals>.CustomPipeline.compile_extra   s)    **11$7^T@FF    c                b   < V P                   P                  V4       \        SV `  ! V.VO5/ VB # r   )r   r   r   
compile_ir)r   func_irargskwargsr    r!   s   &&*,r"   r&   ;TestCustomPipeline.setUp.<locals>.CustomPipeline.compile_ir   s>    **11':^T=.".&,. .r$    )
__name__
__module____qualname____firstlineno__r   r   r&   __static_attributes____classdictcell____classcell__)r!   __classdict__r    s   @@r"   r    r      s     $&!G
. .r$   r    N)r   r   setUpr   pipeline_class)r   r    r!   s   &@r"   r4   TestCustomPipeline.setUp   s'     $-/	.X 	. -r$   c                   V P                  V P                  P                  . 4       \        V P                  R 7      R 4       pV P	                  V! ^4      ^4       V P                  V P                  P                  VP
                  .4       R# )r5   c                     V # r   r+   xs   &r"   foo8TestCustomPipeline.test_jit_custom_pipeline.<locals>.foo$       Hr$   N)assertListEqualr5   r   r
   assertEqualpy_funcr   r<   s   & r"   test_jit_custom_pipeline+TestCustomPipeline.test_jit_custom_pipeline!   sv    T00FFK	D//	0	 
1	 	Q#T00FF!kk]	,r$   c                b   V P                  V P                  P                  . 4       \        \        P
                  ! \        P
                  4      V P                  R 7      R 4       pV P                  V! ^4      ^4       V P                  V P                  P                  VP                  .4       R# )r8   c                     V # r   r+   r:   s   &r"   r<   :TestCustomPipeline.test_cfunc_custom_pipeline.<locals>.foo/   r>   r$   N)r?   r5   r   r   r   int64r@   __wrapped__rB   s   & r"   test_cfunc_custom_pipeline-TestCustomPipeline.test_cfunc_custom_pipeline,   s    T00FFK	u{{5;;'8K8K	L	 
M	 	Q#T00FF!oo.	0r$   c                    V P                  V P                  P                  . 4       \        V P                  R 7      R 4       p^{pV P	                  V! V4      V^,           4       V P	                  \        V P                  P                  4      ^4       V P                  P                  ^ ,          pV P                  W1P                  4       V P                  P                  ^,          pV P                  V\        4       R# )r8   c                     \        R R7      ;_uu_ 4        V \        ^4      ,          p RRR4       V #   + '       g   i     T # ; i)intpr:   N)r   intr:   s   &r"   r<   <TestCustomPipeline.test_objmode_custom_pipeline.<locals>.foo:   s2    6""SX #H #"Hs	   2A	N)
r?   r5   r   r
   r@   lenassertIsrA   assertIsInstancer   )r   r<   argfirstseconds   &    r"   test_objmode_custom_pipeline/TestCustomPipeline.test_objmode_custom_pipeline7   s    T00FFK	D//	0	 
1	
 S37+T00FFGK##99!<e[[)$$::1=fj1r$   r8   )r,   r-   r.   r/   r4   rC   rJ   rW   r0   r1   r2   )r!   r3   s   @@r"   r   r      s     -(	,	02 2r$   r   c                   6   a  ] tR t^Lt o RR ltR tR tRtV tR# )TestPassManagerFunctionalityNc                   aaa V P                  SRJ4       V P                  SRJ4       \        RRR7       ! V3R lRS4      4       o ! VV3R lR\        4      pV# )zt
Creates a new compiler pipeline with the _InjectDelsPass injected after
the pass supplied in kwarg 'inject_after'.
NF)mutates_CFGanalysis_onlyc                   X   <a  ] tR t^Vt o RtR]!  Z4      ,          tV3R ltR tRt	V t
R# )LTestPassManagerFunctionality._create_pipeline_w_del.<locals>._InjectDelsPassz,
This pass injects ir.Del nodes into the IR
zinject_dels_%sc                *   < SP                  V 4       R # r   )__init__)r   bases   &r"   ra   UTestPassManagerFunctionality._create_pipeline_w_del.<locals>._InjectDelsPass.__init__]   s    d#r$   c                j    \         P                  ! VP                  4      pVP                  R R7       R # )T)	emit_dels)r   PostProcessorr'   run)r   statepps   && r"   run_passUTestPassManagerFunctionality._create_pipeline_w_del.<locals>._InjectDelsPass.run_pass`   s'    ++EMM:&r$   r+   N)r,   r-   r.   r/   __doc__str_namera   rj   r0   r1   )r3   rb   s   @r"   _InjectDelsPassr_   V   s)      %s4y0E$ r$   ro   c                   0   <a  ] tR t^et o VV3R ltRtV tR# )ITestPassManagerFunctionality._create_pipeline_w_del.<locals>.TestCompilerc                   < \         P                  ! V P                  4      pVP                  SS4       VP	                  4        V.# r   )r   define_nopython_pipelinerh   add_pass_afterfinalize)r   pmro   inject_afters   & r"   define_pipelinesZTestPassManagerFunctionality._create_pipeline_w_del.<locals>.TestCompiler.define_pipelinesg   s7    '@@L!!/<@tr$   r+   N)r,   r-   r.   r/   rx   r0   r1   )r3   ro   rw   s   @r"   TestCompilerrq   e   s      r$   rz   )
assertTruer   r   )r   rb   rw   rz   ro   s   &ff @r"   _create_pipeline_w_del3TestPassManagerFunctionality._create_pipeline_w_delN   s`    
 	D01D()	5	>	d 	 
?		 	8 	 r$   c                f   V P                  \        \        4      p\        VR 7      R 4       pV P	                  \
        P                  4      ;_uu_ 4       pV! ^
4       RRR4       \        XP                  4      pV P                  RV4       V P                  RV4       R#   + '       g   i     LK; i)r8   c                     V ^,           #    r+   r:   s   &r"   r<   YTestPassManagerFunctionality.test_compiler_error_on_ir_del_from_functionpass.<locals>.foos       q5Lr$   NzIllegal IR, del found at:zdel x)
r|   r   r   r   assertRaisesr   CompilerErrorrm   	exceptionassertIn)r   new_compilerr<   raiseserrstrs   &    r"   /test_compiler_error_on_ir_del_from_functionpassLTestPassManagerFunctionality.test_compiler_error_on_ir_del_from_functionpasso   s    22<3CE 
\	*	 
+	 v3344G 5 V%%&16:gv& 54s   	B  B0	c                    V P                  \        \        4      p\        VR 7      R 4       pV P	                  V! ^
4      VP                  ^
4      4       R# )r8   c                     V ^,           # r   r+   r:   s   &r"   r<   ]TestPassManagerFunctionality.test_no_compiler_error_on_ir_del_after_legalization.<locals>.foo   r   r$   N)r|   r   r	   r   r{   rA   )r   r   r<   s   &  r"   3test_no_compiler_error_on_ir_del_after_legalizationPTestPassManagerFunctionality.test_no_compiler_error_on_ir_del_after_legalization   sO     22<3AC 
\	*	 
+	 	BR1r$   r+   )NN)	r,   r-   r.   r/   r|   r   r   r0   r1   )r3   s   @r"   rZ   rZ   L   s     B' 2 2r$   rZ   N)numba.core.compilerr   r   numba.core.compiler_machineryr   r   r   numba.core.untyped_passesr   numba.core.typed_passesr	   numbar
   r   r   r   
numba.corer   r   r   numba.core.irr   numba.tests.supportr   r   rZ   r+   r$   r"   <module>r      sE    <: : 6 2 + + . . $ (=2 =2@C28 C2r$   