diff options
author | Yonghong Song <yhs@fb.com> | 2021-07-18 22:58:37 -0700 |
---|---|---|
committer | Yonghong Song <yhs@fb.com> | 2021-08-12 16:34:22 -0700 |
commit | 1b194ef1ab3b856afb8458fa9c58408360d292cb (patch) | |
tree | 13167f8bd4b40afe63db6abb828d38bcea329d42 /llvm/lib/CodeGen/SplitKit.cpp | |
parent | adb96d2e76ce0c9b9e5a51a4e3dfd2c4efa4c3c3 (diff) | |
download | llvm-1b194ef1ab3b856afb8458fa9c58408360d292cb.zip llvm-1b194ef1ab3b856afb8458fa9c58408360d292cb.tar.gz llvm-1b194ef1ab3b856afb8458fa9c58408360d292cb.tar.bz2 |
[Clang] add btf_tag attribute
A new attribute btf_tag is added. The syntax looks like
__attribute__((btf_tag(<string>)))
Users may tag a particular structure/member/function/func_parameter/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 each permitted
declaration, multiple btf_tag's are allowed.
For detailed use cases, please see
https://lists.llvm.org/pipermail/llvm-dev/2021-June/151009.html
In case that there exist redeclarations, the btf_tag attributes
will be accumulated along with different declarations, and the
last declaration will contain all attributes.
Differential Revision: https://reviews.llvm.org/D106614
Diffstat (limited to 'llvm/lib/CodeGen/SplitKit.cpp')
0 files changed, 0 insertions, 0 deletions