anza-xyz / move

Move compiler targeting llvm supported backends
https://discord.gg/wFgfjG9J
Apache License 2.0
108 stars 34 forks source link

Add BTF type info to each type while lowering to llvm-ir #64

Open ksolana opened 1 year ago

ksolana commented 1 year ago

Documentation of BTF debug info in llvm https://reviews.llvm.org/D53736

For BPF targets, BTF maybe getting generated automatically for types known to LLVM but we may want additional type info for move types.

BTF Types: https://docs.kernel.org/bpf/btf.html

ksolana commented 1 year ago

An example of btf type id in the binary

https://godbolt.org/z/66rj8rbaP