solana-labs / rbpf

Rust virtual machine and JIT compiler for eBPF programs
Apache License 2.0
277 stars 169 forks source link

make btf instruction class an enum #544

Open ksolana opened 1 year ago

ksolana commented 1 year ago

Three least significant bits are operation class:

https://github.com/solana-labs/rbpf/blob/main/src/ebpf.rs#L61

This helps classify instruction at a broad level.