[PATCH] D106614: [Clang] add btf_tag attribute
Yonghong Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 22 17:15:59 PDT 2021
yonghong-song created this revision.
yonghong-song added reviewers: dblaikie, probinson, aprantl, aaron.ballman, ast.
yonghong-song added a project: debug-info.
Herald added a subscriber: jdoerfert.
yonghong-song requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
A new attribute btf_tag is added. The syntax looks like
__attribute__((btf_tag(<string>)))
Users may tag a particular structure/member/function/variable
declaration with an arbitrary string and the intention is
that this string is passed to dwarf so it is available for
post-compilation analysis. The string will be also passed
to .BTF section if the target is BPF. For detailed use cases,
please see
https://lists.llvm.org/pipermail/llvm-dev/2021-June/151009.html
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D106614
Files:
clang/include/clang/Basic/Attr.td
clang/include/clang/Basic/AttrDocs.td
clang/lib/Sema/SemaDeclAttr.cpp
clang/test/Misc/pragma-attribute-supported-attributes-list.test
clang/test/Sema/attr-btf_tag.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106614.361035.patch
Type: text/x-patch
Size: 4294 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210723/e1ee9a47/attachment.bin>
More information about the cfe-commits
mailing list