σ
^c           @   sί  d  d@ d     YZ  e  d  Z e  d  Z e  d  Z e  d  Z e  d d d Z e  d	 d d
 Z e  d d d Z e  d  Z e  d  Z	 e  d  Z
 e  d  Z e  d  Z e  d  Z e  d d d Z e  d d d Z e  d  Z e  d  Z e  d  Z e  d  Z e  d  Z e  d  Z e  d  Z e  d  Z e  d  Z e  d   Z e  d!  Z e  d"  Z e  d#  Z e  d$  Z e  d%  Z e  d&  Z e  d'  Z  e  d(  Z! e  d)  Z" e  d*  Z# e  d+  Z$ e  d,  Z% e  d-  Z& e  d.  Z' e  d/  Z( e  d0  Z) e  d1  Z* e  d2  Z+ e  d3  Z, e  d4  Z- e  d5  Z. e  d6  Z/ e  d7  Z0 e  d8  Z1 e  d9  Z2 e  d:  Z3 e  d;  Z4 e  d<  Z5 e e e. e e e	 e
 f Z6 d= dA d>     YZ7 d? S(B   t	   Extensionc           B   sz   e  Z d d   Z d   Z d   Z d   Z d   Z d   Z e	 d    Z
 e	 d    Z d   Z d	   Z d
   Z RS(   c         C   sL   t  | t  s t d   | |  _ | d  k r? |  j |  _ n	 | |  _ d  S(   Ns   name must be a string(   t
   isinstancet   strt   AssertionErrort   namet   Nonet	   safe_name(   t   selfR   R   (    (    s?   /torch/pytorch/third_party/python-peachpy/peachpy/x86_64/isa.pyt   __init__   s
    	c         C   s   t  |  j  S(   N(   t   hashR   (   R   (    (    s?   /torch/pytorch/third_party/python-peachpy/peachpy/x86_64/isa.pyt   __hash__   s    c         C   s   |  j  | j  k S(   N(   R   (   R   t   other(    (    s?   /torch/pytorch/third_party/python-peachpy/peachpy/x86_64/isa.pyt   __eq__   s    c         C   s   |  j  | j  k S(   N(   R   (   R   R   (    (    s?   /torch/pytorch/third_party/python-peachpy/peachpy/x86_64/isa.pyt   __ne__   s    c         C   s   | |  j  k S(   N(   t   prerequisites(   R   R   (    (    s?   /torch/pytorch/third_party/python-peachpy/peachpy/x86_64/isa.pyt   __gt__   s    c         C   s   |  | j  k S(   N(   R   (   R   R   (    (    s?   /torch/pytorch/third_party/python-peachpy/peachpy/x86_64/isa.pyt   __lt__   s    c         C   sq  i5 t  f d 6t  t f d 6t f d 6t f d 6t t f d 6t t t t f d 6t t t t t f d 6t t	 f d 6t t t
 f d	 6t t t
 t f d
 6t t t
 t t f d 6t t t
 t t t f d 6t t t
 t t t f d 6t t t
 t t t t f d 6t t t
 t t t t t f d 6t t t
 t t t t t t f	 d 6t t t
 t t t t t t f	 d 6t f d 6t t f d 6t f d 6t t t
 t t t t t t f	 d 6t t t
 t t t t t t t f
 d 6t t t
 t t t t t t t t t t f d 6t t t
 t t t t t t t f
 d 6t t t
 t t t t t t t f
 d 6t t t
 t t t t t t t f
 d 6t t t
 t t t t t t t t t t t f d 6t t t
 t t t t t t t t t t t t f d 6t t t
 t t t t t t t t t t t t f d 6t t t
 t t t t t t t t t t t t f d 6t t t
 t t t t t t t t t t t t  f d 6t t t
 t t t t t t t t t t t t! f d  6t t t
 t t t t t t t t t t t t" f d! 6t t t
 t t t t t t t t t t t t# f d" 6t t t
 t t t t t t t t t t t t$ f d# 6t t t
 t t t t t t t t t t t t% f d$ 6t t t
 t t t t t t t t t t t t& f d% 6t t t
 t t t t t t t t t t t t' f d& 6t f d' 6t f d( 6t( f d) 6t) f d* 6t) t* f d+ 6t+ f d, 6t, f d- 6t- f d. 6t. f d/ 6t/ f d0 6t0 f d1 6t1 f d2 6t1 t2 f d3 6t3 f d4 6t4 f d5 6|  j5 S(6   Nt   RDTSCt   RDTSCPt   CPUIDt   MMXs   MMX+s   3dnow!s   3dnow!+t   FEMMSt   SSEt   SSE2t   SSE3t   SSSE3t   SSE4As   SSE4.1s   SSE4.2t   AESt	   PCLMULQDQt   RDRANDt   RDSEEDt   SHAt   AVXt   F16Ct   AVX2t   XOPt   FMA3t   FMA4t   AVX512Ft   AVX512BWt   AVX512DQt   AVX512VLt   AVX512CDt   AVX512PFt   AVX512ERt
   AVX512VBMIt
   AVX512IFMAt   AVX512VPOPCNTDQt   AVX512_4VNNIWt   AVX512_4FMAPSt   PREFETCHt	   PREFETCHWt   PREFETCHWT1t   CLFLUSHt
   CLFLUSHOPTt   CLWBt   CLZEROt   CMOVt   POPCNTt   LZCNTt   MOVBEt   BMIt   BMI2t   TBMt   ADX(6   t   rdtsct   rdtscpt   cpuidt   mmxt   mmx_plust   three_d_nowt   prefetcht	   prefetchwt   three_d_now_plust   femmst   sset   sse2t   sse3t   ssse3t   sse4at   sse4_1t   sse4_2t   aest	   pclmulqdqt   rdrandt   rdseedt   shat   avxt   f16ct   fma3t   avx2t   xopt   fma4t   avx512ft   avx512bwt   avx512dqt   avx512vlt   avx512cdt   avx512pft   avx512ert
   avx512vbmit
   avx512ifmat   avx512vpopcntdqt   avx512_4vnniwt   avx512_4fmapst   prefetchwt1t   clflusht
   clflushoptt   clwbt   clzerot   cmovt   popcntt   lzcntt   movbet   bmit   bmi2t   tbmt   adxR   (   R   (    (    s?   /torch/pytorch/third_party/python-peachpy/peachpy/x86_64/isa.pyR      s    


""

"%.%%%1'''''''''''












c         C   s  i5 t  f d 6t  t f d 6t f d 6t f d 6t t f d 6t t f d 6t t t f d 6t f d 6t f d	 6t t	 f d
 6t t	 t
 f d 6t t	 t
 t f d 6t t	 t
 t f d 6t t	 t
 t t f d 6t t	 t
 t t t f d 6t f d 6t f d 6t f d 6t t f d 6t f d 6t f d 6t f d 6t t f d 6t f d 6t f d 6t f d 6t t t t t f d 6t t t t t t f d 6t t t t t t f d 6t t t t t t f d 6t t t t t t f d 6t t t t t t f d  6t t t t t t  f d! 6t t t t t t! f d" 6t t t t t t" f d# 6t t t t t t# f d$ 6t t t t t t$ f d% 6t t t t t t% f d& 6t& f d' 6t' f d( 6t( f d) 6t) f d* 6t) t* f d+ 6t+ f d, 6t, f d- 6t- f d. 6t. f d/ 6t/ f d0 6t0 f d1 6t1 f d2 6t1 t2 f d3 6t3 f d4 6t4 f d5 6|  j5 S(6   NR   R   R   R   s   MMX+s   3dnow!s   3dnow!+R   R   R   R   R   R   s   SSE4.1s   SSE4.2R   R   R   R   R   R    R!   R"   R#   R$   R%   R&   R'   R(   R)   R,   R+   R*   R-   R.   R/   R0   R1   R2   R3   R4   R5   R6   R7   R8   R9   R:   R;   R<   R=   R>   R?   R@   (6   RA   RB   RC   RD   RE   RF   RI   RJ   RK   RL   RM   RN   RO   RP   RQ   RR   RS   RT   RU   RV   RW   RX   RZ   R[   RY   R\   R]   R^   R_   R`   Rc   Rb   Ra   Rd   Re   Rf   Rg   Rh   RG   RH   Ri   Rj   Rk   Rl   Rm   Rn   Ro   Rp   Rq   Rr   Rs   Rt   Ru   R   (   R   (    (    s?   /torch/pytorch/third_party/python-peachpy/peachpy/x86_64/isa.pyt	   ancestorsb   sn    


























c         C   s   t  |  |  S(   N(   t
   Extensions(   R   t	   extension(    (    s?   /torch/pytorch/third_party/python-peachpy/peachpy/x86_64/isa.pyt   __add__   s    c         C   s   |  j  S(   N(   R   (   R   (    (    s?   /torch/pytorch/third_party/python-peachpy/peachpy/x86_64/isa.pyt   __str__   s    c         C   s
   t  |   S(   N(   R   (   R   (    (    s?   /torch/pytorch/third_party/python-peachpy/peachpy/x86_64/isa.pyt   __repr__’   s    N(   t   __name__t
   __module__R   R   R
   R   R   R   R   t   propertyR   Rv   Ry   Rz   R{   (    (    (    s?   /torch/pytorch/third_party/python-peachpy/peachpy/x86_64/isa.pyR       s   					E:		R   R   R   R   s   MMX+R   t   MMXPluss   3dnow!t   3dnows   3dnow!+t	   3dnowPlusR   R   R   R   R   R   s   SSE4.1t   SSE4_1s   SSE4.2t   SSE4_2R   R   R   R   R   R    R"   R&   R+   R*   R,   R(   R'   R)   R.   R-   R/   R0   R1   R2   R3   R4   R5   R6   R7   R8   R#   R!   R$   R%   R9   R:   R;   R<   R=   R>   R?   R@   Rw   c           B   sY   e  Z d    Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z	 d   Z
 RS(	   c         G   s   t    |  _ x | D]z } | d  k sF t | t t f  sF t d   t | t  rk |  j j | j  q t | t  r |  j j |  q q Wd  S(   Ns7   Each argument must be an Extension or Extensions object(   t   sett
   extensionsR   R   R    Rw   R   t   add(   R   t   argsRx   (    (    s?   /torch/pytorch/third_party/python-peachpy/peachpy/x86_64/isa.pyR   ή   s    $	c         C   sl   t  t t |  j    } xJ | D]B } x9 | j D]. } | | k r2 | | k r2 | j |  q2 q2 Wq" W| S(   N(   t   listt   reversedt   sortedR   Rv   t   remove(   R   R   Rx   t   ancestor(    (    s?   /torch/pytorch/third_party/python-peachpy/peachpy/x86_64/isa.pyt   minifyθ   s    c         C   s   t  | |  j  S(   N(   Rw   R   (   R   Rx   (    (    s?   /torch/pytorch/third_party/python-peachpy/peachpy/x86_64/isa.pyRy   π   s    c         C   sD   t  |  j  } | | k r% | | =n t d j |    t |   S(   Ns"   Extension set does not contain {0}(   R   R   t   KeyErrort   formatRw   (   R   Rx   R   (    (    s?   /torch/pytorch/third_party/python-peachpy/peachpy/x86_64/isa.pyt   __sub__σ   s
    
c         C   s"   d j  t t t |  j      S(   Ns   , (   t   joinR   t   mapR   R   (   R   (    (    s?   /torch/pytorch/third_party/python-peachpy/peachpy/x86_64/isa.pyRz   ϋ   s    c         C   s   | |  j  k S(   N(   R   (   R   Rx   (    (    s?   /torch/pytorch/third_party/python-peachpy/peachpy/x86_64/isa.pyt   __contains__ώ   s    c         C   s   t  |  j  S(   N(   t   lenR   (   R   (    (    s?   /torch/pytorch/third_party/python-peachpy/peachpy/x86_64/isa.pyt   __len__  s    c         C   s   |  j  S(   N(   R   (   R   (    (    s?   /torch/pytorch/third_party/python-peachpy/peachpy/x86_64/isa.pyt   __not__  s    c         C   s   t  |  j  S(   N(   t   iterR   (   R   (    (    s?   /torch/pytorch/third_party/python-peachpy/peachpy/x86_64/isa.pyt   __iter__  s    (   R|   R}   R   R   Ry   R   Rz   R   R   R   R   (    (    (    s?   /torch/pytorch/third_party/python-peachpy/peachpy/x86_64/isa.pyRw   έ   s   	
							N(    (    (8   R    RA   RB   RC   RD   RE   RF   RI   RJ   RK   RL   RM   RN   RO   RP   RQ   RR   RS   RT   RU   RV   RW   RZ   R]   Rb   Ra   Rc   R_   R^   R`   Re   Rd   Rf   Rg   Rh   RG   RH   Ri   Rj   Rk   Rl   Rm   R[   RX   RY   R\   Rn   Ro   Rp   Rq   Rr   Rs   Rt   Ru   t   defaultRw   (    (    (    s?   /torch/pytorch/third_party/python-peachpy/peachpy/x86_64/isa.pyt   <module>   sn    