BPF: emit BTF_KIND_DECL_TAG for typedef types
authorYonghong Song <yhs@fb.com>
Tue, 21 Sep 2021 06:35:58 +0000 (23:35 -0700)
committerYonghong Song <yhs@fb.com>
Thu, 21 Oct 2021 19:09:42 +0000 (12:09 -0700)
commit0472e83ffcc6c0506b0cd67844b97cb34eaa302e
treef4072af491198ccedc01ee95566aaadd5ec2ba15
parentd9eca3320a4d8db11ad65229ef6f564d134fc894
BPF: emit BTF_KIND_DECL_TAG for typedef types

If a typedef type has __attribute__((btf_decl_tag("str"))) with
bpf target, emit BTF_KIND_DECL_TAG for that type in the BTF.

Differential Revision: https://reviews.llvm.org/D112259
llvm/lib/Target/BPF/BTFDebug.cpp
llvm/test/CodeGen/BPF/BTF/tag-typedef.ll [new file with mode: 0644]