e7c4bdb150
add global support with broken generation function
2025-10-10 22:54:07 +05:30
7210366e7d
add global failing test
...
Signed-off-by: varun-r-mallya <varunrmallya@gmail.com >
2025-10-10 22:54:06 +05:30
435bf27176
Add compile to tests/failing_tests/conditionals/helper_cond.py
2025-10-10 22:54:06 +05:30
019a83cf11
Add passing and.py test for conditionals
2025-10-10 22:54:01 +05:30
140d9e6e35
Add passing or.py test for conditionals
2025-10-10 22:54:01 +05:30
cfc246c80d
Add explanation notes to failing conditionals tests
2025-10-10 22:53:58 +05:30
f3c80f9e5f
Add helper_cond failing test for conditionals
2025-10-10 22:53:58 +05:30
0d3a5748dd
Move map_comp test to passing
2025-10-10 22:53:57 +05:30
e180a89644
Add _normalize_types to handle mismatched ints, move type_mismatch test to passing
2025-10-10 22:53:55 +05:30
34a267e982
Add type_mismatch failing test for conditionals
2025-10-10 22:53:55 +05:30
c81aad7c67
Add failing struct_ptr test for conditionals
2025-10-10 22:53:54 +05:30
2e677c2c7b
Fix struct_access in eval_expr, move struct_access conditional test to passing
2025-10-10 22:53:54 +05:30
b8b937bfca
Add failing test map_comp for conditionals
2025-10-10 22:53:53 +05:30
6cc29c4fa1
Add var_comp test for conditionals
2025-10-10 22:53:52 +05:30
5451ba646d
Add support for unary op 'not' in eval_expr, move not test to passing
2025-10-10 22:53:52 +05:30
7720437ca5
Add failing tests struct and not for conditionals
2025-10-10 22:53:52 +05:30
eb0a7a917d
Add map test to conditionals
2025-10-10 22:53:51 +05:30
6f65903552
Add var_binop test for conditionals
2025-10-10 22:53:51 +05:30
97e74d09be
Add var test for conditionals
2025-10-10 22:53:50 +05:30
9c7560ed2e
Add const_binop test for conditionals
2025-10-10 22:53:50 +05:30
2979ceedcf
Add const_int test for conditionals
2025-10-10 22:53:49 +05:30
745f59278f
Move conditional logic to eval_expr, add _conver_to_bool, add passing bool test
2025-10-10 22:53:49 +05:30
49c59b32ca
Add Boolean return support
2025-10-10 22:53:48 +05:30
c596213b2a
Add cst_var_binop.py as passing assign test
2025-10-09 03:42:25 +05:30
054a834464
Add failing assign test retype.py, with explanation
2025-10-09 03:28:07 +05:30
e66ae7cc89
Add failing oneline IfExpr conditional test
2025-10-08 21:36:08 +05:30
b95fbd0ed0
rollback example
2025-10-08 14:53:51 +05:30
32dc8e6636
Merge pull request #21 from pythonbpf/globals
...
Adds support for globals
SO......
*I'm not merging this because it's complete, but because I don't want it to diverge from master too much.
*Stuff I still need to complete:
-> Structs and eval expressions in these globals.
-> handling the global keyword.
-> assigning back to the global and reading from inside a function.
-> Basically, `global` keyword in Python is used to write only and reading can be done directly without declaring as global as a direct assign without global declaration is going to diverge from Python.
-> The above logic is going to be supported by `global_sym_tab` generated using the new order of passes that we are doing.
-> This needs to be fixed and done ASAP to avoid conflicts. so yes, im gonna do it soon.
2025-10-08 14:48:37 +05:30
8e3942d38c
format chore
2025-10-08 14:31:37 +05:30
d84ce0c6fa
update helpers and change examples.
2025-10-08 13:57:09 +05:30
8d07a4cd05
add xdp struct to args
...
Signed-off-by: varun-r-mallya <varunrmallya@gmail.com >
2025-10-08 11:40:12 +05:30
8485460374
Merge pull request #26 from pythonbpf/refactor_conds
...
Refactor conds
2025-10-08 07:28:08 +05:30
9fdc6fa3ed
Add compile to tests/failing_tests/conditionals/helper_cond.py
2025-10-08 07:26:41 +05:30
3bb4b099c1
Add passing and.py test for conditionals
2025-10-08 06:28:03 +05:30
e7912a088f
Add passing or.py test for conditionals
2025-10-08 06:27:18 +05:30
ecac24c1d2
Add explanation notes to failing conditionals tests
2025-10-08 05:57:17 +05:30
a764b095f8
Add helper_cond failing test for conditionals
2025-10-08 05:54:49 +05:30
95a196a91f
Move map_comp test to passing
2025-10-08 05:53:52 +05:30
0d9dcd122c
Merge pull request #27 from pythonbpf/vmlinux
...
Add vmlinux transpiler from experiments
2025-10-08 05:19:44 +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
2d850f457f
Add _normalize_types to handle mismatched ints, move type_mismatch test to passing
2025-10-08 02:22:41 +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
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