Seperate LocalSymbol from functions

This commit is contained in:
Pragyansh Chaturvedi
2025-10-12 12:10:09 +05:30
parent 2f1aaa4834
commit 69bee5fee9

15
pythonbpf/local_symbol.py Normal file
View File

@ -0,0 +1,15 @@
from llvm import ir
from dataclasses import dataclass
from typing import Any
@dataclass
class LocalSymbol:
var: ir.AllocaInstr
ir_type: ir.Type
metadata: Any = None
def __iter__(self):
yield self.var
yield self.ir_type
yield self.metadata