Move binop handling logic to expr_pass, remove delayed imports of get_operand_value

This commit is contained in:
Pragyansh Chaturvedi
2025-10-13 00:36:42 +05:30
parent 2a1eabc10d
commit 158cc42e1e
4 changed files with 117 additions and 119 deletions

View File

@ -3,8 +3,12 @@ import logging
from collections.abc import Callable
from llvmlite import ir
from pythonbpf.expr import eval_expr, get_base_type_and_depth, deref_to_depth
from pythonbpf.binary_ops import get_operand_value
from pythonbpf.expr import (
eval_expr,
get_base_type_and_depth,
deref_to_depth,
get_operand_value,
)
logger = logging.getLogger(__name__)