diff --git a/pythonbpf/codegen.py b/pythonbpf/codegen.py index cf20f06..1c9b9dd 100644 --- a/pythonbpf/codegen.py +++ b/pythonbpf/codegen.py @@ -1,7 +1,7 @@ import ast from llvmlite import ir from .license_pass import license_processing -from .functions_pass import func_proc +from .functions import func_proc from .maps import maps_proc from .structs import structs_proc from .globals_pass import globals_processing diff --git a/pythonbpf/functions/__init__.py b/pythonbpf/functions/__init__.py new file mode 100644 index 0000000..df99da1 --- /dev/null +++ b/pythonbpf/functions/__init__.py @@ -0,0 +1,3 @@ +from .functions_pass import func_proc + +__all__ = ["func_proc"] diff --git a/pythonbpf/functions_pass.py b/pythonbpf/functions/functions_pass.py similarity index 99% rename from pythonbpf/functions_pass.py rename to pythonbpf/functions/functions_pass.py index d1ea526..7766a9d 100644 --- a/pythonbpf/functions_pass.py +++ b/pythonbpf/functions/functions_pass.py @@ -4,10 +4,10 @@ import logging from typing import Any from dataclasses import dataclass -from .helper import HelperHandlerRegistry, handle_helper_call -from .type_deducer import ctypes_to_ir -from .binary_ops import handle_binary_op -from .expr_pass import eval_expr, handle_expr +from pythonbpf.helper import HelperHandlerRegistry, handle_helper_call +from pythonbpf.type_deducer import ctypes_to_ir +from pythonbpf.binary_ops import handle_binary_op +from pythonbpf.expr_pass import eval_expr, handle_expr logger = logging.getLogger(__name__)