mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2026-12-06 09:58:34 +00:00
Add LLVM optimizer (#104)
* Add LLVM optimizer * expr_pass: add bpf_passthrough attributes to make tests pass
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user