Add map decorator and simplify type conversion logic

This commit is contained in:
2025-09-08 20:32:51 +05:30
parent 83937dc11a
commit 08ff07641e
4 changed files with 16 additions and 13 deletions

View File

@ -42,5 +42,8 @@ def globals_processing(tree, module: ir.Module):
elif isinstance(dec, ast.Name) and dec.id == "bpfglobal":
collected.append(node.name)
elif isinstance(dec, ast.Name) and dec.id == "map":
collected.append(node.name)
emit_globals(module, collected)