[PATCH] D113222: BPF: Support btf_type_tag attribute
Yonghong Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 4 15:49:50 PDT 2021
yonghong-song created this revision.
yonghong-song added reviewers: ast, anakryiko.
Herald added a subscriber: hiraditya.
yonghong-song requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
A new kind BTF_KIND_TYPE_TAG is defined. The tags associated
with a pointer type are emitted in their IR order as modifiers.
For example, for the following declaration:
int __tag1 * __tag1 __tag2 *g;
The BTF type chain will look like
VAR(g) -> __tag1 --> __tag2 -> pointer -> __tag1 -> pointer -> int
In the above "->" means BTF CommonType.Type which indicates
the point-to type.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D113222
Files:
llvm/lib/Target/BPF/BTF.def
llvm/lib/Target/BPF/BTF.h
llvm/lib/Target/BPF/BTFDebug.cpp
llvm/lib/Target/BPF/BTFDebug.h
llvm/test/CodeGen/BPF/BTF/type-tag-var.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113222.384889.patch
Type: text/x-patch
Size: 7703 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211104/597ef5b4/attachment.bin>
More information about the llvm-commits
mailing list