[PATCH] D145891: [BPF] Generate BTF info using 'btf:type_tag' annotation

Eduard Zingerman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 19 15:55:39 PDT 2023


eddyz87 updated this revision to Diff 506445.
eddyz87 added a comment.
Herald added a reviewer: alexander-shaposhnikov.

- Safer hash/equality checks for type tags BTF de-duplication, instead of kind/name comparison complete shallow type structure is considered;
- Support for subroutine types in type tags BTF de-duplication;
- New script `print_btf.py` for use with tests. It can print BTF in the same format bpftool does;
- Type tag BTF de-duplication tests moved to used `print_btf.py`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145891/new/

https://reviews.llvm.org/D145891

Files:
  llvm/lib/Target/BPF/BTFDebug.cpp
  llvm/lib/Target/BPF/BTFDebug.h
  llvm/test/CodeGen/BPF/BTF/print_btf.py
  llvm/test/CodeGen/BPF/BTF/type-tag-dedup-enum.ll
  llvm/test/CodeGen/BPF/BTF/type-tag-dedup-struct.ll
  llvm/test/CodeGen/BPF/BTF/type-tag-dedup-subroutine.ll
  llvm/test/CodeGen/BPF/BTF/type-tag-dedup-typedef.ll
  llvm/test/CodeGen/BPF/BTF/type-tag-dedup-union.ll
  llvm/test/CodeGen/BPF/BTF/type-tag-field-relo.ll
  llvm/test/CodeGen/BPF/BTF/type-tag-fixup-fwd.ll
  llvm/test/CodeGen/BPF/BTF/type-tag-fixup-resolved.ll
  llvm/test/CodeGen/BPF/BTF/type-tag-skip-var.ll
  llvm/test/CodeGen/BPF/BTF/type-tag-var.ll
  llvm/test/CodeGen/BPF/BTF/type-tag-void.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145891.506445.patch
Type: text/x-patch
Size: 99275 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230319/cd51c5d6/attachment.bin>


More information about the llvm-commits mailing list