mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
16 lines
287 B
Python
16 lines
287 B
Python
import llvmlite.ir as 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
|