Skip to content

Commit 492876f

Browse files
authored
[mypyc] Refactor: move IR transforms to new package mypyc.transform (#8507)
1 parent 818cc4e commit 492876f

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

mypyc/codegen/emitmodule.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
from mypyc.ir.class_ir import ClassIR
3939
from mypyc.ir.module_ir import ModuleIR, ModuleIRs, deserialize_modules
4040
from mypyc.options import CompilerOptions
41-
from mypyc.uninit import insert_uninit_checks
42-
from mypyc.refcount import insert_ref_count_opcodes
43-
from mypyc.exceptions import insert_exception_handling
41+
from mypyc.transform.uninit import insert_uninit_checks
42+
from mypyc.transform.refcount import insert_ref_count_opcodes
43+
from mypyc.transform.exceptions import insert_exception_handling
4444
from mypyc.namegen import NameGenerator, exported_name
4545
from mypyc.errors import Errors
4646

mypyc/test/test_analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from mypyc.common import TOP_LEVEL_NAME
1010
from mypyc import analysis
11-
from mypyc import exceptions
11+
from mypyc.transform import exceptions
1212
from mypyc.ir.func_ir import format_func
1313
from mypyc.test.testutil import (
1414
ICODE_GEN_BUILTINS, use_custom_builtins, MypycDataSuite, build_ir_for_single_file,

mypyc/test/test_exceptions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
from mypyc.common import TOP_LEVEL_NAME
1313
from mypyc.ir.func_ir import format_func
14-
from mypyc.uninit import insert_uninit_checks
15-
from mypyc.exceptions import insert_exception_handling
16-
from mypyc.refcount import insert_ref_count_opcodes
14+
from mypyc.transform.uninit import insert_uninit_checks
15+
from mypyc.transform.exceptions import insert_exception_handling
16+
from mypyc.transform.refcount import insert_ref_count_opcodes
1717
from mypyc.test.testutil import (
1818
ICODE_GEN_BUILTINS, use_custom_builtins, MypycDataSuite, build_ir_for_single_file,
1919
assert_test_output, remove_comment_lines

mypyc/test/test_refcount.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
from mypyc.common import TOP_LEVEL_NAME
1414
from mypyc.ir.func_ir import format_func
15-
from mypyc.refcount import insert_ref_count_opcodes
15+
from mypyc.transform.refcount import insert_ref_count_opcodes
1616
from mypyc.test.testutil import (
1717
ICODE_GEN_BUILTINS, use_custom_builtins, MypycDataSuite, build_ir_for_single_file,
1818
assert_test_output, remove_comment_lines

mypyc/transform/__init__.py

Whitespace-only changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)