|
28 | 28 | from collections.abc import Iterable |
29 | 29 | from typing import TYPE_CHECKING, Any, NamedTuple, NoReturn, Union, cast |
30 | 30 |
|
| 31 | +import mypyc.build_setup # noqa: F401 |
31 | 32 | from mypy.build import BuildSource |
32 | 33 | from mypy.errors import CompileError |
33 | 34 | from mypy.fscache import FileSystemCache |
|
36 | 37 | from mypy.util import write_junit_xml |
37 | 38 | from mypyc.annotate import generate_annotated_html |
38 | 39 | from mypyc.codegen import emitmodule |
39 | | -from mypyc.common import IS_FREE_THREADED, RUNTIME_C_FILES, X86_64, shared_lib_name |
| 40 | +from mypyc.common import IS_FREE_THREADED, RUNTIME_C_FILES, shared_lib_name |
40 | 41 | from mypyc.errors import Errors |
41 | 42 | from mypyc.ir.pprint import format_modules |
42 | 43 | from mypyc.namegen import exported_name |
@@ -70,6 +71,13 @@ class ModDesc(NamedTuple): |
70 | 71 | "base64/arch/neon64/codec.c", |
71 | 72 | ], |
72 | 73 | [ |
| 74 | + "base64/arch/avx/enc_loop_asm.c", |
| 75 | + "base64/arch/avx2/enc_loop.c", |
| 76 | + "base64/arch/avx2/enc_loop_asm.c", |
| 77 | + "base64/arch/avx2/enc_reshuffle.c", |
| 78 | + "base64/arch/avx2/enc_translate.c", |
| 79 | + "base64/arch/avx2/dec_loop.c", |
| 80 | + "base64/arch/avx2/dec_reshuffle.c", |
73 | 81 | "base64/arch/generic/32/enc_loop.c", |
74 | 82 | "base64/arch/generic/64/enc_loop.c", |
75 | 83 | "base64/arch/generic/32/dec_loop.c", |
@@ -661,9 +669,6 @@ def mypycify( |
661 | 669 | # See https://github.com/mypyc/mypyc/issues/956 |
662 | 670 | "-Wno-cpp", |
663 | 671 | ] |
664 | | - if X86_64: |
665 | | - # Enable SIMD extensions. All CPUs released since ~2010 support SSE4.2. |
666 | | - cflags.append("-msse4.2") |
667 | 672 | if log_trace: |
668 | 673 | cflags.append("-DMYPYC_LOG_TRACE") |
669 | 674 | if experimental_features: |
@@ -692,10 +697,6 @@ def mypycify( |
692 | 697 | # that we actually get the compilation speed and memory |
693 | 698 | # use wins that multi-file mode is intended for. |
694 | 699 | cflags += ["/GL-", "/wd9025"] # warning about overriding /GL |
695 | | - if X86_64: |
696 | | - # Enable SIMD extensions. All CPUs released since ~2010 support SSE4.2. |
697 | | - # Also Windows 11 requires SSE4.2 since 24H2. |
698 | | - cflags.append("/arch:SSE4.2") |
699 | 700 | if log_trace: |
700 | 701 | cflags.append("/DMYPYC_LOG_TRACE") |
701 | 702 | if experimental_features: |
|
0 commit comments