Skip to content

Commit a7779b0

Browse files
committed
Move a collection of 'native_ast' related code into a 'native_compiler' module.
Everything related to native_ast and building runnable code from such objects will live inside of here.
1 parent dfebe3b commit a7779b0

File tree

74 files changed

+94
-94
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+94
-94
lines changed

typed_python/array/fortran.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from typed_python.compiler.conversion_level import ConversionLevel
77
from typed_python.compiler.type_wrappers.compilable_builtin import CompilableBuiltin
88
from typed_python.compiler.type_wrappers.runtime_functions import externalCallTarget
9-
import typed_python.compiler.native_ast as native_ast
9+
import typed_python.compiler.native_compiler.native_ast as native_ast
1010

1111

1212
# search for lapack_lite or 'blas' in the numpy or scipy installation

typed_python/compiler/expression_conversion_context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from typed_python.compiler.global_variable_definition import GlobalVariableMetadata
15+
from typed_python.compiler.native_compiler.global_variable_definition import GlobalVariableMetadata
1616
import typed_python.compiler
17-
import typed_python.compiler.native_ast as native_ast
17+
import typed_python.compiler.native_compiler.native_ast as native_ast
1818
from typed_python.compiler.type_wrappers.wrapper import Wrapper
1919
from typed_python.compiler.merge_type_wrappers import mergeTypeWrappers
2020
import typed_python.compiler.type_wrappers.runtime_functions as runtime_functions

typed_python/compiler/function_conversion_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
from typed_python.internals import makeFunctionType, checkOneOfType, checkType
3131
from typed_python.compiler.conversion_level import ConversionLevel
3232
import typed_python.compiler
33-
import typed_python.compiler.native_ast as native_ast
33+
import typed_python.compiler.native_compiler.native_ast as native_ast
3434
from typed_python import (
3535
_types, Type, ListOf, PointerTo, pointerTo, Set, Dict, Member,
3636
OneOf, Function, Tuple, Forward, Class, NamedTuple, Value, TupleOf

typed_python/compiler/native_compiler/__init__.py

Whitespace-only changes.

typed_python/compiler/binary_shared_object.py renamed to typed_python/compiler/native_compiler/binary_shared_object.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
import ctypes
2121
import struct
2222

23-
from typed_python.compiler.native_function_pointer import NativeFunctionPointer
24-
from typed_python.compiler.loaded_module import LoadedModule
23+
from typed_python.compiler.native_compiler.native_function_pointer import NativeFunctionPointer
24+
from typed_python.compiler.native_compiler.loaded_module import LoadedModule
2525
from typed_python.hash import sha_hash
2626

2727

typed_python/compiler/compiler_cache.py renamed to typed_python/compiler/native_compiler/compiler_cache.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
import os
1616
import uuid
1717
import shutil
18-
from typed_python.compiler.loaded_module import LoadedModule
19-
from typed_python.compiler.binary_shared_object import BinarySharedObject
18+
from typed_python.compiler.native_compiler.loaded_module import LoadedModule
19+
from typed_python.compiler.native_compiler.binary_shared_object import BinarySharedObject
2020

2121
from typed_python.SerializationContext import SerializationContext
2222
from typed_python import Dict, ListOf

typed_python/compiler/llvm_compiler.py renamed to typed_python/compiler/native_compiler/llvm_compiler.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414

1515
import llvmlite.binding as llvm
1616
import llvmlite.ir
17-
import typed_python.compiler.native_ast as native_ast
18-
import typed_python.compiler.native_ast_to_llvm as native_ast_to_llvm
17+
import typed_python.compiler.native_compiler.native_ast as native_ast
18+
import typed_python.compiler.native_compiler.native_ast_to_llvm as native_ast_to_llvm
1919

20-
from typed_python.compiler.loaded_module import LoadedModule
21-
from typed_python.compiler.native_function_pointer import NativeFunctionPointer
22-
from typed_python.compiler.binary_shared_object import BinarySharedObject
20+
from typed_python.compiler.native_compiler.loaded_module import LoadedModule
21+
from typed_python.compiler.native_compiler.native_function_pointer import NativeFunctionPointer
22+
from typed_python.compiler.native_compiler.binary_shared_object import BinarySharedObject
2323

2424
import ctypes
2525
from typed_python import _types

typed_python/compiler/llvm_compiler_test.py renamed to typed_python/compiler/native_compiler/llvm_compiler_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from typed_python.compiler.native_ast import (
15+
from typed_python.compiler.native_compiler.native_ast import (
1616
Expression, Int64, Function, FunctionBody
1717
)
1818
import tempfile
1919
from typed_python import PointerTo, ListOf, Runtime
20-
from typed_python.compiler.module_definition import ModuleDefinition
21-
from typed_python.compiler.global_variable_definition import GlobalVariableMetadata
20+
from typed_python.compiler.native_compiler.module_definition import ModuleDefinition
21+
from typed_python.compiler.native_compiler.global_variable_definition import GlobalVariableMetadata
2222

2323
import pytest
2424
import ctypes

0 commit comments

Comments
 (0)