976af290af
Revert "format chore"
...
This reverts commit a3443ab1d5 .
2025-10-08 05:17:59 +05:30
a3443ab1d5
format chore
...
Signed-off-by: varun-r-mallya <varunrmallya@gmail.com >
2025-10-08 05:16:36 +05:30
a27360482b
complete vmlinux transpiler.
...
TODO: struct_kioctx for x86_64 vmlinux.h has anonymous structs that refused to transpile well, so an extra rule has been written to make only the structs of that external. Fix this in the future.
2025-10-08 05:15:29 +05:30
3f9604a370
Add _deref_to_depth in expr_pass
2025-10-08 03:12:17 +05:30
480afd1341
Move _get_base_type to _get_base_type_and_depth
2025-10-08 03:02:31 +05:30
ab71275566
Add _get_base_type to expr_pass
2025-10-08 03:00:52 +05:30
2d850f457f
Add _normalize_types to handle mismatched ints, move type_mismatch test to passing
2025-10-08 02:22:41 +05:30
c423cc647d
add vmlinux.py transpiler from experiment repository
...
Signed-off-by: varun-r-mallya <varunrmallya@gmail.com >
2025-10-08 00:45:30 +05:30
9e1142bf05
Add type_mismatch failing test for conditionals
2025-10-07 14:02:09 +05:30
1843ca6c53
Add failing struct_ptr test for conditionals
2025-10-07 13:42:58 +05:30
caa5d92c32
Fix struct_access in eval_expr, move struct_access conditional test to passing
2025-10-07 13:35:31 +05:30
f41693bc6d
Add 'and' and 'or' BoolOps as future deliverables
2025-10-07 05:27:31 +05:30
b7092fa362
Add failing test map_comp for conditionals
2025-10-07 05:20:43 +05:30
0e7dcafbab
Add var_comp test for conditionals
2025-10-07 05:02:26 +05:30
a574527891
Add support for unary op 'not' in eval_expr, move not test to passing
2025-10-07 04:49:45 +05:30
176673017c
Add failing tests struct and not for conditionals
2025-10-07 04:17:26 +05:30
1d6226d829
Add map test to conditionals
2025-10-07 04:06:16 +05:30
12b712c217
Add var_binop test for conditionals
2025-10-07 03:43:36 +05:30
2de280915a
Add var test for conditionals
2025-10-07 03:37:13 +05:30
1cce49f5e0
Add const_binop test for conditionals
2025-10-07 03:24:11 +05:30
682a7e6566
Add const_int test for conditionals
2025-10-07 03:15:34 +05:30
fb63dbd698
Move conditional logic to eval_expr, add _conver_to_bool, add passing bool test
2025-10-07 03:11:23 +05:30
4f433d00cc
Add Boolean return support
2025-10-06 23:04:45 +05:30
6cf5115ea9
Eval LHS and RHS in _handle_compare
2025-10-06 22:38:43 +05:30
f11a43010d
Add _handle_cond to expr_pass
2025-10-06 22:33:03 +05:30
d1055e4d41
Reduce a condition from handle_cond
2025-10-06 22:20:54 +05:30
8554688230
Merge pull request #25 from pythonbpf/dependabot/github_actions/actions-6a14be197d
...
Bump the actions group with 2 updates
2025-10-06 19:32:01 +05:30
3e873f378e
Bump the actions group with 2 updates
...
Bumps the actions group with 2 updates: [actions/checkout](https://github.com/actions/checkout ) and [actions/setup-python](https://github.com/actions/setup-python ).
Updates `actions/checkout` from 4 to 5
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v4...v5 )
Updates `actions/setup-python` from 5 to 6
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/v5...v6 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: actions
- dependency-name: actions/setup-python
dependency-version: '6'
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: actions
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-10-06 11:26:23 +00:00
28ce14ce34
Merge pull request #24 from pythonbpf/func_refactor
...
Refactor handle_return
2025-10-06 05:12:20 +05:30
5066cd4cfe
Use named args for eval_expr call in handle_return
2025-10-06 05:11:33 +05:30
0bfb3855b6
Remove dead code from _handle_ctypes_call
2025-10-06 05:10:22 +05:30
2f0dd20f1e
Add false case for _handle_xdp in return_utils
2025-10-06 05:09:03 +05:30
abef68c274
Remove redundant TODO from return_utils
2025-10-06 05:04:06 +05:30
9aff614ff5
Remove unnecessary parts from return_utils
2025-10-06 05:02:02 +05:30
7b0e8a2fca
Add xdp example for passing return type
2025-10-06 04:59:20 +05:30
3e68d6df4f
Add passing test examples for return statements
2025-10-06 04:57:04 +05:30
b75dc82f90
Remove clutter from handle_return
2025-10-06 04:44:55 +05:30
f53ca3bd5b
Add ctypes in eval_expr
2025-10-06 04:43:04 +05:30
02885af1ca
Add binops to eval_expr
2025-10-06 03:36:44 +05:30
e6e2a69506
Add _is_xdp_name
2025-10-06 03:02:08 +05:30
e4e92710c0
Move XDP pass above general return handling
2025-10-06 02:58:57 +05:30
f08bc9976c
Add _handle_wrapped_return
2025-10-06 02:22:43 +05:30
23183da2e1
Add _handle_variable_return
2025-10-06 00:05:23 +05:30
c6fef1693e
Add _handle_binop_return
2025-10-06 00:03:34 +05:30
192e03aa98
Add _handle_typed_constant_return
2025-10-05 23:59:04 +05:30
6f02b61527
Add _handle_xdp_return
2025-10-05 23:54:06 +05:30
a21ff5633c
Add _handle_none_return
2025-10-05 23:44:46 +05:30
f96a6b94dc
Remove useless args from handle_return
2025-10-05 23:40:48 +05:30
e9f3aa25d2
Make handle_return (crude for now)
2025-10-05 23:19:06 +05:30
d0a8e96b70
Use getitem dunder for StatementHandlerRegistry
2025-10-05 20:10:07 +05:30