expr_pass: add bpf_passthrough attributes to make tests pass

This commit is contained in:
2026-09-23 18:33:16 +05:30
parent d9cd0728f5
commit 52e80c8ddd
4 changed files with 30 additions and 8 deletions

View File

@ -72,6 +72,10 @@ class CompilationContext:
# Helper management
self.scratch_pool = ScratchPoolManager()
# Sequence numbers for llvm.bpf.passthrough barriers; each call needs a
# distinct one so the optimizer cannot CSE two barriers together.
self.passthrough_seq = 0
# Vmlinux handling (optional, specialized)
self.vmlinux_handler = None # Can be VmlinuxHandler instance