This is an archive of the discontinued LLVM Phabricator instance.

BPF: Support btf_type_tag attribute
ClosedPublic

Authored by yonghong-song on Nov 4 2021, 3:49 PM.

Details

Summary

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.

Diff Detail

Event Timeline

yonghong-song created this revision.Nov 4 2021, 3:49 PM
yonghong-song requested review of this revision.Nov 4 2021, 3:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 4 2021, 3:49 PM
ast accepted this revision.Nov 4 2021, 4:04 PM
This revision is now accepted and ready to land.Nov 4 2021, 4:04 PM
This revision was landed with ongoing or failed builds.Nov 4 2021, 5:02 PM
This revision was automatically updated to reflect the committed changes.