§
    `Štj+ˆ ã            
       ó  — d Z ddlZddlZddlZddlZddlZddlZddlZ G d„ d¦  «        Z G d„ d¦  «        Z	i Z
 G d„ d¦  «        Z G d	„ d
¦  «        Z G d„ d¦  «        Z G d„ d¦  «        Z G d„ dee	eeee¦  «        Zd„ ZdS )a  Provides the `CCompilerOpt` class, used for handling the CPU/hardware
optimization, starting from parsing the command arguments, to managing the
relation between the CPU baseline and dispatch-able features,
also generating the required C headers and ending with compiling
the sources with proper compiler's flags.

`CCompilerOpt` doesn't provide runtime detection for the CPU features,
instead only focuses on the compiler side, but it creates abstract C headers
that can be used later for the final runtime dispatching process.é    Nc                   óö  — e Zd ZdZdZdZdZdZej	         
                    ej	                             ej	                             e¦  «        ¦  «        d¦  «        Zi ZdZdZ e eddd	¬
¦  «         eddd¬
¦  «         eddd	¬
¦  «         eddd¬
¦  «         eddd¬
¦  «         eddd¬
¦  «        ¬¦  «        Z eddddddd¬¦  «        Z ed{i d eddd¬¦  «        “d eddd ¬!¦  «        “d" ed#dd$¬!¦  «        “d% ed&d"d'¬!¦  «        “d( ed)d%d*¬!¦  «        “d+ ed,d(d-¬!¦  «        “d. ed/d+¬0¦  «        “d1 ed2d.d3d¬4¦  «        “d5 ed6d1d7¬!¦  «        “d8 ed9d1d7¬!¦  «        “d: ed;d1¬0¦  «        “d< ed=d:¬0¦  «        “d> ed?d:¬0¦  «        “d@ edAdBddC¬D¦  «        “dE edFd@¬0¦  «        “dG edHdEdIdGd¬J¦  «        “dK edLdGdMdKd¬J¦  «        “dN edOdEdPdNddQ¬R¦  «        “dS edTdNdUdS¬V¦  «        “dW edXdNdYdWd¬J¦  «        “dZ ed[d\d]dZd¬J¦  «        “d^ ed_dZd`d^d¬J¦  «        “da eddbdc¬d¦  «        “de eddad¬f¦  «        “dg ed#deddh¬D¦  «        “di ed&dgddj¬D¦  «        “dk eddl¬m¦  «        “dn eddkd¬f¦  «        “do ed#dnd¬f¦  «        “dp eddq¬m¦  «        “dr eddp¬0¦  «        “ds ed#dr¬0¦  «        “dt ed&dud¬f¦  «        “dv ed)dt¬0¦  «        “dw ed,dt¬0¦  «        “dx ed/dv¬0¦  «        “ŽZdy„ Zdz„ ZdS )|Ú_ConfigaÏ  An abstract class holds all configurable attributes of `CCompilerOpt`,
    these class attributes can be used to change the default behavior
    of `CCompilerOpt` in order to fit other requirements.

    Attributes
    ----------
    conf_nocache : bool
        Set True to disable memory and file cache.
        Default is False.

    conf_noopt : bool
        Set True to forces the optimization to be disabled,
        in this case `CCompilerOpt` tends to generate all
        expected headers in order to 'not' break the build.
        Default is False.

    conf_cache_factors : list
        Add extra factors to the primary caching factors. The caching factors
        are utilized to determine if there are changes had happened that
        requires to discard the cache and re-updating it. The primary factors
        are the arguments of `CCompilerOpt` and `CCompiler`'s properties(type, flags, etc).
        Default is list of two items, containing the time of last modification
        of `ccompiler_opt` and value of attribute "conf_noopt"

    conf_tmp_path : str,
        The path of temporary directory. Default is auto-created
        temporary directory via ``tempfile.mkdtemp()``.

    conf_check_path : str
        The path of testing files. Each added CPU feature must have a
        **C** source file contains at least one intrinsic or instruction that
        related to this feature, so it can be tested against the compiler.
        Default is ``./distutils/checks``.

    conf_target_groups : dict
        Extra tokens that can be reached from dispatch-able sources through
        the special mark ``@targets``. Default is an empty dictionary.

        **Notes**:
            - case-insensitive for tokens and group names
            - sign '#' must stick in the begin of group name and only within ``@targets``

        **Example**:
            .. code-block:: console

                $ "@targets #avx_group other_tokens" > group_inside.c

            >>> CCompilerOpt.conf_target_groups["avx_group"] = \
            "$werror $maxopt avx2 avx512f avx512_skx"
            >>> cco = CCompilerOpt(cc_instance)
            >>> cco.try_dispatch(["group_inside.c"])

    conf_c_prefix : str
        The prefix of public C definitions. Default is ``"NPY_"``.

    conf_c_prefix_ : str
        The prefix of internal C definitions. Default is ``"NPY__"``.

    conf_cc_flags : dict
        Nested dictionaries defining several compiler flags
        that linked to some major functions, the main key
        represent the compiler name and sub-keys represent
        flags names. Default is already covers all supported
        **C** compilers.

        Sub-keys explained as follows:

        "native": str or None
            used by argument option `native`, to detect the current
            machine support via the compiler.
        "werror": str or None
            utilized to treat warning as errors during testing CPU features
            against the compiler and also for target's policy `$werror`
            via dispatch-able sources.
        "maxopt": str or None
            utilized for target's policy '$maxopt' and the value should
            contains the maximum acceptable optimization by the compiler.
            e.g. in gcc ``'-O3'``

        **Notes**:
            * case-sensitive for compiler names and flags
            * use space to separate multiple flags
            * any flag will tested against the compiler and it will skipped
              if it's not applicable.

    conf_min_features : dict
        A dictionary defines the used CPU features for
        argument option ``'min'``, the key represent the CPU architecture
        name e.g. ``'x86'``. Default values provide the best effort
        on wide range of users platforms.

        **Note**: case-sensitive for architecture names.

    conf_features : dict
        Nested dictionaries used for identifying the CPU features.
        the primary key is represented as a feature name or group name
        that gathers several features. Default values covers all
        supported features but without the major options like "flags",
        these undefined options handle it by method `conf_features_partial()`.
        Default value is covers almost all CPU features for *X86*, *IBM/Power64*
        and *ARM 7/8*.

        Sub-keys explained as follows:

        "implies" : str or list, optional,
            List of CPU feature names to be implied by it,
            the feature name must be defined within `conf_features`.
            Default is None.

        "flags": str or list, optional
            List of compiler flags. Default is None.

        "detect": str or list, optional
            List of CPU feature names that required to be detected
            in runtime. By default, its the feature name or features
            in "group" if its specified.

        "implies_detect": bool, optional
            If True, all "detect" of implied features will be combined.
            Default is True. see `feature_detect()`.

        "group": str or list, optional
            Same as "implies" but doesn't require the feature name to be
            defined within `conf_features`.

        "interest": int, required
            a key for sorting CPU features

        "headers": str or list, optional
            intrinsics C header file

        "disable": str, optional
            force disable feature, the string value should contains the
            reason of disabling.

        "autovec": bool or None, optional
            True or False to declare that CPU feature can be auto-vectorized
            by the compiler.
            By default(None), treated as True if the feature contains at
            least one applicable flag. see `feature_can_autovec()`

        "extra_checks": str or list, optional
            Extra test case names for the CPU feature that need to be tested
            against the compiler.

            Each test case must have a C file named ``extra_xxxx.c``, where
            ``xxxx`` is the case name in lower case, under 'conf_check_path'.
            It should contain at least one intrinsic or function related to the test case.

            If the compiler able to successfully compile the C file then `CCompilerOpt`
            will add a C ``#define`` for it into the main dispatch header, e.g.
            ``#define {conf_c_prefix}_XXXX`` where ``XXXX`` is the case name in upper case.

        **NOTES**:
            * space can be used as separator with options that supports "str or list"
            * case-sensitive for all values and feature name must be in upper-case.
            * if flags aren't applicable, its will skipped rather than disable the
              CPU feature
            * the CPU feature will disabled if the compiler fail to compile
              the test file
    FNÚchecksÚNPY_ÚNPY__z-march=nativez-O3z-Werror)ÚnativeÚoptÚwerrorz-Werror=switch -Werrorz-xHostz/QxHostz/O3z/Werrorz/O2z/WXz-mcpu=a64fx)ÚgccÚclangÚiccÚiccwÚmsvcÚfcczSSE SSE2zSSE SSE2 SSE3Ú zVSX VSX2zNEON NEON_FP16 NEON_VFPV4 ASIMD)Úx86Úx64Úppc64Úppc64leÚs390xÚarmhfÚaarch64ÚSSEé   zxmmintrin.hÚSSE2)ÚinterestÚheadersÚimpliesé   zemmintrin.h)r   r   r   ÚSSE3é   zpmmintrin.hÚSSSE3é   ztmmintrin.hÚSSE41é   zsmmintrin.hÚPOPCNTé   zpopcntintrin.hÚSSE42é   )r   r   ÚAVXé   zimmintrin.h)r   r   r   Úimplies_detectÚXOPé	   zx86intrin.hÚFMA4é
   ÚF16Cé   ÚFMA3é   ÚAVX2é   ÚAVX512Fé   z	FMA3 AVX2ÚAVX512F_REDUCE)r   r   r,   Úextra_checksÚAVX512CDé   Ú
AVX512_KNLé(   zAVX512ER AVX512PF)r   r   ÚgroupÚdetectr,   Ú
AVX512_KNMé)   z)AVX5124FMAPS AVX5124VNNIW AVX512VPOPCNTDQÚ
AVX512_SKXé*   zAVX512VL AVX512BW AVX512DQzAVX512BW_MASK AVX512DQ_MASK)r   r   r?   r@   r,   r:   Ú
AVX512_CLXé+   Ú
AVX512VNNI)r   r   r?   r@   Ú
AVX512_CNLé,   zAVX512IFMA AVX512VBMIÚ
AVX512_ICLé-   zAVX512_CLX AVX512_CNLz(AVX512VBMI2 AVX512BITALG AVX512VPOPCNTDQÚ
AVX512_SPRé.   Ú
AVX512FP16ÚVSXz	altivec.hÚVSX_ASM)r   r   r:   ÚVSX2)r   r   r,   ÚVSX3ÚVSX3_HALF_DOUBLEÚVSX4ÚVSX4_MMAÚVXzvecintrin.h)r   r   ÚVXEÚVXE2ÚNEONz
arm_neon.hÚ	NEON_FP16Ú
NEON_VFPV4ÚASIMDzNEON_FP16 NEON_VFPV4ÚASIMDHPÚASIMDDPÚASIMDFHMc                 óp  — | j         ri S | j        p| j        }| j        p| j        p| j        }|�rƒ|�r€t          dwi dt          d¬¦  «        “dt          d¬¦  «        “dt          d¬¦  «        “dt          d	¬¦  «        “d
t          d¬¦  «        “dt          d¬¦  «        “dt          d¬¦  «        “dt          d¬¦  «        “dt          d¬¦  «        “dt          d¬¦  «        “dt          d¬¦  «        “dt          d¬¦  «        “dt          d¬¦  «        “dt          d¬¦  «        “dt          d¬¦  «        “d t          d!¬¦  «        “d"t          d#¬¦  «        “d$t          d%¬¦  «        “d&t          d'¬¦  «        “d(t          d)¬¦  «        “d*t          d+¬¦  «        “d,t          d-¬¦  «        “ŽS |�rp| j        �rht          dwi dt          d¬¦  «        “dt          d¬¦  «        “dt          d¬¦  «        “dt          d	¬¦  «        “d
t          d¬¦  «        “di “dt          d¬¦  «        “dt          d¬¦  «        “di “dt          d.¬/¦  «        “dt          d.¬/¦  «        “dt          d0d1¬2¦  «        “dt          dd1¬2¦  «        “dt          d3d4¬2¦  «        “dt          d5d4¬2¦  «        “d t          d6¬¦  «        “d"t          d7¬¦  «        “d$t          d8¬¦  «        “d&t          d9¬¦  «        “d(t          d:¬¦  «        “d*t          d;¬¦  «        “d,t          d<¬/¦  «        “ŽS |�rp| j        �rht          dwi dt          d=¬¦  «        “dt          d>¬¦  «        “dt          d?¬¦  «        “dt          d@¬¦  «        “d
t          dA¬¦  «        “di “dt          dB¬¦  «        “dt          dC¬¦  «        “di “dt          d.¬/¦  «        “dt          d.¬/¦  «        “dt          d0dD¬2¦  «        “dt          ddD¬2¦  «        “dt          d3dE¬2¦  «        “dt          d5dE¬2¦  «        “d t          dF¬¦  «        “d"t          dG¬¦  «        “d$t          dH¬¦  «        “d&t          dI¬¦  «        “d(t          dJ¬¦  «        “d*t          dK¬¦  «        “d,t          d<¬/¦  «        “ŽS |�r.| j	        �r&t          dwi d| j        rt          d=¬¦  «        ni “d| j        rt          d>¬¦  «        ni “di “di “d
i “dt          dL¬M¦  «        “di “dt          dC¬¦  «        “di “dt          dN¬M¦  «        “dt          dN¬M¦  «        “dt          d0dO¬2¦  «        “dt          dPdO¬2¦  «        “dt          dQdR¬2¦  «        “dt          dSdR¬2¦  «        “d t          dT¬/¦  «        “d"t          dT¬/¦  «        “d$t          dR¬¦  «        “d&i “d(i “d*i “d,t          dT¬/¦  «        “ŽS | j
        p| j        }|r�t          t          | j
        rdUndVdW¬2¦  «        t          dXdY¬Z¦  «        t          d[dY¬Z¦  «        t          d\dY¬Z¦  «        ¬]¦  «        }| j        r,d^|d_         d`<   dX|dU         d`<   da|db         d`<   dc|dd         d`<   |S | j        }|r@t          t          de¬¦  «        t          dfdY¬Z¦  «        t          dgdY¬Z¦  «        ¬h¦  «        }|S | j        r~|r|t          t          didj¬k¦  «        t          dldj¬k¦  «        t          dmdj¬k¦  «        t          dndj¬k¦  «        t          do¬¦  «        t          dp¬¦  «        t          dq¬¦  «        ¬r¦  «        S | j        rz|rxt          t          ds¬¦  «        t          dt¬¦  «        t          du¬¦  «        t          dv¬¦  «        t          do¬¦  «        t          dp¬¦  «        t          dq¬¦  «        ¬r¦  «        S i S )xa7  Return a dictionary of supported CPU features by the platform,
        and accumulate the rest of undefined options in `conf_features`,
        the returned dict has same rules and notes in
        class attribute `conf_features`, also its override
        any options that been set in 'conf_features'.
        r   z-msse)Úflagsr   z-msse2r    z-msse3r"   z-mssse3r$   z-msse4.1r&   z-mpopcntr(   z-msse4.2r*   z-mavxr1   z-mf16cr-   z-mxopr/   z-mfma4r3   z-mfmar5   z-mavx2r7   z-mavx512f -mno-mmxr;   z
-mavx512cdr=   z-mavx512er -mavx512pfrA   z/-mavx5124fmaps -mavx5124vnniw -mavx512vpopcntdqrC   z -mavx512vl -mavx512bw -mavx512dqrE   z-mavx512vnnirH   z-mavx512ifma -mavx512vbmirJ   z.-mavx512vbmi2 -mavx512bitalg -mavx512vpopcntdqrL   z-mavx512fp16z!Intel Compiler doesn't support it)Údisablez	F16C AVX2z-march=core-avx2)r   ra   zAVX2 AVX512CDz-march=common-avx512zAVX2 AVX512Fz-xKNLz-xKNMz-xSKYLAKE-AVX512z-xCASCADELAKEz-xCANNONLAKEz-xICELAKE-CLIENTzNot supported yetz	/arch:SSEz
/arch:SSE2z
/arch:SSE3z/arch:SSSE3z/arch:SSE4.1z/arch:SSE4.2z	/arch:AVXz/arch:CORE-AVX2z/Qx:COMMON-AVX512z/Qx:KNLz/Qx:KNMz/Qx:SKYLAKE-AVX512z/Qx:CASCADELAKEz/Qx:CANNONLAKEz/Qx:ICELAKE-CLIENTznmmintrin.h)r   zammintrin.hz
/arch:AVX2z	F16C FMA3zAVX2 AVX512CD AVX512_SKXz/arch:AVX512zAVX512F AVX512_SKXz MSVC compiler doesn't support itrQ   r   z-mvsxz-mcpu=power8F)ra   r,   z-mcpu=power9 -mtune=power9z-mcpu=power10 -mtune=power10)rO   rQ   rR   rT   z-maltivec -mvsxrO   ra   z-mcpu=power9rR   z-mcpu=power10rT   z-march=arch11 -mzvectorz-march=arch12z-march=arch13)rV   rW   rX   zNEON_FP16 NEON_VFPV4 ASIMDT)r   ÚautoveczNEON NEON_VFPV4 ASIMDzNEON NEON_FP16 ASIMDzNEON NEON_FP16 NEON_VFPV4z-march=armv8.2-a+fp16z-march=armv8.2-a+dotprodz-march=armv8.2-a+fp16fml)rY   rZ   r[   r\   r]   r^   r_   z
-mfpu=neonz"-mfpu=neon-fp16 -mfp16-format=ieeez-mfpu=neon-vfpv4z'-mfpu=neon-fp-armv8 -march=armv8-a+simd© )Úcc_nooptÚ	cc_on_x86Ú	cc_on_x64Ú	cc_is_gccÚcc_is_clangÚ	cc_is_fccÚdictÚ	cc_is_iccÚ
cc_is_iccwÚ
cc_is_msvcÚcc_on_ppc64leÚcc_on_ppc64Úcc_on_s390xÚcc_on_aarch64Úcc_on_armhf)ÚselfÚon_x86Úis_unixÚon_powerÚpartialÚon_zarchs         ú[/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/numpy/distutils/ccompiler_opt.pyÚconf_features_partialz_Config.conf_features_partialJ  sT  € ð Œ=ð 	àˆIà”Ð1 4¤>ˆØ”.ÐF DÔ$4ÐF¸¼ˆàñ 	
�gñ 	
¥dð '
ð '
ð '
Ý Ð(Ñ(Ô(Ð(ð'
å Ð)Ñ)Ô)Ð)ð'
õ  Ð)Ñ)Ô)Ð)ð'
õ  	Ð*Ñ*Ô*Ð*ð	'
õ
  
Ð+Ñ+Ô+Ð+ð'
õ  
Ð+Ñ+Ô+Ð+ð'
õ  
Ð+Ñ+Ô+Ð+ð'
õ  Ð(Ñ(Ô(Ð(ð'
õ  Ð)Ñ)Ô)Ð)ð'
õ  Ð(Ñ(Ô(Ð(ð'
õ  Ð)Ñ)Ô)Ð)ð'
õ  Ð(Ñ(Ô(Ð(ð'
õ  Ð)Ñ)Ô)Ð)ð'
õ Ð!5Ð6Ñ6Ô6Ð6ð'
õ  ,Ð/Ñ/Ô/Ð/ð'
õ  Ð$;Ð<Ñ<Ô<Ð<ð!'
õ" ØGðñ ô ð ð#'
õ( Ð$FÐGÑGÔGÐGð)'
õ*  NÐ3Ñ3Ô3Ð3ð+'
õ, Ð$?Ð@Ñ@Ô@Ð@ð-'
õ. ØFðñ ô ð ð/'
õ4  NÐ3Ñ3Ô3Ð3ð5'
ð  
ð8 ñ 	
�d”nñ 	
­Tð .
ð .
ð .
Ý Ð(Ñ(Ô(Ð(ð.
å Ð)Ñ)Ô)Ð)ð.
õ  Ð)Ñ)Ô)Ð)ð.
õ  	Ð*Ñ*Ô*Ð*ð	.
õ
  
Ð+Ñ+Ô+Ð+ð.
ð �Rð.
õ  
Ð+Ñ+Ô+Ð+ð.
õ  Ð(Ñ(Ô(Ð(ð.
ð �Rð.
õ Ð"EÐFÑFÔFÐFð.
õ Ð"EÐFÑFÔFÐFð.
õ Ø#Ð+=ðñ ô ð ð.
õ   Ð.@ÐAÑAÔAÐAð!.
õ$ Ø'Ð/Eðñ ô ð ð%.
õ* Ø&Ð.Dðñ ô ð ð+.
õ0  GÐ,Ñ,Ô,Ð,ð1.
õ2  GÐ,Ñ,Ô,Ð,ð3.
õ4 Ð$6Ð7Ñ7Ô7Ð7ð5.
õ6  OÐ4Ñ4Ô4Ð4ð7.
õ8  NÐ3Ñ3Ô3Ð3ð9.
õ: Ð$6Ð7Ñ7Ô7Ð7ð;.
õ< Ð&9Ð:Ñ:Ô:Ð:ð=.
ð '
ð@ ñ !	
�d”oñ !	
­dð !/
ð !/
ð !/
Ý Ð,Ñ,Ô,Ð,ð!/
å Ð-Ñ-Ô-Ð-ð!/
õ  Ð-Ñ-Ô-Ð-ð!/
õ  Ð.Ñ.Ô.Ð.ð	!/
õ
  Ð/Ñ/Ô/Ð/ð!/
ð �Rð!/
õ  Ð/Ñ/Ô/Ð/ð!/
õ  Ð,Ñ,Ô,Ð,ð!/
ð �Rð!/
õ Ð"EÐFÑFÔFÐFð!/
õ Ð"EÐFÑFÔFÐFð!/
õ Ø#Ð+<ðñ ô ð ð!/
õ  ØÐ&7ðñ ô ð ð!!/
õ( Ø'Ð/Bðñ ô ð ð)!/
õ. Ø&Ð.Aðñ ô ð ð/!/
õ4  IÐ.Ñ.Ô.Ð.ð5!/
õ6  IÐ.Ñ.Ô.Ð.ð7!/
õ8 Ð$8Ð9Ñ9Ô9Ð9ð9!/
õ: Ð$5Ð6Ñ6Ô6Ð6ð;!/
õ< Ð$4Ð5Ñ5Ô5Ð5ð=!/
õ> Ð$8Ð9Ñ9Ô9Ð9ð?!/
õ@ Ð&9Ð:Ñ:Ô:Ð:ðA!/
ð !(
ðD ñ (	
�d”oñ (	
­dð (/
ð (/
ð (/
Ø-1¬^ÐC•$˜[Ð)Ñ)Ô)Ð)Àøð(/
à/3¬~ÐE•4˜lÐ+Ñ+Ô+Ð+À2øð(/
ð �Rð(/
ð �Rð	(/
ð
 �Rð(/
õ  -Ð0Ñ0Ô0Ð0ð(/
ð �Rð(/
õ  Ð,Ñ,Ô,Ð,ð(/
ð �Rð(/
õ  -Ð0Ñ0Ô0Ð0ð(/
õ  -Ð0Ñ0Ô0Ð0ð(/
õ Ø#¨<ðñ ô ð ð(/
õ  Ø#¨<ðñ ô ð ð!(/
õ* Ø2¸.ðñ ô ð ð+(/
õ0 Ø,°Nðñ ô ð ð1(/
õ6 Ø:ðñ ô ð ð7(/
õ< Ø:ðñ ô ð ð=(/
õB  NÐ3Ñ3Ô3Ð3ðC(/
ðD ˜ðE(/
ðF ˜ðG(/
ðH ˜ðI(/
õJ Ø:ðñ ô ð ðK(/
ð ((
ðT Ô%Ð9¨Ô)9ˆØð 	ÝÝØ'+Ô'9ÐA˜V˜V¸rØ!ðñ ô õ Ø(¸ðñ ô õ Ø6Àuðñ ô õ Ø8Èðñ ô ðñ ô ˆGð Ôð ;Ø+<�˜”˜wÑ'Ø+9�˜” Ñ(Ø+9�˜” Ñ(Ø+:�˜” Ñ(àˆNàÔ#ˆØð 	ÝÝØ3ðñ ô õ Ø)¸%ðñ ô õ Ø)¸%ðñ ô ð
ñ 
ô 
ˆGð ˆNð Ôð 	
 'ð 	
µ$ÝØ4¸dðñ ô õ Ø/¸ðñ ô õ Ø.¸ðñ ô õ Ø3¸Tðñ ô õ Ø-ðñ ô õ Ø0ðñ ô õ Ø0ðñ ô ð'3
ñ 3
ô 3
ð ,
ð. Ôð 	
 ð 	
µÝØ"ðñ ô õ Ø:ðñ ô õ Ø(ðñ ô õ Ø?ðñ ô õ Ø-ðñ ô õ Ø0ðñ ô õ Ø0ðñ ô ð'1
ñ 1
ô 1
ð *
ð0 ˆ	ó    c                 ó  ‡‡— | j         €=dd lŠdd l}|                     ¦   «         Šˆˆfd„}t	          j        |¦  «         ‰| _         | j        €2t          j         	                    t          ¦  «        | j        g| _        d S d S )Nr   c                  óV   •— 	 ‰                       ‰¦  «         d S # t          $ r Y d S w xY w©N)ÚrmtreeÚOSError)ÚshutilÚtmps   €€rz   Úrm_tempz!_Config.__init__.<locals>.rm_temp@  sB   ø€ ðØ—M’M #Ñ&Ô&Ð&Ð&Ð&øÝð ð ð Ø�D�Dðøøøs   ƒ š
(§()Úconf_tmp_pathr‚   ÚtempfileÚmkdtempÚatexitÚregisterÚconf_cache_factorsÚosÚpathÚgetmtimeÚ__file__Úconf_nocache)rt   r†   r„   r‚   rƒ   s      @@rz   Ú__init__z_Config.__init__;  s¢   øø€ ØÔÐ%ØˆMˆMˆMØˆOˆOˆOØ×"Ò"Ñ$Ô$ˆCðð ð ð ð ð õ
 ŒO˜GÑ$Ô$Ð$Ø!$ˆDÔàÔ"Ð*å”× Ò ¥Ñ*Ô*ØÔ!ð'ˆDÔ#Ð#Ð#ð +Ð*r|   rd   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r�   Ú
conf_nooptrŠ   r…   r‹   rŒ   ÚjoinÚdirnameÚrealpathrŽ   Úconf_check_pathÚconf_target_groupsÚconf_c_prefixÚconf_c_prefix_rk   Úconf_cc_flagsÚconf_min_featuresÚconf_featuresr{   r�   rd   r|   rz   r   r      sÒ  € € € € € ð`ð `ðB €LØ€JØÐØ€MØ”g—l’lØ
Œ�Š˜œ×(Ò(¨Ñ2Ô2Ñ3Ô3°Xñô €Oð ÐØ€MØ€NØ�DØˆdð %ØØð
ñ 
ô 
ð �Ø$Øð .ð	
ñ 	
ô 	
ð ˆdØØØð
ñ 
ô 
ð
 ˆtØØØð
ñ 
ô 
ð
 ˆtØØØð
ñ 
ô 
ð
 ˆdØ"ØØð
ñ 
ô 
ðC&ñ &ô &€MðN ˜ØØØØØØØ3ðñ ô Ðð �Dð Zð Zð ZàˆdØ ð ð	
ñ 
ô 
ð 
ðZð �˜q¨%¸ÐGÑGÔGÐGðZð �˜q¨&¸-ÐHÑHÔHÐHðZð �˜q¨&¸-ÐHÑHÔHÐHðZð �˜q¨'¸=ÐIÑIÔIÐIðZð �˜q¨'Ð;KÐLÑLÔLÐLðZð �˜q¨(Ð3Ñ3Ô3Ð3ðZð �Ø °Ø ð
ñ 
ô 
ð 
ðZð$ �˜q¨%¸ÐGÑGÔGÐGð%Zð& �˜r¨5¸-ÐHÑHÔHÐHð'Zð( �˜r¨5Ð1Ñ1Ô1Ð1ð)Zð* �˜r¨6Ð2Ñ2Ô2Ð2ð+Zð, �˜r¨6Ð2Ñ2Ô2Ð2ð-Zð. �$Ø ¸UØ)ð
ñ 
ô 
ð 
ð/Zð6 �4 ¨YÐ7Ñ7Ô7Ð7ð7Zð8 �TØ Ð3FØ°ð
ñ 
ô 
ð 
ð9Zð@ �TØ Ø=Ø°ð
ñ 
ô 
ð 
ðAZðJ �TØ Ð3OØ°Ø6ð
ñ 
ô 
ð 
ðKZðT �TØ °\Øð
ñ 
ô 
ð 
ðUZð\ �TØ Ð5LØ°ð
ñ 
ô 
ð 
ð]Zðd �TØÐ!8Ø<Ø°ð
ñ 
ô 
ð 
ðeZðn �TØ °\Ø°ð
ñ 
ô 
ð 
ðoZðz ˆd˜A {ÀÐKÑKÔKÐKð{Zð~ ˆt˜Q¨¸eÐDÑDÔDÐDðZðB ˆt˜Q¨¸uØ!3ð5ñ 5ô 5ð 5ðCZðH ˆt˜Q¨¸uØ!+ð-ñ -ô -ð -ðIZðP ˆT˜1 mÐ4Ñ4Ô4Ð4ðQZðT ˆd˜A t¸EÐBÑBÔBÐBðUZðX ˆt˜Q¨¸eÐDÑDÔDÐDðYZð\ �˜a¨Ð6Ñ6Ô6Ð6ð]Zð^ �D !¨VÐ4Ñ4Ô4Ð4ð_Zðb �T 1¨kÐ:Ñ:Ô:Ð:ðcZðf �˜aÐ)?ÐPUÐVÑVÔVÐVðgZðj �$ ¨7Ð3Ñ3Ô3Ð3ðkZðn �$ ¨7Ð3Ñ3Ô3Ð3ðoZðr �4 ¨IÐ6Ñ6Ô6Ð6ðsZ€Mðvoð oð oðbð ð ð ð r|   r   c                   óä   — e Zd ZdZd„ Zdd„Zg fd„Zd„ Zed„ ¦   «         Z	ed„ ¦   «         Z
ed	d
œd„¦   «         Zed„ ¦   «         Zed„ ¦   «         Zdd„Z ej        d¦  «        Zedd„¦   «         ZdS )Ú
_Distutilsa¾  A helper class that provides a collection of fundamental methods
    implemented in a top of Python and NumPy Distutils.

    The idea behind this class is to gather all methods that it may
    need to override in case of reuse 'CCompilerOpt' in environment
    different than of what NumPy has.

    Parameters
    ----------
    ccompiler : `CCompiler`
        The generate instance that returned from `distutils.ccompiler.new_compiler()`.
    c                 ó   — || _         d S r   )Ú
_ccompiler)rt   Ú	ccompilers     rz   r�   z_Distutils.__init__[  s   € Ø#ˆŒˆˆr|   Nc                 óÂ   — t          |t          ¦  «        sJ ‚t          |t          ¦  «        sJ ‚|                     dg ¦  «        |z   }|s| j        } |j        |fd|i|¤ŽS )zWrap CCompiler.compile()Úextra_postargs)Ú
isinstanceÚlistÚpopr£   Úcompile)rt   Úsourcesra   r¤   Úkwargss        rz   Údist_compilez_Distutils.dist_compile^  sv   € å˜'¥4Ñ(Ô(Ð)Ð)Ð(Ý˜%¥Ñ&Ô&Ð'Ð'Ð&Ø—
’
Ð+¨RÑ0Ô0°5Ñ8ˆØð 	(ØœˆIà ˆyÔ  ÐIÐI¸ÐIÀ&ÐIÐIÐIr|   c                 óÞ  — t          |t          ¦  «        sJ ‚ddlm} | j        }t          |dd¦  «        }|rGt          | j        dd¦  «        }|dv rt          |d| j        ¦  «         nt          |d| j        ¦  «         d}	 |  	                    |g||| j
        ¬	¦  «         d
}n6# |$ r.}	|                      t          |	¦  «        d
¬¦  «         Y d}	~	nd}	~	ww xY w|rt          |d|¦  «         |S )zgReturn True if 'CCompiler.compile()' able to compile
        a source file with certain flags.
        r   ©ÚCompileErrorÚspawnNÚcompiler_typer   )r   F)ÚmacrosÚ
output_dirT©Ústderr)r§   ÚstrÚdistutils.errorsr°   r£   ÚgetattrÚsetattrÚ_dist_test_spawn_pathsÚ_dist_test_spawnr­   r…   Údist_log)
rt   Úsourcera   r³   r°   ÚccÚbk_spawnÚcc_typeÚtestÚes
             rz   Ú	dist_testz_Distutils.dist_testh  s>  € õ ˜&¥#Ñ&Ô&Ð'Ð'Ð&Ø1Ð1Ð1Ð1Ð1Ð1ØŒ_ˆÝ˜2˜w¨Ñ-Ô-ˆØð 	<Ý˜dœo¨ÀÑCÔCˆGØ˜)Ð#Ð#Ý˜˜G TÔ%@ÑAÔAÐAÐAå˜˜G TÔ%:Ñ;Ô;Ð;Øˆð	/Ø×ÒØ�˜%¨¸4Ô;Mð ñ ô ð ð ˆDˆDøØð 	/ð 	/ð 	/Ø�MŠM�#˜a™&œ&¨ˆMÑ.Ô.Ð.Ð.Ð.Ð.Ð.Ð.øøøøð	/øøøàð 	+Ý�B˜ Ñ*Ô*Ð*Øˆs   Â!B$ Â$CÂ)$CÃCc           	      ó|  — t          | d¦  «        r| j        S t          | j        dd¦  «        }|dv rd}n|dv rd}ndd	lm}  |¦   «         }t          | j        d
t          | j        dd¦  «        ¦  «        }|r|dk    r)t          |d¦  «        r	|d         }nt          |¦  «        }n|}t          |d¦  «        r1t          |¦  «        dk    rd                     |dd…         ¦  «        }nCt          j
                             dd¦  «        }|t          j
                             dd¦  «        z  }|||f| _        | j        S )a!  
        Return a tuple containing info about (platform, compiler, extra_args),
        required by the abstract class '_CCompiler' for discovering the
        platform environment. This is also used as a cache factor in order
        to detect any changes happening from outside.
        Ú
_dist_infor²   r   )ÚintelemÚintelemwÚx86_64)ÚintelÚintelwÚinteler   r   )Úget_platformÚcompilerÚcompiler_soÚunixÚ__iter__r   ú NÚCFLAGSÚCPPFLAGS)ÚhasattrrÆ   r¹   r£   Údistutils.utilrÍ   r·   Úlenr–   r‹   ÚenvironÚget)rt   rÁ   ÚplatformrÍ   Úcc_inforÎ   Ú
extra_argss          rz   Ú	dist_infoz_Distutils.dist_info‚  sZ  € õ �4˜Ñ&Ô&ð 	#Ø”?Ð"å˜$œ/¨?¸BÑ?Ô?ˆØÐ-Ð-Ð-ØˆHˆHØÐ5Ð5Ð5ØˆHˆHà3Ð3Ð3Ð3Ð3Ð3Ø#�|‘~”~ˆHå˜$œ/¨:µw¸t¼ÐP]Ð_aÑ7bÔ7bÑcÔcˆØð 	˜' VÒ+Ð+Ý�w 
Ñ+Ô+ð (Ø" 1œ:��å˜w™<œ<��àˆHå�7˜JÑ'Ô'ð 	9­C°©L¬L¸1Ò,<Ð,<ØŸš '¨!¨"¨"¤+Ñ.Ô.ˆJˆJåœ*Ÿ.š.¨°2Ñ6Ô6ˆJØ�"œ*Ÿ.š.¨°RÑ8Ô8Ñ8ˆJà# X¨zÐ:ˆŒØŒÐr|   c                  ó<   — ddl m}  |t          j        | Ž ¦  «        ‚)zRaise a compiler errorr   r¯   )r¸   r°   r¡   Ú	_dist_str)Úargsr°   s     rz   Ú
dist_errorz_Distutils.dist_error§  s.   € ð 	2Ð1Ð1Ð1Ð1Ð1Øˆl�:Ô/°Ð6Ñ7Ô7Ð7r|   c                  ó<   — ddl m}  |t          j        | Ž ¦  «        ‚)zRaise a distutils errorr   )ÚDistutilsError)r¸   rã   r¡   rß   )rà   rã   s     rz   Ú
dist_fatalz_Distutils.dist_fatal­  s.   € ð 	4Ð3Ð3Ð3Ð3Ð3Øˆn�ZÔ1°4Ð8Ñ9Ô9Ð9r|   Frµ   c                 óŠ   — ddl m} t          j        |Ž }| r|                     |¦  «         dS |                     |¦  «         dS )zPrint a console messager   )ÚlogN)Únumpy.distutilsræ   r¡   rß   ÚwarnÚinfo)r¶   rà   ræ   Úouts       rz   r½   z_Distutils.dist_log³  sQ   € ð 	(Ð'Ð'Ð'Ð'Ð'ÝÔ" DÐ)ˆØð 	Ø�HŠH�S‰MŒMˆMˆMˆMà�HŠH�S‰MŒMˆMˆMˆMr|   c                 ó’   — ddl m} 	  || |¦  «        S # t          $ r&}t                               |d¬¦  «         Y d}~nd}~ww xY wdS )zALoad a module from file, required by the abstract class '_Cache'.r   )Úexec_mod_from_locationTrµ   N)Ú	misc_utilrì   Ú	Exceptionr¡   r½   )ÚnamerŒ   rì   rÃ   s       rz   Údist_load_modulez_Distutils.dist_load_module½  sz   € ð 	6Ð5Ð5Ð5Ð5Ð5ð	0Ø)Ð)¨$°Ñ5Ô5Ð5øÝð 	0ð 	0ð 	0Ý×Ò ¨$ÐÑ/Ô/Ð/Ð/Ð/Ð/Ð/Ð/øøøøð	0øøøàˆts   ˆ ”
Až?¿Ac                  ó´   ‡— ˆfd„Št          j        ¦   «         d         }d|j        |j        fz  }d                     ˆfd„g | ¢R D ¦   «         ¦  «        }||z   S )z+Return a string to print by log and errors.c                 óì   •— t          | t          ¦  «        sPt          | d¦  «        r@g }| D ] }|                      ‰|¦  «        ¦  «         Œ!dd                     |¦  «        z   dz   S t          | ¦  «        S )NrÑ   ú(rÒ   ú))r§   r·   rÕ   Úappendr–   )ÚargÚretÚaÚto_strs      €rz   rù   z$_Distutils._dist_str.<locals>.to_strÊ  s|   ø€ Ý˜c¥3Ñ'Ô'ð 0­G°C¸Ñ,DÔ,Dð 0Ø�Øð *ð *�AØ—J’J˜v˜v a™yœyÑ)Ô)Ð)Ð)Ø˜CŸHšH S™MœMÑ)¨CÑ/Ð/Ý�s‘8”8ˆOr|   r   zCCompilerOpt.%s[%d] : rÒ   c                 ó&   •— g | ]} ‰|¦  «        ‘ŒS rd   rd   )Ú.0rø   rù   s     €rz   ú
<listcomp>z(_Distutils._dist_str.<locals>.<listcomp>Ô  s1   ø€ ð 
ð 
ð 
àð ˆF�1‰IŒIð
ð 
ð 
r|   )ÚinspectÚstackÚfunctionÚlinenor–   )rà   rþ   Ústartrê   rù   s       @rz   rß   z_Distutils._dist_strÇ  sŒ   ø€ ð	ð 	ð 	ð 	ð 	õ ”‘” Ô"ˆØ(¨E¬N¸E¼LÐ+IÑIˆØ�hŠhð 
ð 
ð 
ð 
à�t�X�Xð
ñ 
ô 
ñ ô ˆð �s‰{Ðr|   c                 ó*  — t          | j        d¦  «        s|                      |¦  «         dS t          j        d¦  «        }	 | j        j        t          j        d<   |                      |¦  «         |t          j        d<   dS # |t          j        d<   w xY w)zŠ
        Fix msvc SDK ENV path same as distutils do
        without it we get c1: fatal error C1356: unable to find mspdbcore.dll
        Ú_pathsNrŒ   )rÕ   r£   r¼   r‹   Úgetenvr  rØ   )rt   ÚcmdÚdisplayÚold_paths       rz   r»   z!_Distutils._dist_test_spawn_pathsÚ  s”   € õ
 �t”¨Ñ1Ô1ð 	Ø×!Ò! #Ñ&Ô&Ð&ØˆFÝ”9˜VÑ$Ô$ˆð	*Ø!%¤Ô!7�BŒJ�vÑØ×!Ò! #Ñ&Ô&Ð&à!)�BŒJ�vÑÐÐø �BŒJ�vÑÐ)Ð)Ð)Ð)s   Á.B ÂBz/.*(warning D9002|invalid argument for option).*c                 ó�  — 	 t          j        | t           j        d¬¦  «        }|r>t          j        t
          j        |¦  «        rt
                               d| d|z  ¦  «         d S # t           j        $ r}|j	        }|j
        }Y d }~nd }~wt          $ r}|}d}Y d }~nd }~ww xY wt
                               d| d||fz  ¦  «         d S )NT)r¶   ÚtextzFlags in commandz/aren't supported by the compiler, output -> 
%sé   ÚCommandz(failed with exit status %d output -> 
%s)Ú
subprocessÚcheck_outputÚSTDOUTÚreÚmatchr¡   Ú_dist_warn_regexrá   ÚCalledProcessErrorÚoutputÚ
returncoder�   )r  r  ÚoÚexcÚsrÃ   s         rz   r¼   z_Distutils._dist_test_spawnñ  s  € ð	ÝÔ'¨µJÔ4EØ-1ð3ñ 3ô 3ˆAàð •R”X�jÔ9¸1Ñ=Ô=ð Ý×%Ò%Ø&¨ð .'Ø)*ñ.+ñô ð ð �4øõ Ô,ð 	ð 	ð 	Ø”
ˆAØ”ˆAˆAˆAˆAˆAˆAøøøøÝð 	ð 	ð 	ØˆAØˆAˆAˆAˆAˆAˆAøøøøð	øøøõ
 	×ÒØ�sÐGØˆqðK
ñ 
ñ	ô 	ð 	ð 	ð 	s$   ‚A!A% Á%B"Á4BÂB"ÂBÂB"r   )r‘   r’   r“   r”   r�   r­   rÄ   rÝ   Ústaticmethodrá   rä   r½   rð   rß   r»   r  rª   r  r¼   rd   r|   rz   r¡   r¡   N  sQ  € € € € € ðð ð$ð $ð $ðJð Jð Jð Jð /1ð ð ð ð ð4#ð #ð #ðJ ð8ð 8ñ „\ð8ð
 ð:ð :ñ „\ð:ð
 Ø$ð ð ð ð ñ „\ðð ðð ñ „\ðð ðð ñ „\ðð$*ð *ð *ð *ð "�r”zð	ñô Ðð ðð ð ñ „\ðð ð r|   r¡   c                   ób   — e Zd ZdZ ej        d¦  «        Zd	d„Zd„ Zd„ Z	d„ Z
ed„ ¦   «         ZdS )
Ú_Cachea'  An abstract class handles caching functionality, provides two
    levels of caching, in-memory by share instances attributes among
    each other and by store attributes into files.

    **Note**:
        any attributes that start with ``_`` or ``conf_`` will be ignored.

    Parameters
    ----------
    cache_path : str or None
        The path of cache file, if None then cache in file will disabled.

    *factors :
        The caching factors that need to utilize next to `conf_cache_factors`.

    Attributes
    ----------
    cache_private : set
        Hold the attributes that need be skipped from "in-memory cache".

    cache_infile : bool
        Utilized during initializing this class, to determine if the cache was able
        to loaded from the specified cache path in 'cache_path'.
    z
^(_|conf_)Nc                 óh  — i | _         t          ¦   «         | _        d| _        d | _        | j        r|                      d¦  «         d S  | j        g |¢| j        ¢R Ž | _	        || _        |�rt          j                             |¦  «        rð|                      d|¦  «         |                      d|¦  «        }|s|                      dd¬¦  «         nªt          |d¦  «        rt          |d	¦  «        s|                      d
d¬¦  «         nr| j	        |j        k    rM|                      d¦  «         |j                             ¦   «         D ]\  }}t%          | ||¦  «         Œd| _        n|                      d¦  «         | j        sŠt&                               | j	        ¦  «        }|ri|                      d¦  «         |j                             ¦   «         D ]:\  }}||j        v st-          j        | j        |¦  «        rŒ)t%          | ||¦  «         Œ;| t&          | j	        <   t3          j        | j        ¦  «         d S )NFzcache is disabled by `Config`zload cache from file ->Úcachez)unable to load the cache file as a moduleTrµ   ÚhashÚdatazinvalid cache filezhit the file cachezmiss the file cachezhit the memory cache)Úcache_meÚsetÚcache_privateÚcache_infileÚ_cache_pathr�   r½   Ú
cache_hashrŠ   Ú_cache_hashr‹   rŒ   Úexistsrð   rÕ   r  r  Úitemsrº   Ú_share_cacherÙ   Ú__dict__r  r  Ú_cache_ignorerˆ   r‰   Úcache_flush)rt   Ú
cache_pathÚfactorsÚ	cache_modÚattrÚvalÚother_caches          rz   r�   z_Cache.__init__&  s`  € ØˆŒÝ ™UœUˆÔØ!ˆÔØˆÔàÔð 	Ø�MŠMÐ9Ñ:Ô:Ð:ØˆFà*˜4œ?ÐN¨GÐN°dÔ6MÐNÐNÐNˆÔØ%ˆÔØñ 	9ÝŒw�~Š~˜jÑ)Ô)ð 9Ø—’Ð7¸ÑDÔDÐDØ ×1Ò1°'¸:ÑFÔF�	Ø ð 9Ø—M’MØCØ#ð "ñ ô ð ð õ ! ¨FÑ3Ô3ð 	9Ý  ¨FÑ3Ô3ð	9à—M’MÐ"6¸t�MÑDÔDÐDÐDØÔ%¨¬Ò7Ð7Ø—M’MÐ"6Ñ7Ô7Ð7Ø%.¤^×%9Ò%9Ñ%;Ô%;ð 1ð 1™	˜˜cÝ  d¨CÑ0Ô0Ð0Ð0Ø(,�DÔ%Ð%à—M’MÐ"7Ñ8Ô8Ð8àÔ ð 	-Ý&×*Ò*¨4Ô+;Ñ<Ô<ˆKØð -Ø—’Ð4Ñ5Ô5Ð5Ø!,Ô!5×!;Ò!;Ñ!=Ô!=ð -ð -‘I�D˜#Ø˜{Ô8Ð8Ð8Ý!œx¨Ô(:¸DÑAÔAð 9à Ý˜D $¨Ñ,Ô,Ð,Ð,à)-��TÔ%Ñ&ÝŒ˜Ô(Ñ)Ô)Ð)Ð)Ð)r|   c                 óŠ   — t                                ¦   «         D ](\  }}|| k    rt                                |¦  «          d S Œ)d S r   )r(  r'  r©   )rt   Úhr  s      rz   Ú__del__z_Cache.__del__S  sT   € Ý ×&Ò&Ñ(Ô(ð 	ð 	‰DˆAˆqØ�DŠyˆyÝ× Ò  Ñ#Ô#Ð#Ø��ð ð	ð 	r|   c                 óô  — | j         sdS |                      d| j         ¦  «         | j                             ¦   «         }| j                             ¦   «         D ]1}t          j        | j        |¦  «        r|                     |¦  «         Œ2t          j
                             | j         ¦  «        }t          j
                             |¦  «        st          j        |¦  «         t          j        |d¬¦  «        }t!          | j         d¦  «        5 }|                     t%          j        d¦  «                             | j        ¦  «        ¦  «         |                     |¦  «         ddd¦  «         dS # 1 swxY w Y   dS )z)
        Force update the cache.
        Nzwrite cache to path ->T)ÚcompactÚwz¿            # AUTOGENERATED DON'T EDIT
            # Please make changes to the code generator             (distutils/ccompiler_opt.py)
            hash = {}
            data = \
            )r#  r½   r)  ÚcopyÚkeysr  r  r*  r©   r‹   rŒ   r—   r&  ÚmakedirsÚpprintÚpformatÚopenÚwriteÚtextwrapÚdedentÚformatr%  )rt   Úcdictr/  ÚdÚ	repr_dictÚfs         rz   r+  z_Cache.cache_flushY  s“  € ð Ôð 	ØˆFà�ŠÐ.°Ô0@ÑAÔAÐAØ”×"Ò"Ñ$Ô$ˆØ”M×&Ò&Ñ(Ô(ð 	 ð 	 ˆDÝŒx˜Ô*¨DÑ1Ô1ð  Ø—	’	˜$‘”�øåŒG�OŠO˜DÔ,Ñ-Ô-ˆÝŒw�~Š~˜aÑ Ô ð 	ÝŒK˜‰NŒNˆNå”N 5°$Ð7Ñ7Ô7ˆ	Ý�$Ô" CÑ(Ô(ð 	¨AØ�GŠG•H”Oð %ñ ô ÷ ’˜Ô(Ñ)Ô)ñ+ô +ð +ð �GŠG�IÑÔÐð	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð 	ð 	s   ÄAE-Å-E1Å4E1c                 ó~   — d}|D ]7}t          |¦  «        D ]%}t          |¦  «        |dz  z   |dz  z   |z
  }|dz  }Œ&Œ8|S )Nr   r'   é   l   ÿÿ )r·   Úord)rt   r-  ÚchashrE  Úchars        rz   r$  z_Cache.cache_hashu  sg   € ð ˆØð 	$ð 	$ˆAÝ˜A™œð $ð $�Ý˜T™œ e¨q¡jÑ1°U¸b±[ÑAÀEÑI�Ø˜Ñ#��ð$ð ˆr|   c                 ó   ‡ — ˆ fd„}|S )zr
        A static method that can be treated as a decorator to
        dynamically cache certain methods.
        c                 óà   •— t          ‰j        g|¢|                     ¦   «         ¢|                     ¦   «         ¢R ¦  «        }|| j        v r| j        |         S  ‰| g|¢R i |¤Ž}|| j        |<   |S r   )r·   r‘   r9  Úvaluesr  )rt   rà   r¬   Ú	cache_keyÚccbÚcbs        €rz   Úcache_wrap_mez _Cache.me.<locals>.cache_wrap_me…  s•   ø€ åØ”ðØ"ðØ%+§[¢[¡]¤]ðØ5;·]²]±_´_ðð ñ ô ˆIð ˜DœMÐ)Ð)Ø”} YÔ/Ð/Ø�"�TÐ+˜DÐ+Ð+Ð+ FÐ+Ð+ˆCØ'*ˆDŒM˜)Ñ$ØˆJr|   rd   )rP  rQ  s   ` rz   Úmez	_Cache.me  s$   ø€ ð		ð 		ð 		ð 		ð 		ð Ðr|   r   )r‘   r’   r“   r”   r  rª   r*  r�   r4  r+  r$  r  rR  rd   r|   rz   r  r  	  sŽ   € € € € € ðð ð4 �B”J˜|Ñ,Ô,€Mð+*ð +*ð +*ð +*ðZð ð ðð ð ð8ð ð ð ðð ñ „\ðð ð r|   r  c                   ó.  — e Zd ZdZd„ Zej        d„ ¦   «         Zej        g fd„¦   «         Zd„ Z	 e
j        d¦  «        Z e
j        d¦  «        Z e
j        d¦  «        Z e
j        d	¦  «        Zd
„ Z e
j        d¦  «        Z e
j        d¦  «        Zd„ ZdS )Ú
_CCompilera2  A helper class for `CCompilerOpt` containing all utilities that
    related to the fundamental compiler's functions.

    Attributes
    ----------
    cc_on_x86 : bool
        True when the target architecture is 32-bit x86
    cc_on_x64 : bool
        True when the target architecture is 64-bit x86
    cc_on_ppc64 : bool
        True when the target architecture is 64-bit big-endian powerpc
    cc_on_ppc64le : bool
        True when the target architecture is 64-bit litle-endian powerpc
    cc_on_s390x : bool
        True when the target architecture is IBM/ZARCH on linux
    cc_on_armhf : bool
        True when the target architecture is 32-bit ARMv7+
    cc_on_aarch64 : bool
        True when the target architecture is 64-bit Armv8-a+
    cc_on_noarch : bool
        True when the target architecture is unknown or not supported
    cc_is_gcc : bool
        True if the compiler is GNU or
        if the compiler is unknown
    cc_is_clang : bool
        True if the compiler is Clang
    cc_is_icc : bool
        True if the compiler is Intel compiler (unix like)
    cc_is_iccw : bool
        True if the compiler is Intel compiler (msvc like)
    cc_is_nocc : bool
        True if the compiler isn't supported directly,
        Note: that cause a fail-back to gcc
    cc_has_debug : bool
        True if the compiler has debug flags
    cc_has_native : bool
        True if the compiler has native flags
    cc_noopt : bool
        True if the compiler has definition 'DISABLE_OPT*',
        or 'cc_on_noarch' is True
    cc_march : str
        The target architecture name, or "unknown" if
        the architecture isn't supported
    cc_name : str
        The compiler name, or "unknown" if the compiler isn't supported
    cc_flags : dict
        Dictionary containing the initialized flags of `_Config.conf_cc_flags`
    c                 óL  — t          | d¦  «        rd S d}d}d}|                      ¦   «         }|\  }}}|||fD ]}|D ]\  }	}
}t          | |	d¦  «         ŒŒ||f||ffD ]Z\  }}|D ]R\  }	}
}|
r!t          j        |
|t          j        ¦  «        sŒ)|r|                      |¦  «        sŒAt          | |	d¦  «          Œ[|D ]R\  }	}
}|
r!t          j        |
|t          j        ¦  «        sŒ)|r|                      |¦  «        sŒAt          | |	d¦  «         ŒS| j        r"|                      d|› d�d¬	¦  «         d| _	        | j
        r|                      d
d¬	¦  «         d| _	        | j        r#	 |                      d|› d�d¬	¦  «         d| _        d| _        dD ]}t          | d|z   ¦  «        r	|| _         nŒd| _        dD ]}t          | d|z   ¦  «        r	|| _         nŒi | _        | j                             | j        ¦  «        }|€|                      d| j        z  ¦  «         |                     ¦   «         D ]n\  }}g x| j        |<   }|r[t+          |t,          ¦  «        sJ ‚|                     ¦   «         }|D ]-}|                      |g¦  «        r|                     |¦  «         Œ.Œod| _        d S )NÚcc_is_cached))rg   z.*(x|x86_|amd)64.*r   )rf   z.*(win32|x86|i386|i686).*r   )ro   z&.*(powerpc|ppc)64(el|le).*|.*powerpc.*z4defined(__powerpc64__) && defined(__LITTLE_ENDIAN__))rp   z.*(powerpc|ppc).*|.*powerpc.*z1defined(__powerpc64__) && defined(__BIG_ENDIAN__))rr   z.*(aarch64|arm64).*r   )rs   z.*arm.*z3defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__))rq   z	.*s390x.*r   )Úcc_on_noarchr   r   ))rh   z.*(gcc|gnu\-g).*r   )ri   z	.*clang.*r   )rm   z.*(intelw|intelemw|iccw).*r   )rl   z.*(intel|icc).*r   )rn   z.*msvc.*r   )rj   z.*fcc.*r   )Ú
cc_is_noccr   r   ))Úcc_has_debugz$.*(O0|Od|ggdb|coverage|debug:full).*r   )Úcc_has_nativez..*(-march=native|-xHost|/QxHost|-mcpu=a64fx).*r   )re   z.*DISABLE_OPT.*r   FTz]unable to detect CPU architecture which lead to disable the optimization. check dist_info:<<
z
>>rµ   z&Optimization is disabled by the Configzªunable to detect compiler type which leads to treating it as GCC. this is a normal behavior if you're using gcc-like compiler such as MinGW or IBM/XLC.check dist_info:<<
Úunknown)r   r   r   r   r   r   r   Úcc_on_)r   r   r   r   r   r   Úcc_is_z=undefined flag for compiler '%s', leave an empty dict instead)rÕ   rÝ   rº   r  r  Ú
IGNORECASEÚcc_test_cexprrW  r½   re   r•   rX  rh   Úcc_marchr¹   Úcc_nameÚcc_flagsr�   rÙ   rä   r'  r§   r·   ÚsplitÚcc_test_flagsrõ   rV  )rt   Údetect_archÚdetect_compilerÚdetect_argsrÝ   rÚ   Úcompiler_inforÜ   Úsectionr/  ÚrgexÚcexprr@   ÚsearchinÚarchrï   Úcompiler_flagsra   ÚnflagsrE  s                       rz   r�   z_CCompiler.__init__Â  sÃ  € Ý�4˜Ñ(Ô(ð 	ØˆFð
ˆð 

ˆð
ˆð —N’NÑ$Ô$ˆ	Ø.7Ñ+ˆ�- à# _°kÐBð 	+ð 	+ˆGØ%,ð +ð +Ñ!��d˜EÝ˜˜d EÑ*Ô*Ð*Ð*ð+ð #.¨xÐ!8¸?ÈMÐ:ZÐ [ð 	ð 	ÑˆF�HØ%+ð ð Ñ!��d˜EØð ¥¤¨¨x½¼Ñ GÔ Gð ØØð  ×!3Ò!3°EÑ!:Ô!:ð ØÝ˜˜d DÑ)Ô)Ð)Øøà!,ð 	&ð 	&ÑˆD�$˜Øð �BœH T¨:µr´}ÑEÔEð ØØð ˜T×/Ò/°Ñ6Ô6ð ØÝ�D˜$ Ñ%Ô%Ð%Ð%àÔð 	!Ø�MŠMð7Ø'0ð7ð 7ð 7àð ñ ô ð ð
 !ˆDŒMàŒ?ð 	!Ø�MŠMÐBÈ4ˆMÑPÔPÐPØ ˆDŒMàŒ?ð 	"ðð �MŠMð7à'0ð7ð 7ð 7ð ð	 ñ ô ð ð "ˆDŒNà!ˆŒð2ð 	ð 	ˆDå�t˜X¨™_Ñ-Ô-ð Ø $�”Ø�ðð !ˆŒØBð 	ð 	ˆDÝ�t˜X¨™_Ñ-Ô-ð Ø#�”Ø�ðð ˆŒØÔ+×/Ò/°´Ñ=Ô=ˆØÐ!Ø�OŠOð.Ø04´ñ=ñô ð ð *×/Ò/Ñ1Ô1ð 	)ð 	)‰KˆD�%Ø+-Ð-ˆDŒM˜$Ñ &Øð )Ý! %­Ñ-Ô-Ð.Ð.Ð-ØŸš™œ�Øð )ð )�AØ×)Ò)¨1¨#Ñ.Ô.ð )ØŸš aÑ(Ô(Ð(øøà ˆÔÐÐr|   c                 ó  — t          |t          ¦  «        sJ ‚|                      d|¦  «         t          j                             | j        d¦  «        }|                      ||¦  «        }|s|                      dd¬¦  «         |S )z@
        Returns True if the compiler supports 'flags'.
        ztesting flagsztest_flags.cútesting failedTrµ   )r§   r¨   r½   r‹   rŒ   r–   r™   rÄ   )rt   ra   Ú	test_pathrÂ   s       rz   rd  z_CCompiler.cc_test_flags8  s}   € õ
 ˜%¥Ñ&Ô&Ð'Ð'Ð&Ø�Š�o uÑ-Ô-Ð-Ý”G—L’L Ô!5°~ÑFÔFˆ	Ø�~Š~˜i¨Ñ/Ô/ˆØð 	9Ø�MŠMÐ*°4ˆMÑ8Ô8Ð8Øˆr|   c                 ó€  — |                       d|¦  «         t          j                             | j        d¦  «        }t          |d¦  «        5 }|                     t          j        d|› d�¦  «        ¦  «         ddd¦  «         n# 1 swxY w Y   |  	                    ||¦  «        }|s|                       dd¬	¦  «         |S )
zJ
        Same as the above but supports compile-time expressions.
        ztesting compiler expressionznpy_dist_test_cexpr.cr7  z               #if !(zq)
                   #error "unsupported expression"
               #endif
               int dummy;
            Nrq  Trµ   )
r½   r‹   rŒ   r–   r…   r=  r>  r?  r@  rÄ   )rt   rk  ra   rr  ÚfdrÂ   s         rz   r_  z_CCompiler.cc_test_cexprE  s  € ð
 	�ŠÐ3°UÑ;Ô;Ð;Ý”G—L’L Ô!3Ð5LÑMÔMˆ	Ý�)˜SÑ!Ô!ð 	 RØ�HŠH•X”_ð &Øð&ð &ð &ñ ô ñ ô ð ð	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð �~Š~˜i¨Ñ/Ô/ˆØð 	9Ø�MŠMÐ*°4ˆMÑ8Ô8Ð8Øˆs   Á,BÂBÂBc                 óÎ   — t          |t          ¦  «        sJ ‚| j        s| j        s| j        r|                      |¦  «        S | j        s| j        r|                      |¦  «        S |S )a”  
        Remove the conflicts that caused due gathering implied features flags.

        Parameters
        ----------
        'flags' list, compiler flags
            flags should be sorted from the lowest to the highest interest.

        Returns
        -------
        list, filtered from any conflicts.

        Examples
        --------
        >>> self.cc_normalize_flags(['-march=armv8.2-a+fp16', '-march=armv8.2-a+dotprod'])
        ['armv8.2-a+fp16+dotprod']

        >>> self.cc_normalize_flags(
            ['-msse', '-msse2', '-msse3', '-mssse3', '-msse4.1', '-msse4.2', '-mavx', '-march=core-avx2']
        )
        ['-march=core-avx2']
        )	r§   r¨   rh   ri   rl   Ú_cc_normalize_unixrn   rm   Ú_cc_normalize_win)rt   ra   s     rz   Úcc_normalize_flagsz_CCompiler.cc_normalize_flagsX  sw   € õ. ˜%¥Ñ&Ô&Ð'Ð'Ð&ØŒ>ð 	2˜TÔ-ð 	2°´ð 	2Ø×*Ò*¨5Ñ1Ô1Ð1àŒ?ð 	1˜dœoð 	1Ø×)Ò)¨%Ñ0Ô0Ð0Øˆr|   z^(-mcpu=|-march=|-x[A-Z0-9\-])zB^(?!(-mcpu=|-march=|-x[A-Z0-9\-]|-m[a-z0-9\-\.]*.$))|(?:-mzvector)z^(-mfpu|-mtune)z[0-9.]c                 ó  ‡ — ˆ fd„}t          |¦  «        dk    r|S t          t          |¦  «        ¦  «        D ]Ó\  }}t          j        ‰ j        |¦  «        sŒ |d |dz    …         }|| d …         }t          t          ‰ j        j	        |¦  «        ¦  «        } ||¦  «        \  }}	}
|dk    rMt          |
¦  «        dk    r:|D ]} ||¦  «        \  }}}||k    r||
z   }
Œ|	dz   d 
                    |
¦  «        z   }||gz   }|dk    r||z  } g }t          ¦   «         }t          |¦  «        D ][}t          j        ‰ j        |¦  «        }|sn&|d         |v rŒ*|                     |d         ¦  «         |                     d|¦  «         Œ\|S )Nc           
      óÚ   •— |                       d¦  «        }t          dd                     t          j        ‰j        |d         ¦  «        ¦  «        z   ¦  «        }||d         |dd …         fS )Nú+Ú0r   r   r   )rc  Úfloatr–   r  ÚfindallÚ_cc_normalize_arch_ver)rE  ÚtokensÚverrt   s      €rz   Ú	ver_flagsz0_CCompiler._cc_normalize_unix.<locals>.ver_flagsŠ  sk   ø€ ð —W’W˜S‘\”\ˆFÝ˜˜bŸgšgÝ”
˜4Ô6¸¸q¼	ÑBÔBñô ñ ñ ô ˆCð ˜˜qœ	 6¨!¨"¨"¤:Ð-Ð-r|   r   r   r{  )r×   Ú	enumerateÚreversedr  r  Ú_cc_normalize_unix_mrgxr¨   ÚfilterÚ_cc_normalize_unix_frgxÚsearchr–   r   Ú_cc_normalize_unix_krgxÚaddÚinsert)rt   ra   r‚  ÚiÚcur_flagÚlower_flagsÚupper_flagsÚfilteredr�  rm  ÚsubflagsÚxflagÚxverÚ_Ú	xsubflagsÚfinal_flagsÚmatchedrE  r  s   `                  rz   rv  z_CCompiler._cc_normalize_unix‰  sæ  ø€ ð	.ð 	.ð 	.ð 	.ð 	.õ ˆu‰:Œ:˜Š?ˆ?ØˆLå$¥X¨e¡_¤_Ñ5Ô5ð 	ð 	‰KˆAˆxÝ”8˜DÔ8¸(ÑCÔCð ØØ  1 Q¡3  œ.ˆKØ    œ*ˆKÝ�FØÔ,Ô3°[ñô ñ ô ˆHð #, )¨HÑ"5Ô"5ÑˆC��xØ�QŠwˆw�3˜x™=œ=¨1Ò,Ð,Ø(ð 8ð 8�EØ)2¨°5Ñ)9Ô)9Ñ&�D˜!˜YØ˜d’{�{Ø#,¨xÑ#7˜øØ #™:¨¯ª°Ñ(:Ô(:Ñ:�à ˜zÑ)ˆEØ�1ŠuˆuØ˜Ñ$�Øð ˆÝ‘%”%ˆÝ˜%‘”ð 	%ð 	%ˆAÝ”H˜TÔ9¸1Ñ=Ô=ˆEØð &ØØ�q”˜WÐ$Ð$Øà—’˜E !œHÑ%Ô%Ð%Ø×Ò˜q !Ñ$Ô$Ð$Ð$ØÐr|   z^(?!(/arch\:|/Qx\:))z^(/arch|/Qx:)c           	      ó  — t          t          |¦  «        ¦  «        D ]b\  }}t          j        | j        |¦  «        sŒ |dz  }t          t          | j        j        |d | …         ¦  «        ¦  «        || d …         z   c S |S )Nr   )	rƒ  r„  r  r  Ú_cc_normalize_win_mrgxr¨   r†  Ú_cc_normalize_win_frgxrˆ  )rt   ra   rŒ  rE  s       rz   rw  z_CCompiler._cc_normalize_winÀ  sœ   € Ý�h u™oœoÑ.Ô.ð 	ð 	‰DˆAˆqÝ”8˜DÔ7¸Ñ;Ô;ð ØØ�‰FˆAÝ�ØÔ+Ô2°E¸#¸A¸2¸#´Jñô ñ ô à˜�r�s�s”ñð ð ð ð ˆr|   N)r‘   r’   r“   r”   r�   r  rR  rd  r_  rx  r  rª   r…  r‡  r‰  r  rv  rš  r™  rw  rd   r|   rz   rT  rT  ‘  s:  € € € € € ð/ð /ð`t!ð t!ð t!ðl „Yð
ð 
ñ „Yð
ð „YØ)+ð ð ð ñ „Yðð$ð ð ð> )˜bœjà)ñô Ðð )˜bœjð	ñô Ðð )˜bœjàñô Ðð (˜RœZØñô Ðð/ð /ð /ðb (˜RœZØñô Ðð (˜RœZØñô Ððð ð ð ð r|   rT  c                   ó  — e Zd ZdZd„ Zddg fd„Zd„ Zdd„Zdd„Zd	„ Z	d
„ Z
d„ Zd„ Zd„ Zej        d„ ¦   «         Zej        dg fd„¦   «         Zej        dg fd„¦   «         Zej        d„ ¦   «         Zej        d„ ¦   «         Zdd„ZdS )Ú_Featureaâ  A helper class for `CCompilerOpt` that managing CPU features.

    Attributes
    ----------
    feature_supported : dict
        Dictionary containing all CPU features that supported
        by the platform, according to the specified values in attribute
        `_Config.conf_features` and `_Config.conf_features_partial()`

    feature_min : set
        The minimum support of CPU features, according to
        the specified values in attribute `_Config.conf_min_features`.
    c                 ób  ‡	— t          | d¦  «        rd S |                      ¦   «         x| _        }t          |                     ¦   «         ¦  «        D ]Ø}||         Š	| j        |         }‰	                     ˆ	fd„|                     ¦   «         D ¦   «         ¦  «         ‰	                     d¦  «        }|�1| 	                    |¦  «         |  
                    d|z  |d¬¦  «         Œ’dD ]C}‰	                     |¦  «        }t          |t          ¦  «        r|                     ¦   «         ‰	|<   ŒDŒÙt          ¦   «         | _        | j                             | j        d¦  «        }|                     ¦   «                              ¦   «         D ]%}|| j        v r| j                             |¦  «         Œ&d| _        d S )	NÚfeature_is_cachedc                 ó$   •— i | ]\  }}|‰v¯	||“ŒS rd   rd   )rû   ÚkÚvÚfeatures      €rz   ú
<dictcomp>z%_Feature.__init__.<locals>.<dictcomp>ß  s0   ø€ ð ð ð Ù˜˜!°1¸GÐ3CÐ3C��!Ð3CÐ3CÐ3Cr|   rb   zfeature '%s' is disabled,Trµ   )r   r?   r@   r   ra   r:   r   )rÕ   r{   Úfeature_supportedr¨   r9  rŸ   Úupdater'  rÙ   r©   r½   r§   r·   rc  r   Úfeature_minrž   r`  ÚupperrŠ  rž  )
rt   Ú	pfeaturesÚfeature_nameÚcfeatureÚdisabledÚoptionÚovalÚmin_fÚFr¢  s
            @rz   r�   z_Feature.__init__Ø  sÖ  ø€ Ý�4Ð,Ñ-Ô-ð 	ØˆFØ-1×-GÒ-GÑ-IÔ-IÐIˆÔ Ý  §¢Ñ!1Ô!1Ñ2Ô2ð 	3ð 	3ˆLØ  Ô.ˆGØÔ)¨,Ô7ˆHØ�NŠNð ð ð ð Ø'Ÿ~š~Ñ/Ô/ðñ ô ñ ô ð ð —{’{ 9Ñ-Ô-ˆHØÐ#Ø—’˜lÑ+Ô+Ð+Ø—’Ø/°,Ñ>Ø Tð ñ ô ð ð ðð 3ð 3�ð —{’{ 6Ñ*Ô*�Ý˜d¥CÑ(Ô(ð 3Ø&*§j¢j¡l¤l�G˜F‘Oøð3õ ™5œ5ˆÔØÔ&×*Ò*¨4¬=¸"Ñ=Ô=ˆØ—’‘”×$Ò$Ñ&Ô&ð 	(ð 	(ˆAØ�DÔ*Ð*Ð*ØÔ ×$Ò$ QÑ'Ô'Ð'øà!%ˆÔÐÐr|   Nc                 ó@  — |�'t          |t          ¦  «        st          |d¦  «        sJ ‚|�t          |t          ¦  «        sJ ‚|€| j                             ¦   «         }t          ¦   «         }|D ]/}|                      |||¬¦  «        r|                     |¦  «         Œ0|S )aˆ  
        Returns a set of CPU feature names that supported by platform and the **C** compiler.

        Parameters
        ----------
        names : sequence or None, optional
            Specify certain CPU features to test it against the **C** compiler.
            if None(default), it will test all current supported features.
            **Note**: feature names must be in upper-case.

        force_flags : list or None, optional
            If None(default), default compiler flags for every CPU feature will
            be used during the test.

        macros : list of tuples, optional
            A list of C macro definitions.
        NrÑ   ©Úforce_flagsr³   )	r§   r·   rÕ   r¨   r¤  r9  r   Úfeature_is_supportedrŠ  )rt   Únamesr²  r³   Úsupported_namesrE  s         rz   Úfeature_namesz_Feature.feature_namesú  sÃ   € ð& ˆMÝ˜u¥cÑ*Ô*ð å˜˜zÑ*Ô*ð ˆMð ð
 Ð"¥j°½dÑ&CÔ&CÐ"Ð"ÐCØˆ=ØÔ*×/Ò/Ñ1Ô1ˆEÝ™%œ%ˆØð 	'ð 	'ˆAØ×(Ò(Ø˜{°6ð )ñ ô ð 'ð  ×#Ò# AÑ&Ô&Ð&øØÐr|   c                 ó@   — |                      ¦   «         sJ ‚|| j        v S )zÔ
        Returns True if a certain feature is exist and covered within
        ``_Config.conf_features``.

        Parameters
        ----------
        'name': str
            feature name in uppercase.
        )ÚisupperrŸ   )rt   rï   s     rz   Úfeature_is_existz_Feature.feature_is_exist  s%   € ð �|Š|‰~Œ~ÐÐˆ~Ø�tÔ)Ð)Ð)r|   Fc                 ó2   ‡ — ˆ fd„}t          |||¬¦  «        S )az  
        Sort a list of CPU features ordered by the lowest interest.

        Parameters
        ----------
        'names': sequence
            sequence of supported feature names in uppercase.
        'reverse': bool, optional
            If true, the sorted features is reversed. (highest interest)

        Returns
        -------
        list, sorted CPU features
        c                 ó¸   •— t          | t          ¦  «        r‰j        |          d         S t          ˆfd„| D ¦   «         ¦  «        }|t	          | ¦  «        dz
  z  }|S )Nr   c                 ó6   •— g | ]}‰j         |         d          ‘ŒS )r   )r¤  ©rû   rE  rt   s     €rz   rü   z<_Feature.feature_sorted.<locals>.sort_cb.<locals>.<listcomp>=  s&   ø€ ÐIÐIÐIÀ!˜Ô.¨qÔ1°*Ô=ÐIÐIÐIr|   r   )r§   r·   r¤  Úmaxr×   )r   Úrankrt   s     €rz   Úsort_cbz(_Feature.feature_sorted.<locals>.sort_cb9  se   ø€ Ý˜!�SÑ!Ô!ð =ØÔ-¨aÔ0°Ô<Ð<åÐIÐIÐIÐIÀqÐIÑIÔIÑJÔJˆDð •C˜‘F”F˜A‘IÑˆDØˆKr|   )ÚreverseÚkey)Úsorted)rt   r´  rÁ  rÀ  s   `   rz   Úfeature_sortedz_Feature.feature_sorted*  s3   ø€ ð	ð 	ð 	ð 	ð 	õ �e W°'Ð:Ñ:Ô:Ð:r|   c                 ó.  ‡ ‡— t          ¦   «         fˆˆ fd„	Št          |t          ¦  «        r ‰|¦  «        }|g}nCt          |d¦  «        sJ ‚t          ¦   «         }|D ] }|                      ‰|¦  «        ¦  «        }Œ!|s|                     |¦  «         |S )aÇ  
        Return a set of CPU features that implied by 'names'

        Parameters
        ----------
        names : str or sequence of str
            CPU feature name(s) in uppercase.

        keep_origins : bool
            if False(default) then the returned set will not contain any
            features from 'names'. This case happens only when two features
            imply each other.

        Examples
        --------
        >>> self.feature_implies("SSE3")
        {'SSE', 'SSE2'}
        >>> self.feature_implies("SSE2")
        {'SSE'}
        >>> self.feature_implies("SSE2", keep_origins=True)
        # 'SSE2' found here since 'SSE' and 'SSE2' imply each other
        {'SSE', 'SSE2'}
        c                 ó  •— t          ¦   «         }‰j        |          }|                     dg ¦  «        D ]P}|                     |¦  «         ||v rŒ|                     | ¦  «         |                      ‰||¦  «        ¦  «        }ŒQ|S )Nr   )r   r¤  rÙ   rŠ  Úunion)rï   Ú_callerr   rC  rŒ  Úget_impliesrt   s        €€rz   rÉ  z-_Feature.feature_implies.<locals>.get_implies\  s‹   ø€ Ý‘e”eˆGØÔ& tÔ,ˆAØ—U’U˜9 bÑ)Ô)ð Að A�Ø—’˜A‘”�Ø˜�<�<ð Ø—’˜DÑ!Ô!Ð!Ø!Ÿ-š-¨¨°A°wÑ(?Ô(?Ñ@Ô@��ØˆNr|   rÑ   )r   r§   r·   rÕ   rÇ  Údifference_update)rt   r´  Úkeep_originsr   ÚnrÉ  s   `    @rz   Úfeature_impliesz_Feature.feature_impliesD  sÆ   øø€ õ0 '*¡e¤eð 	ð 	ð 	ð 	ð 	ð 	ð 	õ �e�SÑ!Ô!ð 	8Ø!�k %Ñ(Ô(ˆGØ�GˆEˆEå˜5 *Ñ-Ô-Ð.Ð.Ð-Ý‘e”eˆGØð 8ð 8�Ø!Ÿ-š-¨¨°A©¬Ñ7Ô7��Øð 	-Ø×%Ò% eÑ,Ô,Ð,Øˆr|   c                 ó¼   — t          |t          ¦  «        rt          |f¦  «        }nt          |¦  «        }|                     |                      |¦  «        ¦  «        S )z/same as feature_implies() but combining 'names')r§   r·   r   rÇ  rÍ  )rt   r´  s     rz   Úfeature_implies_cz_Feature.feature_implies_cu  sN   € å�e�SÑ!Ô!ð 	Ý˜˜‘M”MˆEˆEå˜‘J”JˆEØ�{Š{˜4×/Ò/°Ñ6Ô6Ñ7Ô7Ð7r|   c                 ó  ‡— t          |t          ¦  «        st          |d¦  «        sJ ‚|                      |d¬¦  «        Šˆfd„|D ¦   «         }t	          |¦  «        dk    r|                      |d¬¦  «        dd…         }|S )	a  
        Return list of features in 'names' after remove any
        implied features and keep the origins.

        Parameters
        ----------
        'names': sequence
            sequence of CPU feature names in uppercase.

        Returns
        -------
        list of CPU features sorted as-is 'names'

        Examples
        --------
        >>> self.feature_ahead(["SSE2", "SSE3", "SSE41"])
        ["SSE41"]
        # assume AVX2 and FMA3 implies each other and AVX2
        # is the highest interest
        >>> self.feature_ahead(["SSE2", "SSE3", "SSE41", "AVX2", "FMA3"])
        ["AVX2"]
        # assume AVX2 and FMA3 don't implies each other
        >>> self.feature_ahead(["SSE2", "SSE3", "SSE41", "AVX2", "FMA3"])
        ["AVX2", "FMA3"]
        rÑ   T)rË  c                 ó   •— g | ]}|‰v¯|‘Œ	S rd   rd   )rû   rÌ  r   s     €rz   rü   z*_Feature.feature_ahead.<locals>.<listcomp>œ  s#   ø€ Ð6Ð6Ð6�q Q¨gÐ%5Ð%5�Ð%5Ð%5Ð%5r|   r   ©rÁ  Nr   )r§   r·   rÕ   rÍ  r×   rÄ  )rt   r´  Úaheadr   s      @rz   Úfeature_aheadz_Feature.feature_ahead}  s�   ø€ õ6 ˜5¥#Ñ&Ô&ð	
å˜˜zÑ*Ô*ð	
ð 	
ð+ð ×&Ò& u¸4Ð&Ñ@Ô@ˆØ6Ð6Ð6Ð6˜EÐ6Ñ6Ô6ˆÝˆu‰:Œ:˜Š?ˆ?ð ×'Ò'¨°tÐ'Ñ<Ô<¸R¸a¸RÔ@ˆEØˆr|   c                 ór  ‡ ‡‡— t          |t          ¦  «        st          |d¦  «        sJ ‚g }|D ]‡Š‰                      ‰¦  «        Šˆˆˆ fd„|D ¦   «         }|rI‰                      |‰gz   ¦  «        }‰|dd…         vrŒO|                     |dd…         d         ¦  «         |                     ‰¦  «         Œˆ|S )am  
        same as 'feature_ahead()' but if both features implied each other
        and keep the highest interest.

        Parameters
        ----------
        'names': sequence
            sequence of CPU feature names in uppercase.

        Returns
        -------
        list of CPU features sorted as-is 'names'

        Examples
        --------
        >>> self.feature_untied(["SSE2", "SSE3", "SSE41"])
        ["SSE2", "SSE3", "SSE41"]
        # assume AVX2 and FMA3 implies each other
        >>> self.feature_untied(["SSE2", "SSE3", "SSE41", "FMA3", "AVX2"])
        ["SSE2", "SSE3", "SSE41", "AVX2"]
        rÑ   c                 óJ   •— g | ]}|‰v ¯‰‰                      |¦  «        v ¯|‘Œ S rd   )rÍ  )rû   Únnr   rÌ  rt   s     €€€rz   rü   z+_Feature.feature_untied.<locals>.<listcomp>À  sD   ø€ ð ð ð ØØ˜�=�= Q¨$×*>Ò*>¸rÑ*BÔ*BÐ%BÐ%Bð Ø%BÐ%BÐ%Br|   r   Nr   )r§   r·   rÕ   rÍ  rÄ  Úremoverõ   )rt   r´  ÚfinalÚtiedr   rÌ  s   `   @@rz   Úfeature_untiedz_Feature.feature_untied£  sý   øøø€ õ. ˜5¥#Ñ&Ô&ð	
å˜˜zÑ*Ô*ð	
ð 	
ð+ð ˆØð 	ð 	ˆAØ×*Ò*¨1Ñ-Ô-ˆGðð ð ð ð ð Ø"ðñ ô ˆDð ð *Ø×*Ò*¨4°1°#©:Ñ6Ô6�Ø˜D   œHÐ$Ð$ØØ—’˜T " 1 "œX aœ[Ñ)Ô)Ð)Ø�LŠL˜‰OŒOˆOˆOØˆr|   c                 ó  ‡ ‡‡— ˆˆ fd„Št          |t          ¦  «        st          |¦  «        dk    r! ‰|¦  «        }|                     ¦   «          |S ‰                      |¦  «        }ˆfd„|D ¦   «         }‰                      |¦  «        S )zÝ
        same as `feature_implies_c()` but stop collecting implied
        features when feature's option that provided through
        parameter 'keyisfalse' is False, also sorting the returned
        features.
        c                 óê   •— ‰                      | ¦  «        } ‰                     | d¬¦  «        } t          | ¦  «        D ]5\  }}‰j        |                              ‰d¦  «        s| d |dz   …         }  nŒ6| S )NTrÒ  r   )rÏ  rÄ  rƒ  r¤  rÙ   )ÚtnamesrŒ  rÌ  Ú
keyisfalsert   s      €€rz   Útilz%_Feature.feature_get_til.<locals>.tilÓ  s‹   ø€ à×+Ò+¨FÑ3Ô3ˆFØ×(Ò(¨¸Ð(Ñ>Ô>ˆFÝ! &Ñ)Ô)ð ð ‘��1ØÔ-¨aÔ0×4Ò4°ZÀÑFÔFð Ø# D Q q¡S Dœ\�FØ�Eðð ˆMr|   r   c                 ó0   •— h | ]} ‰|¦  «        D ]}|’ŒŒS rd   rd   )rû   rÌ  Útrà  s      €rz   ú	<setcomp>z+_Feature.feature_get_til.<locals>.<setcomp>ä  s.   ø€ Ð2Ð2Ð2�q¨3¨3¨q©6¬6Ð2Ð2 a�Ð2Ð2Ð2Ð2r|   )r§   r·   r×   rÁ  rÔ  rÄ  )rt   r´  rß  rà  s   ` `@rz   Úfeature_get_tilz_Feature.feature_get_tilÌ  s¤   øøø€ ð	ð 	ð 	ð 	ð 	ð 	õ �e�SÑ!Ô!ð 	¥S¨¡Z¤Z°1¢_ _Ø�C˜‘J”JˆEà�MŠM‰OŒOˆOØˆLà×"Ò" 5Ñ)Ô)ˆØ2Ð2Ð2Ð2˜EÐ2Ñ2Ô2ˆØ×"Ò" 5Ñ)Ô)Ð)r|   c           	      ó¶   — |                       |d¦  «        }g }|D ]=}| j        |         }||                     d|                     d|g¦  «        ¦  «        z  }Œ>|S )z€
        Return a list of CPU features that required to be detected
        sorted from the lowest to highest interest.
        r,   r@   r?   )rä  r¤  rÙ   )rt   r´  r@   rÌ  rC  s        rz   Úfeature_detectz_Feature.feature_detectç  sj   € ð
 ×$Ò$ UÐ,<Ñ=Ô=ˆØˆØð 	;ð 	;ˆAØÔ& qÔ)ˆAØ�a—e’e˜H a§e¢e¨G°a°SÑ&9Ô&9Ñ:Ô:Ñ:ˆFˆFØˆr|   c                 ó
  — |                       |                      |¦  «        ¦  «        }g }|D ]B}| j        |         }|                     dg ¦  «        }|r|                      |¦  «        sŒ=||z  }ŒC|                      |¦  «        S )zi
        Return a list of CPU features flags sorted from the lowest
        to highest interest.
        ra   )rÄ  rÏ  r¤  rÙ   rd  rx  )rt   r´  ra   rÌ  rC  rE  s         rz   Úfeature_flagsz_Feature.feature_flagsó  s˜   € ð ×#Ò# D×$:Ò$:¸5Ñ$AÔ$AÑBÔBˆØˆØð 	ð 	ˆAØÔ& qÔ)ˆAØ—’�g˜rÑ"Ô"ˆAØð ˜D×.Ò.¨qÑ1Ô1ð ØØ�Q‰JˆEˆEØ×&Ò& uÑ-Ô-Ð-r|   c                 óî  — |€|                       |¦  «        }|                      d|›dd                     |¦  «        ›d�¦  «         t          j                             | j        d|                     ¦   «         z  ¦  «        }t          j                             |¦  «        s|                      d|¦  «         |  	                    ||| j
        d         z   |¬	¦  «        }|s|                      d
d¬¦  «         |S )a­  
        Test a certain CPU feature against the compiler through its own
        check file.

        Parameters
        ----------
        name : str
            Supported CPU feature name.

        force_flags : list or None, optional
            If None(default), the returned flags from `feature_flags()`
            will be used.

        macros : list of tuples, optional
            A list of C macro definitions.
        Nztesting feature 'z' with flags (rÒ   rô   zcpu_%s.czfeature test file is not existr
   ©r³   rq  Trµ   )rè  r½   r–   r‹   rŒ   r™   Úlowerr&  rä   rÄ   rb  )rt   rï   r²  r³   rr  rÂ   s         rz   Úfeature_testz_Feature.feature_test  s   € ð$ ÐØ×,Ò,¨TÑ2Ô2ˆKà�ŠˆàˆDˆD�#—(’(˜;Ñ'Ô'Ð'Ð'ð
ñ	ô 	ð 	õ ”G—L’LØÔ  *¨t¯zªz©|¬|Ñ";ñ
ô 
ˆ	õ Œw�~Š~˜iÑ(Ô(ð 	IØ�OŠOÐ<¸iÑHÔHÐHà�~Š~Ø�{ T¤]°8Ô%<Ñ<ÀVð ñ 
ô 
ˆð ð 	9Ø�MŠMÐ*°4ˆMÑ8Ô8Ð8Øˆr|   c                 ó  — |                      ¦   «         sJ ‚|�t          |t          ¦  «        sJ ‚|| j        v }|rM|                      |¦  «        D ]}|                      |||¬¦  «        s dS Œ|                      |||¬¦  «        sdS |S )aµ  
        Check if a certain CPU feature is supported by the platform and compiler.

        Parameters
        ----------
        name : str
            CPU feature name in uppercase.

        force_flags : list or None, optional
            If None(default), default compiler flags for every CPU feature will
            be used during test.

        macros : list of tuples, optional
            A list of C macro definitions.
        Nrê  F)r¸  r§   r¨   r¤  rÍ  rì  )rt   rï   r²  r³   Ú	supportedÚimpls         rz   r³  z_Feature.feature_is_supported+  sµ   € ð" �|Š|‰~Œ~ÐÐˆ~ØÐ"¥j°½dÑ&CÔ&CÐ"Ð"ÐCà˜DÔ2Ð2ˆ	Øð 	Ø×,Ò,¨TÑ2Ô2ð !ð !�Ø×(Ò(¨¨{À6Ð(ÑJÔJð !Ø ˜5˜5ð!à×$Ò$ T¨;¸vÐ$ÑFÔFð Ø�uØÐr|   c                 óæ   ‡ — t          |t          ¦  «        sJ ‚‰ j        |         }|                     dd¦  «        }|€3ˆ fd„|                     dg ¦  «        D ¦   «         }|ot	          |¦  «        }|S )zM
        check if the feature can be auto-vectorized by the compiler
        rc   Nc                 ó<   •— g | ]}‰                      |g¦  «        ‘ŒS rd   )rd  r½  s     €rz   rü   z0_Feature.feature_can_autovec.<locals>.<listcomp>Q  s6   ø€ ð ð ð Ø,-�×"Ò" A 3Ñ'Ô'ðð ð r|   ra   )r§   r·   r¤  rÙ   Úany)rt   rï   rC  ÚcanÚvalid_flagss   `    rz   Úfeature_can_autovecz_Feature.feature_can_autovecH  s�   ø€ õ
 ˜$¥Ñ$Ô$Ð%Ð%Ð$ØÔ" 4Ô(ˆØ�eŠe�I˜tÑ$Ô$ˆØˆ;ðð ð ð Ø12·²°wÀÑ1CÔ1Cðñ ô ˆKð Ð2¥# kÑ"2Ô"2ˆCØˆ
r|   c                 ó¤  — t          |t          ¦  «        sJ ‚| j        |         }|                     dg ¦  «        }|sg S |                      d|z  |¦  «         |                      |¦  «        }g }g }|D ]Â}t          j                             | j	        d| 
                    ¦   «         z  ¦  «        }t          j                             |¦  «        s|                      d|¦  «         |                      ||| j        d         z   ¦  «        }	|	r|                     |¦  «         Œ­|                     |¦  «         ŒÃ|r|                      d|d¬¦  «         |S )	zÐ
        Return a list of supported extra checks after testing them against
        the compiler.

        Parameters
        ----------
        names : str
            CPU feature name in uppercase.
        r:   z%Testing extra checks for feature '%s'z
extra_%s.czextra check file does not existr
   ztesting failed for checksTrµ   )r§   r·   r¤  rÙ   r½   rè  r‹   rŒ   r–   r™   rë  r&  rä   rÄ   rb  rõ   )
rt   rï   rC  r:   ra   Ú	availableÚnot_availableÚchkrr  Úis_supporteds
             rz   Úfeature_extra_checksz_Feature.feature_extra_checksW  sb  € õ ˜$¥Ñ$Ô$Ð$Ð$Ð$ØÔ" 4Ô(ˆØ—u’u˜^¨RÑ0Ô0ˆØð 	ØˆIà�ŠÐ=ÀÑDÀlÑSÔSÐSØ×"Ò" 4Ñ(Ô(ˆØˆ	ØˆØð 	*ð 	*ˆCÝœŸšØÔ$ l°S·Y²Y±[´[Ñ&@ñô ˆIõ ”7—>’> )Ñ,Ô,ð NØ—’Ð AÀ9ÑMÔMÐMàŸ>š>¨)°U¸T¼]È8Ô=TÑ5TÑUÔUˆLØð *Ø× Ò  Ñ%Ô%Ð%Ð%à×$Ò$ SÑ)Ô)Ð)Ð)àð 	SØ�MŠMÐ5°}ÈTˆMÑRÔRÐRØÐr|   r   c                 óÎ  ‡— |                      ¦   «         sJ ‚| j                             |¦  «        }|€J ‚d|z  d| j        ›d|›d�g}|d„ |                     dg ¦  «        D ¦   «         z  }|                     dg ¦  «        }||                      |¦  «        z  }|D ]!}|d	| j        ›d|›�d
| j        ›d|›d�dgz  }Œ"‰dk    rˆfd„|D ¦   «         }d                     |¦  «        S )a"  
        Generate C preprocessor definitions and include headers of a CPU feature.

        Parameters
        ----------
        'feature_name': str
            CPU feature name in uppercase.
        'tabs': int
            if > 0, align the generated strings to the right depend on number of tabs.

        Returns
        -------
        str, generated C preprocessor

        Examples
        --------
        >>> self.feature_c_preprocessor("SSE3")
        /** SSE3 **/
        #define NPY_HAVE_SSE3 1
        #include <pmmintrin.h>
        Nz
/** %s **/z#define ÚHAVE_z 1c                 ó   — g | ]}d |z  ‘ŒS )z#include <%s>rd   )rû   r3  s     rz   rü   z3_Feature.feature_c_preprocessor.<locals>.<listcomp>œ  s*   € ð 
ð 
ð 
Ø$%ˆO˜aÑð
ð 
ð 
r|   r   r?   z#ifndef z		#define z#endifr   c                 ó    •— g | ]
}d ‰z  |z   ‘ŒS )ú	rd   )rû   ÚlÚtabss     €rz   rü   z3_Feature.feature_c_preprocessor.<locals>.<listcomp>¬  s!   ø€ Ð4Ð4Ð4¨�d˜4‘i 1‘_Ð4Ð4Ð4r|   ú
)r¸  r¤  rÙ   r›   rû  r–   )rt   r©  r  r¢  ÚpreprÚ
extra_defsÚedefs     `    rz   Úfeature_c_preprocessorz_Feature.feature_c_preprocessor~  sS  ø€ ð, ×#Ò#Ñ%Ô%Ð&Ð&Ð%ØÔ(×,Ò,¨\Ñ:Ô:ˆØÐ"Ð"Ð"ð ˜<Ñ'Ð'Ø%)Ô%7Ð%7Ð%7¸¸¸ÐFð
ˆð 	ð 
ð 
Ø)0¯ª°YÀÑ)CÔ)Cð
ñ 
ô 
ñ 	
ˆð —[’[ ¨"Ñ-Ô-ˆ
Ø�d×/Ò/°Ñ=Ô=Ñ=ˆ
Øð 	ð 	ˆDð ˆEØ'+Ô'9Ð'9Ð'9¸4¸4Ð@Ð@Ø+/Ô+=Ð+=Ð+=¸t¸t¸tÐDØðñ ˆEˆEð �!Š8ˆ8Ø4Ð4Ð4Ð4¨eÐ4Ñ4Ô4ˆEØ�yŠy˜ÑÔÐr|   ©F)r   )r‘   r’   r“   r”   r�   r¶  r¹  rÄ  rÍ  rÏ  rÔ  rÛ  rä  ræ  r  rR  rè  rì  r³  rõ  rû  r  rd   r|   rz   rœ  rœ  Ê  sŒ  € € € € € ðð ð &ð  &ð  &ðD #'°DÀð !ð !ð !ð !ðF*ð *ð *ð;ð ;ð ;ð ;ð4/ð /ð /ð /ðb8ð 8ð 8ð$ð $ð $ðL'ð 'ð 'ðR*ð *ð *ð6
ð 
ð 
ð „Yð.ð .ñ „Yð.ð „YØ-1¸"ð %ð %ð %ñ „Yð%ðN „YØ59À"ð ð ð ñ „Yðð8 „Yðð ñ „Yðð „Yð#ð #ñ „Yð#ðL/ ð / ð / ð / ð / ð / r|   rœ  c                   ó    — e Zd ZdZd„ Zd„ Z ej        d¦  «        Zd„ Z	 ej        d¦  «        Z
d„ Zd„ Zd	„ Zd
„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ ZdS )Ú_Parseaé  A helper class that parsing main arguments of `CCompilerOpt`,
    also parsing configuration statements in dispatch-able sources.

    Parameters
    ----------
    cpu_baseline : str or None
        minimal set of required CPU features or special options.

    cpu_dispatch : str or None
        dispatched set of additional CPU features or special options.

    Special options can be:
        - **MIN**: Enables the minimum CPU features that utilized via `_Config.conf_min_features`
        - **MAX**: Enables all supported CPU features by the Compiler and platform.
        - **NATIVE**: Enables all CPU features that supported by the current machine.
        - **NONE**: Enables nothing
        - **Operand +/-**: remove or add features, useful with options **MAX**, **MIN** and **NATIVE**.
            NOTE: operand + is only added for nominal reason.

    NOTES:
        - Case-insensitive among all CPU features and special options.
        - Comma or space can be used as a separator.
        - If the CPU feature is not supported by the user platform or compiler,
          it will be skipped rather than raising a fatal error.
        - Any specified CPU features to 'cpu_dispatch' will be skipped if its part of CPU baseline features
        - 'cpu_baseline' force enables implied features.

    Attributes
    ----------
    parse_baseline_names : list
        Final CPU baseline's feature names(sorted from low to high)
    parse_baseline_flags : list
        Compiler flags of baseline features
    parse_dispatch_names : list
        Final CPU dispatch-able feature names(sorted from low to high)
    parse_target_groups : dict
        Dictionary containing initialized target groups that configured
        through class attribute `conf_target_groups`.

        The key is represent the group name and value is a tuple
        contains three items :
            - bool, True if group has the 'baseline' option.
            - list, list of CPU features.
            - list, list of extra compiler flags.

    c           	      óÆ  ‡ — t          d ‰ j        g f‰ j        ‰ j        g f‰ j        d g f‰ j        d g f‰ j        d dgf¬¦  «        ‰ _        t          ‰ d¦  «        rd S g ‰ _	        g ‰ _
        g ‰ _        i ‰ _        ‰ j        rd x}}‰                      d¦  «         |�r‰                      d|¦  «        }‰                      |¦  «        }‰                      |¦  «        ‰ _
        ‰                      ‰                      |¦  «        ¦  «        ‰ _	        ‰                      d¦  «         |��‰                      d|¦  «        }ˆ fd„|D ¦   «         }|                     |¦  «        }‰                      ‰                      |¦  «        ¦  «        ‰ _        t+          |¦  «        d	k    r‰                      d
|d¦  «         ‰                      d¦  «         ‰ j                             ¦   «         D ]y\  }}‰                      d|¦  «         |                     ¦   «         }|r|                     ¦   «         sdg g f‰ j        |<   ŒS‰                      |¦  «        \  }	}
}|	|
|f‰ j        |<   Œzd‰ _        d S )NÚMAXOPT)ÚKEEP_BASELINEÚ	KEEP_SORTr  ÚWERRORÚAUTOVECÚparse_is_cachedzcheck requested baselineÚcpu_baselinez&check requested dispatch-able featuresÚcpu_dispatchc                 ó&   •— h | ]}|‰j         v¯|’ŒS rd   ©Úparse_baseline_namesr½  s     €rz   rã  z"_Parse.__init__.<locals>.<setcomp>  s1   ø€ ð ð ð ØØ˜DÔ5Ð5Ð5ð Ø5Ð5Ð5r|   r   zskip featureszsince its part of baselinezinitialize targets groupszparse target groupFT)rk   Ú_parse_policy_not_keepbaseÚ_parse_policy_keepsortÚ_parse_policy_not_keepsortÚ_parse_policy_maxoptÚ_parse_policy_werrorÚ_parse_policy_autovecÚ_parse_policiesrÕ   r  Úparse_baseline_flagsÚparse_dispatch_namesÚparse_target_groupsre   r½   Ú_parse_arg_featuresr¶  rè  rÄ  rÏ  Ú
differencer×   rš   r'  r§  ÚstripÚ_parse_target_tokensr  )rt   r  r  Úbaseline_namesÚcpu_dispatch_Úconflict_baselineÚ
group_namer€  Ú
GROUP_NAMEÚhas_baselineÚfeaturesÚextra_flagss   `           rz   r�   z_Parse.__init__Þ  sí  ø€ Ý#ð �dÔ5Øðð
 Ô+ØÔ/Øðð Ô)¨4Øðð
 Ô)¨4Øðð
 Ô*¨DØ�
ðð' 
ñ  
ô  
ˆÔõ0 �4Ð*Ñ+Ô+ð 	ØˆFà$&ˆÔ!Ø$&ˆÔ!Ø$&ˆÔ!Ø#%ˆÔ àŒ=ð 	/à*.Ð.ˆL˜<à�ŠÐ0Ñ1Ô1Ð1ØÐ#Ø×3Ò3°NÀLÑQÔQˆLØ!×/Ò/°Ñ=Ô=ˆNØ(,×(:Ò(:¸>Ñ(JÔ(JˆDÔ%Ø(,×(;Ò(;Ø×&Ò& ~Ñ6Ô6ñ)ô )ˆDÔ%ð 	�ŠÐ>Ñ?Ô?Ð?ØÐ#Ø ×4Ò4°^À\ÑRÔRˆMðð ð ð Ø(ðñ ô ˆLð !.× 8Ò 8¸Ñ FÔ FÐØ(,×(;Ò(;Ø×"Ò" <Ñ0Ô0ñ)ô )ˆDÔ%õ Ð$Ñ%Ô%¨Ò)Ð)Ø—’Ø#Ð%6Ð8Tñô ð ð 	�ŠÐ1Ñ2Ô2Ð2Ø"&Ô"9×"?Ò"?Ñ"AÔ"Að 	ð 	ÑˆJ˜Ø�MŠMÐ.°
Ñ;Ô;Ð;Ø#×)Ò)Ñ+Ô+ˆJØð  §¢¡¤ð ð
 ˜2˜rð8�Ô(¨Ñ4ð à×)Ò)¨&Ñ1Ô1ñ 0ˆL˜( Kð ˜h¨ð4ˆDÔ$ ZÑ0Ð0ð  $ˆÔÐÐr|   c                 óž  — |                       d|¦  «         t          |¦  «        5 }d}d}d}d}d}d}t          |¦  «        D ]š\  }	}
|	|k    r|                      d¦  «          ny|dk    r.|
                     |¦  «        }|dk    rŒD|t          |¦  «        z  }||
z  }|
                     |¦  «        }|dk    r$|t          |¦  «        t          |
¦  «        z
  z  } nŒ›ddd¦  «         n# 1 swxY w Y   |dk    r|                      d	|z  ¦  «         |dk    r|                      d
|z  ¦  «         |||…         }|                      |¦  «        S )aÖ  
        Fetch and parse configuration statements that required for
        defining the targeted CPU features, statements should be declared
        in the top of source in between **C** comment and start
        with a special mark **@targets**.

        Configuration statements are sort of keywords representing
        CPU features names, group of statements and policies, combined
        together to determine the required optimization.

        Parameters
        ----------
        source : str
            the path of **C** source file.

        Returns
        -------
        - bool, True if group has the 'baseline' option
        - list, list of CPU features
        - list, list of extra compiler flags
        z!looking for '@targets' inside -> r   iè  z@targetséÿÿÿÿz*/zreached the max of linesNz(expected to find '%s' within a C commentzexpected to end with '%s')r½   r=  rƒ  rä   Úfindr×   r$  )rt   r¾   rt  r€  Úmax_to_reachÚ
start_withÚ	start_posÚend_withÚend_posÚcurrent_lineÚlines              rz   Úparse_targetsz_Parse.parse_targets0  s·  € ð, 	�ŠÐ9¸6ÑBÔBÐBå�&‰\Œ\ð 	˜RØˆFØˆLØ#ˆJØˆIØˆHØˆGÝ&/°¡m¤mð ð Ñ"�˜dØ <Ò/Ð/Ø—O’OÐ$>Ñ?Ô?Ð?Ø�EØ ’?�?Ø $§	¢	¨*Ñ 5Ô 5�IØ  B’�Ø Ø¥ Z¡¤Ñ0�IØ˜$‘�ØŸ)š) HÑ-Ô-�Ø˜b’=�=Ø�s 6™{œ{­S°©Y¬YÑ6Ñ6�GØ�Eð !ð%	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð, ˜Š?ˆ?Ø�OŠOÐFÈÑSÑTÔTÐTØ�bŠ=ˆ=Ø�OŠOÐ7¸(ÑBÑCÔCÐCà˜	 'Ð)Ô*ˆØ×(Ò(¨Ñ0Ô0Ð0s   ¦B7C)Ã)C-Ã0C-z\s|,|([+-])c           	      óŠ  — t          |t          ¦  «        s|                      d|z  ¦  «         t          ¦   «         }t	          t          d t          j        | j        |¦  «        ¦  «        ¦  «        }d}|D �]L}|d         dv r|                      |d¦  «         |dk    rd}Œ,|dk    rd}Œ5| 	                    ¦   «         }t          ¦   «         }|d	k    rn¿|d
k    r>| j
        d         }	|	s|                      |d¦  «         |                      |	dg¬¦  «        }n{|dk    r| j                             ¦   «         }n[|dk    r| j        }nM|| j        v r|                     |¦  «         n.|                      |¦  «        s|                      |d|z  ¦  «         |r|                     |¦  «        }n|                     |¦  «        }d}�ŒN|S )Nzexpected a string in '%s'Tr   )ú#ú$zYtarget groups and policies aren't allowed from arguments, only from dispatch-able sourcesr{  ú-FÚNONEÚNATIVEr   z-native option isn't supported by the compiler)ÚDETECT_FEATURESr   r±  ÚMAXÚMINz&, '%s' isn't a known feature or option)r§   r·   rä   r   r¨   r†  r  rc  Ú_parse_regex_argr§  rb  r¶  r¤  r9  r¦  rŠ  r¹  rÇ  r"  )
rt   Úarg_nameÚreq_featuresÚfinal_featuresr€  rõ   ÚtokÚTOKÚfeatures_tor   s
             rz   r!  z_Parse._parse_arg_featuresg  s  € Ý˜,­Ñ,Ô,ð 	DØ�OŠOÐ7¸(ÑBÑCÔCÐCå™œˆå•f˜T¥2¤8¨DÔ,AÀ<Ñ#PÔ#PÑQÔQÑRÔRˆØˆØð ,	ñ ,	ˆCØ�1Œv˜Ð#Ð#Ø—’Øð 6ñô ð ð
 �cŠzˆzØ�ØØ�cŠzˆzØ�Øà—)’)‘+”+ˆCÝ™%œ%ˆKØ�fŠ}ˆ}ØØ˜’�Øœ xÔ0�Øð Ø—O’O HØGñô ð ð #×0Ò0Ø &Ð0FÐ/Gð 1ñ ô ��ð ˜’�Ø"Ô4×9Ò9Ñ;Ô;��Ø˜’�Ø"Ô.��à˜$Ô0Ð0Ð0Ø—O’O CÑ(Ô(Ð(Ð(à×0Ò0°Ñ5Ô5ð ØŸš¨ØDÀsÑJñô ð ð ð HØ!/×!5Ò!5°kÑ!BÔ!B��à!/×!:Ò!:¸;Ñ!GÔ!G�àˆF‰FàÐr|   z\s|[*,/]|([()])c           	      ó^  — t          |t          ¦  «        sJ ‚g }g }d}t          ¦   «         }t          ¦   «         }d }t          t	          d t          j        | j        |¦  «        ¦  «        ¦  «        }|s|                      d¦  «         |D �]!}| 	                    ¦   «         }	|d         }
|
dv r|                      d¦  «         Œ9|
dk    r@|�|                      d¦  «         | 
                    |                      |	¦  «        ¦  «         Œ|
dk    r4|�|                      d	¦  «         |                      |	|||¦  «        \  }}}Œ¹|
d
k    r&|�|                      d¦  «         t          ¦   «         }Œå|
dk    r‹|€|                      d¦  «         |                      |¦  «        }|€#| 
                    t          |¦  «        ¦  «         n6t          |¦  «        dk    r|d         }|r||vr|                     |¦  «         d }�Œv|	dk    r|�|                      d¦  «         d}�Œ—|�| 
                    |	¦  «         �Œ°|                      |	¦  «        s|                      d|	z  ¦  «         |	| j        v p|	| j        v }|r|	|vr|                     |	¦  «         �Œ| 
                    |	¦  «         �Œ#|�|                      d¦  «         |r|                      d|d¦  «         |                      |¦  «        }t          |¦  «        D ]N}| j        |         \  }}}|D ]8}||v rŒ|                      d|›d|›d�¦  «         | 
                    |¦  «         Œ9ŒO| j                             ¦   «         D ]@\  }\  }}}d }||v r|}|                      d|z  ¦  «         n|}|sŒ/ ||||¦  «        \  }}}ŒA|||fS )NFzexpected one token at leastr   )r{  r;  ze+/- are 'not' allowed from target's groups or @targets, only from cpu_baseline and cpu_dispatch parmsr:  zCpolicies aren't allowed inside multi-target '()', only CPU featuresr9  zHtarget groups aren't allowed inside multi-target '()', only CPU featuresró   z"unclosed multi-target, missing ')'rô   z$multi-target opener '(' wasn't foundr   ÚBASELINEz/baseline isn't allowed inside multi-target '()'Tzinvalid target name '%s'zskip targetsz.not part of baseline or dispatch-able featureszpolicy 'z' force enables 'ú'zpolicy '%s' is ON)r§   r·   r   r¨   r†  r  rc  Ú_parse_regex_targeträ   r§  rŠ  Ú_parse_token_policyÚ_parse_token_groupÚ_parse_multi_targetÚtupler×   rõ   r¹  r  r  r½   rÛ  r  r'  )rt   r€  Úfinal_targetsr,  r*  ÚskippedÚpoliciesÚmulti_targetrE  rF  ÚchÚtargetsÚ
is_enabledÚpr”  ÚdepsrC  ÚhaveÚnhaveÚfuncs                       rz   r$  z_Parse._parse_target_tokens   sŒ  € Ý˜&¥#Ñ&Ô&Ð'Ð'Ð&ØˆØˆØˆå‘5”5ˆÝ‘5”5ˆØˆå•f˜T¥2¤8¨DÔ,DÀfÑ#MÔ#MÑNÔNÑOÔOˆØð 	;Ø�OŠOÐ9Ñ:Ô:Ð:àð >	!ñ >	!ˆCØ—)’)‘+”+ˆCØ�Q”ˆBØ�ZÐÐØ—’ðDñô ð ð ð �s’�ØÐ+Ø—O’Oð.ñô ð ð —’˜T×5Ò5°cÑ:Ô:Ñ;Ô;Ð;Ð;Ø�s’�ØÐ+Ø—O’Oð.ñô ð ð
 ×'Ò'¨¨\¸=È+ÑVÔVñ 9�˜m¨[¨[à�s’�ØÐ+Ø—O’OÐ$HÑIÔIÐIÝ"™uœu��Ø�s’�ØÐ'Ø—O’OÐ$JÑKÔKÐKØ×2Ò2°<Ñ@Ô@�Ø�?Ø—K’K¥ lÑ 3Ô 3Ñ4Ô4Ð4Ð4å˜7‘|”| qÒ(Ð(Ø")¨!¤*˜Øð 6 7°-Ð#?Ð#?Ø%×,Ò,¨WÑ5Ô5Ð5Ø#�‘à˜*Ò$Ð$Ø#Ð/ØŸšÐ(YÑZÔZÐZØ#'�LÙàÐ+Ø ×$Ò$ SÑ)Ô)Ð)Ùà×,Ò,¨SÑ1Ô1ð FØ—O’OÐ$>ÀÑ$DÑEÔEÐEð ˜4Ô4Ð4ð 5Ø˜4Ô4Ð4ð ð ð Ø -Ð/Ð/Ø%×,Ò,¨SÑ1Ô1Ð1Ùà—’˜CÑ Ô Ð Ñ àÐ#Ø�OŠOÐ@ÑAÔAÐAØð 	Ø�MŠMØ Ø@ñô ð ð
 ×+Ò+¨MÑ:Ô:ˆõ �h‘”ð 		 ð 		 ˆAØÔ-¨aÔ0‰JˆAˆq�$Øð  ð  �Ø˜�=�=ØØ—’�à�A�A�q�q�qðñô ð ð —’˜Q‘”��ð ð $(Ô#7×#=Ò#=Ñ#?Ô#?ð 	ð 	ÑˆAÑ��e˜QØˆDØ�Hˆ}ˆ}Ø�Ø—’Ð1°AÑ5Ñ6Ô6Ð6Ð6à�Øð ØØ7;°tØ˜m¨[ñ8ô 8Ñ4ˆL˜-¨¨ð ˜]¨KÐ7Ð7r|   c                 ó  — t          |¦  «        dk    s|dd…         |d         k    r|                      d¦  «         |dd…         }|| j        vr0|                      d|z  | j                             ¦   «         ¦  «         |S )zvalidate policy tokenr   r.  Nr   z*'$' must stuck in the begin of policy namez6'%s' is an invalid policy name, available policies are)r×   rä   r  r9  )rt   Útokens     rz   rL  z_Parse._parse_token_policy  sŒ   € åˆu‰:Œ:˜Š?ˆ?˜e B C Cœj¨E°!¬HÒ4Ð4Ø�OŠOÐHÑIÔIÐIØ�a�b�b”	ˆØ˜Ô,Ð,Ð,Ø�OŠOØHÈ5ÑPØÔ$×)Ò)Ñ+Ô+ñô ð ð ˆr|   c                 ó–  ‡‡— t          |¦  «        dk    s|dd…         |d         k    r|                      d¦  «         |dd…         }| j                             |ddg f¦  «        \  }}}|€3|                      d|z  dz   | j                             ¦   «         ¦  «         |rd	}‰ˆfd
„|D ¦   «         z  Š‰ˆfd„|D ¦   «         z  Š|‰‰fS )zvalidate group tokenr   r.  Nr   z)'#' must stuck in the begin of group nameFz&'%s' is an invalid target group name, zavailable target groups areTc                 ó   •— g | ]}|‰v¯|‘Œ	S rd   rd   )rû   rE  rP  s     €rz   rü   z-_Parse._parse_token_group.<locals>.<listcomp>2  s#   ø€ ÐHÐHÐH °¸-Ð1GÐ1G˜!Ð1GÐ1GÐ1Gr|   c                 ó   •— g | ]}|‰v¯|‘Œ	S rd   rd   )rû   rE  r,  s     €rz   rü   z-_Parse._parse_token_group.<locals>.<listcomp>3  s#   ø€ ÐHÐHÐH˜a°1¸KÐ3GÐ3G˜Ð3GÐ3GÐ3Gr|   )r×   rä   r   rÙ   r9  )rt   r]  r*  rP  r,  Úghas_baselineÚgtargetsÚgextra_flagss      ``   rz   rM  z_Parse._parse_token_group   s  øø€ åˆu‰:Œ:˜Š?ˆ?˜e B C Cœj¨E°!¬HÒ4Ð4Ø�OŠOÐGÑHÔHÐHà�a�b�b”	ˆØ04Ô0H×0LÒ0LØ�E˜4 Ð$ñ1
ô 1
Ñ-ˆ�x ð ÐØ�OŠOØ8¸5Ñ@Ø-ñ.àÔ(×-Ò-Ñ/Ô/ñô ð ð
 ð 	 ØˆLàÐHÐHÐHÐH XÐHÑHÔHÑHˆØÐHÐHÐHÐH <ÐHÑHÔHÑHˆØ˜]¨KÐ7Ð7r|   c                 óL  ‡ — |s‰                       d¦  «         t          ˆ fd„|D ¦   «         ¦  «        s‰                       d|¦  «         t          ˆ fd„|D ¦   «         ¦  «        sdS ‰                      |¦  «        }|sdS ‰                      |¦  «        }t	          |¦  «        }|S )z9validate multi targets that defined between parentheses()zempty multi-target '()'c                 ó:   •— g | ]}‰                      |¦  «        ‘ŒS rd   )r¹  ©rû   Útarrt   s     €rz   rü   z._Parse._parse_multi_target.<locals>.<listcomp>;  s4   ø€ ð 
ð 
ð 
Ø+.ˆD×!Ò! #Ñ&Ô&ð
ð 
ð 
r|   z#invalid target name in multi-targetc                 ó4   •— g | ]}|‰j         v p|‰j        v ‘ŒS rd   )r  r  rf  s     €rz   rü   z._Parse._parse_multi_target.<locals>.<listcomp>?  sC   ø€ ð 
ð 
ð 
ð
 ð �tÔ0Ð0ð 1Ø�tÔ0Ð0ð
ð 
ð 
r|   N)rä   ÚallrÔ  rÄ  rO  )rt   rU  s   ` rz   rN  z_Parse._parse_multi_target6  sô   ø€ ð ð 	7Ø�OŠOÐ5Ñ6Ô6Ð6Ýð 
ð 
ð 
ð 
Ø29ð
ñ 
ô 
ñ ô ð 	Lð �OŠOÐAÀ7ÑKÔKÐKÝð 
ð 
ð 
ð 
ð
 ð
ñ 
ô 
ñ ô ð 	ð �4Ø×$Ò$ WÑ-Ô-ˆØð 	Ø�4à×%Ò% gÑ.Ô.ˆÝ˜‘.”.ˆØˆr|   c                 ó,  ‡ — g }|dd…         D ]j}d}t          |t          ¦  «        r
|‰ j        v }nt          ˆ fd„|D ¦   «         ¦  «        }|r*|                     |¦  «         |                     |¦  «         Œk|r‰                      d|¦  «         |||fS )zskip all baseline featuresNFc                 ó"   •— g | ]}|‰j         v ‘ŒS rd   r  r½  s     €rz   rü   z5_Parse._parse_policy_not_keepbase.<locals>.<listcomp>X  s1   ø€ ð ð ð àð ˜Ô2Ð2ðð ð r|   zskip baseline features)r§   r·   r  ri  rõ   rØ  r½   )rt   r*  rP  r,  rQ  rg  Úis_bases   `      rz   r  z!_Parse._parse_policy_not_keepbaseO  sØ   ø€ àˆØ    Ô#ð 	*ð 	*ˆCØˆGÝ˜#�sÑ#Ô#ð Ø Ô!:Ð:��õ ð ð ð ð à ðñ ô ñ ô �ð ð *Ø—’˜sÑ#Ô#Ð#Ø×$Ò$ SÑ)Ô)Ð)øàð 	=Ø�MŠMÐ2°GÑ<Ô<Ð<à˜]¨KÐ7Ð7r|   c                 ó:   — |                       d|d¦  «         |||fS )z$leave a notice that $keep_sort is onz/policy 'keep_sort' is on, dispatch-able targetszo
are 'not' sorted depend on the highest interest butas specified in the dispatch-able source or the extra group)r½   ©rt   r*  rP  r,  s       rz   r  z_Parse._parse_policy_keepsorte  s3   € à�ŠØ=¸}ð OJñ	
ô 	
ð 	
ð
 ˜]¨KÐ7Ð7r|   c                 ó:   — |                       |d¬¦  «        }|||fS )z%sorted depend on the highest interestTrÒ  )rÄ  rn  s       rz   r  z!_Parse._parse_policy_not_keepsortn  s'   € à×+Ò+¨MÀ4Ð+ÑHÔHˆØ˜]¨KÐ7Ð7r|   c                 óØ   — | j         r|                      d¦  «         nI| j        r|                      d¦  «         n,| j        d         }|s|                      dd¬¦  «         n||z  }|||fS )z&append the compiler optimization flagsz3debug mode is detected, policy 'maxopt' is skipped.z5optimization is disabled, policy 'maxopt' is skipped.r	   zOcurrent compiler doesn't support optimization flags, policy 'maxopt' is skippedTrµ   )rY  r½   re   rb  ©rt   r*  rP  r,  ra   s        rz   r  z_Parse._parse_policy_maxopts  s˜   € àÔð 	%Ø�MŠMÐOÑPÔPÐPÐPØŒ]ð 
	%Ø�MŠMÐQÑRÔRÐRÐRà”M %Ô(ˆEØð %Ø—’ð1Ø9=ð ñ ô ð ð ð
 ˜uÑ$�Ø˜]¨KÐ7Ð7r|   c                 óŽ   — | j         d         }|s|                      dd¬¦  «         n|                      d¦  «         ||z  }|||fS )z#force warnings to treated as errorsr
   zTcurrent compiler doesn't support werror flags, warnings will 'not' treated as errorsTrµ   z'compiler warnings are treated as errors)rb  r½   rq  s        rz   r  z_Parse._parse_policy_werror„  sj   € à”˜hÔ'ˆØð 	!Ø�MŠMð8Ø@Dð ñ ô ð ð ð
 �MŠMÐCÑDÔDÐDØ˜5Ñ ˆKØ˜]¨KÐ7Ð7r|   c                 ó@  ‡ — g }|dd…         D ]t}t          |t          ¦  «        r‰                      |¦  «        }nt          ˆ fd„|D ¦   «         ¦  «        }|s*|                     |¦  «         |                     |¦  «         Œu|r‰                      d|¦  «         |||fS )z=skip features that has no auto-vectorized support by compilerNc                 ó:   •— g | ]}‰                      |¦  «        ‘ŒS rd   )rõ  )rû   râ  rt   s     €rz   rü   z0_Parse._parse_policy_autovec.<locals>.<listcomp>˜  s7   ø€ ð ð ð àð ×,Ò,¨QÑ/Ô/ðð ð r|   z!skip non auto-vectorized features)r§   r·   rõ  ri  rØ  rõ   r½   )rt   r*  rP  r,  rQ  rg  ró  s   `      rz   r  z_Parse._parse_policy_autovec‘  sØ   ø€ àˆØ    Ô#ð 
	$ð 
	$ˆCÝ˜#�sÑ#Ô#ð Ø×.Ò.¨sÑ3Ô3��åð ð ð ð à ðñ ô ñ ô �ð ð $Ø×$Ò$ SÑ)Ô)Ð)Ø—’˜sÑ#Ô#Ð#øàð 	HØ�MŠMÐ=¸wÑGÔGÐGà˜]¨KÐ7Ð7r|   N)r‘   r’   r“   r”   r�   r7  r  rª   rA  r!  rK  r$  rL  rM  rN  r  r  r  r  r  r  rd   r|   rz   r
  r
  ¯  s  € € € € € ð-ð -ð\P$ð P$ð P$ðd41ð 41ð 41ðl "�r”z .Ñ1Ô1Ðð6ð 6ð 6ðp %˜"œ*Ð%7Ñ8Ô8Ððr8ð r8ð r8ðh
ð 
ð 
ð8ð 8ð 8ð,ð ð ð28ð 8ð 8ð,8ð 8ð 8ð8ð 8ð 8ð
8ð 8ð 8ð"8ð 8ð 8ð8ð 8ð 8ð 8ð 8r|   r
  c                   óX   — e Zd ZdZdd„Zd„ Zd„ Zd„ Zd	„ Zdd
„Z	d„ Z
dd„Zdd„Zdd„ZdS )ÚCCompilerOptz°
    A helper class for `CCompiler` aims to provide extra build options
    to effectively control of compiler optimizations that are directly
    related to CPU features.
    Úminr¾  Nc                 ó`  — t                                | ¦  «         t                               | |¦  «         t                               | ||                      ¦   «         ||¦  «         t
                               | ¦  «         t                               | ¦  «         | j        s| j        r|  	                    d¦  «         d}t                               | ||¦  «         || _        || _        t          | di ¦  «        | _        | j                             d¦  «         t#          | d¦  «        | _        d S )NzSnative flag is specified through environment variables. force cpu-baseline='native'r   Úsources_statusÚ	hit_cache)r   r�   r¡   r  rÝ   rT  rœ  re   rZ  r½   r
  Ú_requested_baselineÚ_requested_dispatchr¹   ry  r!  rŠ  rÕ   rz  )rt   r¤   r  r  r,  s        rz   r�   zCCompilerOpt.__init__«  s  € Ý×Ò˜ÑÔÐÝ×Ò˜D )Ñ,Ô,Ð,Ý�Š˜˜j¨$¯.ª.Ñ*:Ô*:¸LÈ,ÑWÔWÐWÝ×Ò˜DÑ!Ô!Ð!Ý×Ò˜$ÑÔÐØŒ}ð 	$ Ô!3ð 	$Ø�MŠMð.ñô ð ð $ˆLÝ�Š˜˜l¨LÑ9Ô9Ð9ð $0ˆÔ Ø#/ˆÔ õ & dÐ,<¸bÑAÔAˆÔàÔ×ÒÐ/Ñ0Ô0Ð0õ !  {Ñ3Ô3ˆŒˆˆr|   c                 ó   — | j         o| j        S )zF
        Returns True if the class loaded from the cache file
        )r"  rz  ©rt   s    rz   Ú	is_cachedzCCompilerOpt.is_cachedÅ  s   € ð Ô Ð3 T¤^Ð3r|   c                 ó   — | j         S )zE
        Returns a list of final CPU baseline compiler flags
        )r  r~  s    rz   Úcpu_baseline_flagszCCompilerOpt.cpu_baseline_flagsË  ó   € ð Ô(Ð(r|   c                 ó   — | j         S )zC
        return a list of final CPU baseline feature names
        r  r~  s    rz   Úcpu_baseline_nameszCCompilerOpt.cpu_baseline_namesÑ  r‚  r|   c                 ó   — | j         S )zC
        return a list of final CPU dispatch feature names
        )r  r~  s    rz   Úcpu_dispatch_nameszCCompilerOpt.cpu_dispatch_names×  r‚  r|   c                 ó�  — i }|                       ¦   «         }|                     dg ¦  «        }|D �]X}t          j                             |¦  «        }	|rN|	                     |¦  «        s t          j                             ||	¦  «        }	|	|vr|                     |	¦  «         |                      |¦  «        \  }
}}|  	                    |	|||
¦  «        }|D ]i}|  
                    |	|||¬¦  «        }t          ||                      |¦  «        z   ¦  «        }|                     |g ¦  «                             |¦  «         Œj|
r;t          ||z   ¦  «        }|                     |g ¦  «                             |¦  «         |
|f| j        |<   �ŒZg }|                     ¦   «         D ]&\  }}| | j        |t!          |¦  «        fd|i|¤Žz  }Œ'|S )a”  
        Compile one or more dispatch-able sources and generates object files,
        also generates abstract C config headers and macros that
        used later for the final runtime dispatching process.

        The mechanism behind it is to takes each source file that specified
        in 'sources' and branching it into several files depend on
        special configuration statements that must be declared in the
        top of each source which contains targeted CPU features,
        then it compiles every branched source with the proper compiler flags.

        Parameters
        ----------
        sources : list
            Must be a list of dispatch-able sources file paths,
            and configuration statements must be declared inside
            each file.

        src_dir : str
            Path of parent directory for the generated headers and wrapped sources.
            If None(default) the files will generated in-place.

        ccompiler : CCompiler
            Distutils `CCompiler` instance to be used for compilation.
            If None (default), the provided instance during the initialization
            will be used instead.

        **kwargs : any
            Arguments to pass on to the `CCompiler.compile()`

        Returns
        -------
        list : generated object files

        Raises
        ------
        CompileError
            Raises by `CCompiler.compile()` on compiling failure.
        DistutilsError
            Some errors during checking the sanity of configuration statements.

        See Also
        --------
        parse_targets :
            Parsing the configuration statements of dispatch-able sources.
        Úinclude_dirs)Únochanger¤   )r�  Ú
setdefaultr‹   rŒ   r—   Ú
startswithr–   rõ   r7  Ú_generate_configÚ_wrap_targetrO  rè  ry  r'  r­   r¨   )rt   r«   Úsrc_dirr¤   r¬   Ú
to_compileÚbaseline_flagsrˆ  Úsrcr´   r*  rU  r,  r‰  rg  Útar_srcra   ÚobjectsÚsrcss                      rz   Útry_dispatchzCCompilerOpt.try_dispatchÝ  s  € ð^ ˆ
Ø×0Ò0Ñ2Ô2ˆØ×(Ò(¨¸Ñ<Ô<ˆàð 	?ñ 	?ˆCÝœŸš¨Ñ-Ô-ˆJØð 4Ø!×,Ò,¨WÑ5Ô5ð CÝ!#¤§¢¨g°zÑ!BÔ!B�JØ \Ð1Ð1ð !×'Ò'¨
Ñ3Ô3Ð3à15×1CÒ1CÀCÑ1HÔ1HÑ.ˆL˜' ;Ø×,Ò,¨Z¸¸gÀ|ÑTÔTˆHØð Að A�Ø×+Ò+¨J¸¸SÈ8Ð+ÑTÔT�Ý˜k¨D×,>Ò,>¸sÑ,CÔ,CÑCÑDÔD�Ø×%Ò% e¨RÑ0Ô0×7Ò7¸Ñ@Ô@Ð@Ð@àð =Ý˜k¨NÑ:Ñ;Ô;�Ø×%Ò% e¨RÑ0Ô0×7Ò7¸Ñ<Ô<Ð<à(4°gÐ'>ˆDÔ Ñ$Ñ$ð ˆØ%×+Ò+Ñ-Ô-ð 	ð 	‰KˆE�4ØÐ(�tÔ(Ø•d˜5‘k”kðð Ø-6ðØ:@ðð ñ ˆGˆGð ˆr|   c                 ó´  ‡ — ‰                       d|z  ¦  «         ‰                      ¦   «         }‰                      ¦   «         }t          |¦  «        }t          |¦  «        }t          j                             |¦  «        }t          j                             |¦  «        s/‰                       d|› d�d¬¦  «         t	          j        |¦  «         t          |d¦  «        5 }d 
                    ˆ fd„|D ¦   «         ¦  «        }d 
                    ˆ fd	„|D ¦   «         ¦  «        }	|                     t          j        d
¦  «                             ‰ j        d 
                    |¦  «        d 
                    |¦  «        ||||	¬¦  «        ¦  «         d}
|D ]}|
‰                      |d¬¦  «        dz   z  }
Œ d}|D ]I}|t          j        d¦  «                             ‰ j        |‰                      |d¬¦  «        ¬¦  «        z  }ŒJ|                     t          j        d¦  «                             ‰ j        |
|¬¦  «        ¦  «         ddd¦  «         dS # 1 swxY w Y   dS )ax  
        Generate the dispatch header which contains the #definitions and headers
        for platform-specific instruction-sets for the enabled CPU baseline and
        dispatch-able features.

        Its highly recommended to take a look at the generated header
        also the generated source files via `try_dispatch()`
        in order to get the full picture.
        z"generate CPU dispatch header: (%s)zdispatch header dir z does not exist, creating itTrµ   r7  ú \
c                 ó,   •— g | ]}d ‰j         ›d|›d�‘ŒS ©r   zWITH_CPU_EXPAND_(MACRO_TO_CALL(ú, __VA_ARGS__))©r›   r½  s     €rz   rü   z9CCompilerOpt.generate_dispatch_header.<locals>.<listcomp>N	  óA   ø€ ð +ð +ð +ð �Að Ô'Ð'Ð'¨¨¨ð,ð+ð +ð +r|   c                 ó,   •— g | ]}d ‰j         ›d|›d�‘ŒS r™  r›  r½  s     €rz   rü   z9CCompilerOpt.generate_dispatch_header.<locals>.<listcomp>T	  rœ  r|   aÃ                  /*
                 * AUTOGENERATED DON'T EDIT
                 * Please make changes to the code generator (distutils/ccompiler_opt.py)
                */
                #define {pfx}WITH_CPU_BASELINE  "{baseline_str}"
                #define {pfx}WITH_CPU_DISPATCH  "{dispatch_str}"
                #define {pfx}WITH_CPU_BASELINE_N {baseline_len}
                #define {pfx}WITH_CPU_DISPATCH_N {dispatch_len}
                #define {pfx}WITH_CPU_EXPAND_(X) X
                #define {pfx}WITH_CPU_BASELINE_CALL(MACRO_TO_CALL, ...) \
                {baseline_calls}
                #define {pfx}WITH_CPU_DISPATCH_CALL(MACRO_TO_CALL, ...) \
                {dispatch_calls}
            rÒ   )ÚpfxÚbaseline_strÚdispatch_strÚbaseline_lenÚdispatch_lenÚbaseline_callsÚdispatch_callsr   r   )r  r  z†                #ifdef {pfx}CPU_TARGET_{name}
                {pre}
                #endif /*{pfx}CPU_TARGET_{name}*/
                )rž  rï   Úprez¢            /******* baseline features *******/
            {baseline_pre}
            /******* dispatch features *******/
            {dispatch_pre}
            )rž  Úbaseline_preÚdispatch_preN)r½   r„  r†  r×   r‹   rŒ   r—   r&  r:  r=  r–   r>  r?  r@  rA  r›   r  rœ   )rt   Úheader_pathr%  Údispatch_namesr¡  r¢  Ú
header_dirrE  r£  r¤  r¦  rï   r§  s   `            rz   Úgenerate_dispatch_headerz%CCompilerOpt.generate_dispatch_header4	  s  ø€ ð 	�ŠÐ:¸[ÑHÑIÔIÐIà×0Ò0Ñ2Ô2ˆØ×0Ò0Ñ2Ô2ˆÝ˜>Ñ*Ô*ˆÝ˜>Ñ*Ô*ˆå”W—_’_ [Ñ1Ô1ˆ
ÝŒw�~Š~˜jÑ)Ô)ð 	$Ø�MŠMØO zÐOÐOÐOØð ñ ô ð õ ŒK˜
Ñ#Ô#Ð#å�+˜sÑ#Ô#ð 8	 qØ$Ÿ\š\ð +ð +ð +ð +ð (ð	+ñ +ô +ñ ô ˆNð %Ÿ\š\ð +ð +ð +ð +ð (ð	+ñ +ô +ñ ô ˆNð �GŠG•H”Oð %ñ ô ÷ ’ØÔ&°S·X²X¸nÑ5MÔ5MØ ŸXšX nÑ5Ô5ÀLØ)¸.Ø-ð	 ñ ô ñô ð ð( ˆLØ&ð Qð Q�Ø × ;Ò ;¸DÀqÐ ;Ñ IÔ IÈDÑ PÑP��àˆLØ&ð ð �Ø¥¤ð 1ñ !ô !÷ ’VØÔ+°$¸D×<WÒ<WØ˜qð =Xñ =ô =ð ñ ô ñ	��ð �GŠG•H”Oð %ñ ô ÷
 ’ØÔ'°lØ)ð ñ ô ñô ð ða8	ð 8	ð 8	ñ 8	ô 8	ð 8	ð 8	ð 8	ð 8	ð 8	ð 8	ð 8	øøøð 8	ð 8	ð 8	ð 8	ð 8	ð 8	s   ÃE#IÉIÉIFc                 óþ  — g }g }g }g }|                      d|f¦  «         |                      d¦  «         |                      d|f¦  «         |                      d¦  «         |                      d|f¦  «         |                      d| j        rdn| j        f¦  «         |                      d| j        rdn| j        f¦  «         | j        r|                      d	¦  «         n)|                      d
t          | j        ¦  «        f¦  «         |                      ¦   «         }|                      d|rd 	                    |¦  «        ndf¦  «         |  
                    ¦   «         }|                      d|rd 	                    |¦  «        ndf¦  «         g }|D ]}	||                      |	¦  «        z  }Œ|                      d|rd 	                    |¦  «        ndf¦  «         | j        r|                      d	¦  «         n)|                      d
t          | j        ¦  «        f¦  «         |                      ¦   «         }
|                      d|
rd 	                    |
¦  «        ndf¦  «         i }| j                             ¦   «         D ]6\  }\  }}|D ]+}|                     |g ¦  «                              |¦  «         Œ,Œ7|r|sŽd}|                      |¦  «        D ]Q}||         }t%          |t&          ¦  «        r|ndd 	                    |¦  «        z  }	||	dt)          |¦  «        z  z   z  }ŒR|                      d|r
|d d…         ndf¦  «         �nÎ|                      d¦  «         |                      |¦  «        D �]¢}||         }t%          |t&          ¦  «        r|ndd 	                    |¦  «        z  }d 	                    |                      |¦  «        ¦  «        }d 	                    |                      |                      |¦  «        ¦  «        ¦  «        }d 	                    |                      |¦  «        ¦  «        }g }t%          |t&          ¦  «        r|fn|D ]}	||                      |	¦  «        z  }Œ|rd 	                    |¦  «        nd}|                      d¦  «         |                      ||f¦  «         |                      d|f¦  «         |                      d|f¦  «         |                      d|f¦  «         |D ]}|                      d|f¦  «         Œ�Œ¤g }d„ |D ¦   «         }d„ |D ¦   «         }d}t1          t1          |¦  «        t1          |¦  «        ¦  «        }|D ]Ž\  }}|s|                      d¦  «         Œ|d|t)          |¦  «        z
  z  z  }|                      ||z   dz   ¦  «         |D ];\  }}|d|t)          |¦  «        z
  z  z  }|                      ||z   dz   |z   ¦  «         Œ<Œ�d 	                    |¦  «        S )NÚPlatform)r   r   zCPU baselinezCPU dispatchÚArchitectureÚunsupportedÚCompilerz	unix-like)Ú	Requestedzoptimization disabledr±  ÚEnabledrÒ   ÚnoneÚFlagszExtra checksr   z(%s)z[%d] Ú	Generatedr.  )rµ  r   ÚDetectc                 ó2   — g | ]\  }}t          |¦  «        ‘ŒS rd   ©r×   )rû   Úsecsr”  s      rz   rü   z'CCompilerOpt.report.<locals>.<listcomp>ä	  s"   € Ð4Ð4Ð4¡' $¨•C˜‘I”IÐ4Ð4Ð4r|   c                 óB   — g | ]\  }}|D ]\  }}t          |¦  «        ‘ŒŒS rd   r¸  )rû   r”  ÚrowsÚcols       rz   rü   z'CCompilerOpt.report.<locals>.<listcomp>å	  s3   € ÐFÐFÐF¡  DÀÐFÐF±v°s¸A•C˜‘H”HÐFÐFÐFÐFr|   z  z: r  )rõ   rW  r`  rX  ra  re   Úreprr{  r„  r–   r�  rû  r|  r†  ry  r'  rŠ  rÄ  r§   r·   r×   rè  rÍ  ræ  r¾  ) rt   ÚfullÚreportÚplatform_rowsÚbaseline_rowsÚdispatch_rowsr%  r�  r:   rï   r©  Útarget_sourcesr¾   r”  rU  rg  Ú	generatedr«   Úpretty_namera   r   r@   r‘  r	  Úsecs_lenÚcols_lenÚtabÚpadÚsecr»  r¼  r0  s                                    rz   r¿  zCCompilerOpt.report‡	  s¿  € ØˆØˆØˆØˆØ�Š�z =Ð1Ñ2Ô2Ð2Ø�Š�hÑÔÐØ�Š�~ }Ð5Ñ6Ô6Ð6Ø�Š�hÑÔÐØ�Š�~ }Ð5Ñ6Ô6Ð6ð 	×Ò˜nØ!Ô.ÐAˆMˆM°D´Mð
ñ 	ô 	ð 	ð 	×Ò˜jØ!œ_Ð@ˆKˆK°D´Lð
ñ 	ô 	ð 	ð Œ=ð 	PØ× Ò Ð!GÑHÔHÐHÐHà× Ò  +­t°DÔ4LÑ/MÔ/MÐ!NÑOÔOÐOà×0Ò0Ñ2Ô2ˆØ×ÒØ°NÐN˜Ÿš Ñ0Ô0Ð0Èð
ñ 	ô 	ð 	ð ×0Ò0Ñ2Ô2ˆØ×ÒØ°.ÐL�c—h’h˜~Ñ.Ô.Ð.Àfð
ñ 	ô 	ð 	ð ˆØ"ð 	<ð 	<ˆDØ˜D×5Ò5°dÑ;Ô;Ñ;ˆLˆLØ×ÒØ°|ÐO˜SŸXšX lÑ3Ô3Ð3Èð
ñ 	ô 	ð 	ð
 Œ=ð 	PØ× Ò Ð!GÑHÔHÐHÐHà× Ò  +­t°DÔ4LÑ/MÔ/MÐ!NÑOÔOÐOà×0Ò0Ñ2Ô2ˆØ×ÒØ°NÐN˜Ÿš Ñ0Ô0Ð0Èð
ñ 	ô 	ð 	ð ˆØ$(Ô$7×$=Ò$=Ñ$?Ô$?ð 	Bð 	BÑ ˆF‘L�Q˜Øð Bð B�Ø×)Ò)¨#¨rÑ2Ô2×9Ò9¸&ÑAÔAÐAÐAðBð ð 	4˜>ð 	4ØˆIØ×*Ò*¨>Ñ:Ô:ð ;ð ;�Ø(¨Ô-�Ý(¨­cÑ2Ô2ÐN�s�s¸ÀÇÂÈ#ÁÄÑ8N�Ø˜T G­c°'©l¬lÑ$:Ñ:Ñ:�	�	Ø× Ò  +ÀÐ/V¨y¸¸"¸¬~¨~ÐPVÐ!WÑXÔXÐXÑXà× Ò Ð!2Ñ3Ô3Ð3Ø×*Ò*¨>Ñ:Ô:ð 4ñ 4�Ø(¨Ô-�Ý%/°µSÑ%9Ô%9ÐU˜c˜c¸vÈÏÊÐQTÉÌÑ?U�ØŸš ×!3Ò!3°CÑ!8Ô!8Ñ9Ô9�ØŸ(š( 4×#6Ò#6°t×7KÒ7KÈCÑ7PÔ7PÑ#QÔ#QÑRÔR�ØŸš $×"5Ò"5°cÑ":Ô":Ñ;Ô;�Ø!�Ý'1°#µsÑ';Ô';ÐD˜c˜V˜VÀð Dð D�DØ  D×$=Ò$=¸dÑ$CÔ$CÑC�L�LØ:FÐ R §¢¨Ñ 6Ô 6Ð 6ÈF�à×$Ò$ XÑ.Ô.Ð.Ø×$Ò$ k°7Ð%;Ñ<Ô<Ð<Ø×$Ò$ g¨uÐ%5Ñ6Ô6Ð6Ø×$Ò$ n°lÐ%CÑDÔDÐDØ×$Ò$ h°Ð%7Ñ8Ô8Ð8Ø"ð 4ð 4�CØ!×(Ò(¨"¨c¨Ñ3Ô3Ð3Ð3ñ4ð
 ˆØ4Ð4¨VÐ4Ñ4Ô4ˆØFÐF¨FÐFÑFÔFˆØˆÝ•3�x‘=”=¥# h¡-¤-Ñ0Ô0ˆØð 	4ð 	4‰IˆC�Øð Ø—’˜B‘”�ØØ�3˜#¥ C¡¤™.Ñ)Ñ)ˆCØ�KŠK˜˜c™	 DÑ(Ñ)Ô)Ð)Ø ð 4ð 4‘��SØ�s˜c¥C¨¡H¤H™nÑ-Ñ-�Ø—’˜C #™I¨Ñ,¨sÑ2Ñ3Ô3Ð3Ð3ð4ð �yŠy˜‰ŒÐr|   c           
      óî  ‡— t          |t          t          f¦  «        sJ ‚t          |t          ¦  «        r|x}}n*d                     |¦  «        }d                     |¦  «        }t          j                             |t          j                             |¦  «        ¦  «        } dj        g t          j                             |¦  «        ¢| 	                    ¦   «         ‘R Ž }|r!t          j         
                    |¦  «        r|S |                      d|¦  «         |                      |                      |¦  «        ¦  «        }d| j        z  Šˆfd„|D ¦   «         }	d                     |	¦  «        }	t          |d¦  «        5 }
|
                     t#          j        d	¦  «                             | j        |t          j                             |¦  «        |	¬
¦  «        ¦  «         d d d ¦  «         n# 1 swxY w Y   |S )Nú.Ú__z
{0}.{2}{1}zwrap dispatch-able target -> z#define %sCPU_TARGET_c                 ó   •— g | ]}‰|z   ‘ŒS rd   rd   )rû   rE  Útarget_joins     €rz   rü   z-CCompilerOpt._wrap_target.<locals>.<listcomp>
  s   ø€ Ð9Ð9Ð9¨1�{ Q‘Ð9Ð9Ð9r|   r  r7  aR              /**
             * AUTOGENERATED DON'T EDIT
             * Please make changes to the code generator              (distutils/ccompiler_opt.py)
             */
            #define {pfx}CPU_TARGET_MODE
            #define {pfx}CPU_TARGET_CURRENT {target_name}
            {target_defs}
            #include "{path}"
            )rž  Útarget_namerŒ   Útarget_defs)r§   r·   rO  r–   r‹   rŒ   ÚbasenamerA  Úsplitextrë  r&  r½   rÄ  rÏ  rœ   r=  r>  r?  r@  Úabspath)rt   r´   Údispatch_srcÚtargetr‰  Úext_namerÐ  Ú	wrap_pathr+  rÑ  rt  rÏ  s              @rz   r�  zCCompilerOpt._wrap_targetô	  s  ø€ Ý˜&¥3­ ,Ñ/Ô/Ð0Ð0Ð/Ý�f�cÑ"Ô"ð 	,Ø%+Ð+ˆH�{�{ð —x’x Ñ'Ô'ˆHØŸ)š) FÑ+Ô+ˆKå”G—L’L ­R¬W×-=Ò-=¸lÑ-KÔ-KÑLÔLˆ	Ø'�LÔ'ÐW­¬×)9Ò)9¸)Ñ)DÔ)DÐWÀhÇnÂnÑFVÔFVÐWÐWÐWˆ	Øð 	�œŸš yÑ1Ô1ð 	ØÐà�ŠÐ5°yÑAÔAÐAà×&Ò& t×'=Ò'=¸fÑ'EÔ'EÑFÔFˆØ-°Ô0CÑCˆØ9Ð9Ð9Ð9°Ð9Ñ9Ô9ˆØ—i’i Ñ,Ô,ˆå�)˜SÑ!Ô!ð 	 RØ�HŠH•X”_ð 
&ñ 
ô 
÷ ’ØÔ'°[Ý”W—_’_ \Ñ2Ô2Àð ñ ô ñô ð ð	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð Ðs   Å=A!G*Ç*G.Ç1G.c           
      ó  — t           j                             |¦  «        }t           j                             |¦  «        d         dz   }t           j                             ||¦  «        }|                      ||¦  «        }	 t          |¦  «        5 }|                     ¦   «                              d¦  «        }t          |¦  «        dk    r't          |d         ¦  «        |k    r	 d d d ¦  «         dS d d d ¦  «         n# 1 swxY w Y   n# t          $ r Y nw xY wt          j        t           j                             |¦  «        d¬¦  «         |                      d|¦  «         g }	|D ]‘}
t          |
t           ¦  «        r|
}nd	                     d
„ |
D ¦   «         ¦  «        }|                      |
¦  «        }d                     d„ |D ¦   «         ¦  «        }|	                     d| j        ›d|›d|›d�¦  «         Œ’d                     |	¦  «        }	|rd| j        z  }nd}t          |d¦  «        5 }|                     t+          j        d¦  «                             | j        ||	|¬¦  «        ¦  «         d d d ¦  «         n# 1 swxY w Y   dS )Nr   z.hzcache_hash:r   r   T)Úexist_okzgenerate dispatched config -> rÍ  c                 ó   — g | ]}|‘ŒS rd   rd   )rû   râ  s     rz   rü   z1CCompilerOpt._generate_config.<locals>.<listcomp>0
  s   € Ð(8Ð(8Ð(8¨q¨Ð(8Ð(8Ð(8r|   z&&c                 ó   — g | ]}d |z  ‘ŒS )zCHK(%s)rd   )rû   rE  s     rz   rü   z1CCompilerOpt._generate_config.<locals>.<listcomp>2
  s)   € ð $ð $ð $Ø"#�	˜A‘ð$ð $ð $r|   r   zCPU_DISPATCH_EXPAND_(CB((z), rš  r—  z(	%sCPU_DISPATCH_EXPAND_(CB(__VA_ARGS__))r   r7  aZ              // cache_hash:{cache_hash}
            /**
             * AUTOGENERATED DON'T EDIT
             * Please make changes to the code generator (distutils/ccompiler_opt.py)
             */
            #ifndef {pfx}CPU_DISPATCH_EXPAND_
                #define {pfx}CPU_DISPATCH_EXPAND_(X) X
            #endif
            #undef {pfx}CPU_DISPATCH_BASELINE_CALL
            #undef {pfx}CPU_DISPATCH_CALL
            #define {pfx}CPU_DISPATCH_BASELINE_CALL(CB, ...) \
            {baseline_calls}
            #define {pfx}CPU_DISPATCH_CALL(CHK, CB, ...) \
            {dispatch_calls}
            )rž  r£  r¤  r$  F)r‹   rŒ   rÒ  rÓ  r–   r$  r=  Úreadlinerc  r×   Úintr�   r:  r—   r½   r§   r·   ræ  rõ   rœ   r>  r?  r@  rA  )rt   r´   rÕ  rU  r*  Úconfig_pathr$  rE  Ú	last_hashr¤  rg  rÐ  Ú
req_detectr£  rt  s                  rz   rŒ  zCCompilerOpt._generate_config
  sD  € Ý”g×&Ò& |Ñ4Ô4ˆÝ”g×&Ò& {Ñ3Ô3°AÔ6¸Ñ=ˆÝ”g—l’l :¨{Ñ;Ô;ˆà—_’_ W¨lÑ;Ô;ˆ
ð	Ý�kÑ"Ô"ð   aØŸJšJ™LœL×.Ò.¨}Ñ=Ô=�	Ý�y‘>”> QÒ&Ð&­3¨y¸¬|Ñ+<Ô+<À
Ò+JÐ+JØð ð  ð  ñ  ô  ð  ð  ð  ð  ð  ð  ñ  ô  ð  ð  ð  ð  ð  ð  øøøð  ð  ð  ð  øøõ ð 	ð 	ð 	ØˆDð	øøøõ 	Œ•B”G—O’O KÑ0Ô0¸4Ð@Ñ@Ô@Ð@à�ŠÐ6¸ÑDÔDÐDØˆØð 	ð 	ˆCÝ˜#�sÑ#Ô#ð :Ø!��à"ŸišiÐ(8Ð(8°CÐ(8Ñ(8Ô(8Ñ9Ô9�Ø×,Ò,¨SÑ1Ô1ˆJØŸšð $ð $Ø'1ð$ñ $ô $ñ ô ˆJð ×!Ò!Ð!àÔ#Ð#Ð# Z Z Z°°°ðñô ð ð ð !Ÿš nÑ5Ô5ˆàð 	 à;ØÔ#ñ$ˆNˆNð  ˆNå�+˜sÑ#Ô#ð 	 rØ�HŠH•X”_ð &ñ ô ÷ ’ØÔ'¸Ø-¸*ð ñ ô ñô ð ð	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð( ˆusP   Á?D ÂAC<Ã#D Ã0D Ã<D Ä D ÄD ÄD Ä
DÄDÈ+AI;É;I?ÊI?)rw  r¾  N)NNr  )r‘   r’   r“   r”   r�   r  r�  r„  r†  r•  r«  r¿  r�  rŒ  rd   r|   rz   rv  rv  ¥  sÜ   € € € € € ðð ð
4ð 4ð 4ð 4ð44ð 4ð 4ð)ð )ð )ð)ð )ð )ð)ð )ð )ðUð Uð Uð UðnQð Qð Qðfkð kð kð kðZ$ð $ð $ð $ðL<ð <ð <ð <ð <ð <r|   rv  c                 ó°   — t          | fi |¤Ž}t          j                             |¦  «        r|                     ¦   «         s|                     |¦  «         |S )aÏ  
    Create a new instance of 'CCompilerOpt' and generate the dispatch header
    which contains the #definitions and headers of platform-specific instruction-sets for
    the enabled CPU baseline and dispatch-able features.

    Parameters
    ----------
    compiler : CCompiler instance
    dispatch_hpath : str
        path of the dispatch header

    **kwargs: passed as-is to `CCompilerOpt(...)`
    Returns
    -------
    new instance of CCompilerOpt
    )rv  r‹   rŒ   r&  r  r«  )rÎ   Údispatch_hpathr¬   r	   s       rz   Únew_ccompiler_opträ  X
  sW   € õ" �xÐ
*Ð
* 6Ð
*Ð
*€CÝŒ7�>Š>˜.Ñ)Ô)ð 5°·²±´ð 5Ø×$Ò$ ^Ñ4Ô4Ð4Ø€Jr|   )r”   rˆ   rý   r‹   r;  r  r  r?  r   r¡   r(  r  rT  rœ  r
  rv  rä  rd   r|   rz   ú<module>rå     sØ  ððEð Eð €€€Ø €€€Ø 	€	€	€	Ø €€€Ø 	€	€	€	Ø Ð Ð Ð Ø €€€ðyð yð yð yð yñ yô yð yðvxð xð xð xð xñ xô xð xðt €ðFð Fð Fð Fð Fñ Fô Fð FðPwð wð wð wð wñ wô wð wðr	c ð c ð c ð c ð c ñ c ô c ð c ðJt8ð t8ð t8ð t8ð t8ñ t8ô t8ð t8ðlqð qð qð qð q�7˜J¨°
¸HÀfñ qô qð qðfð ð ð ð r|   