This is an archive of the discontinued LLVM Phabricator instance.

[Clang][LLVM] generate btf_tag annotations for func parameters
ClosedPublic

Authored by yonghong-song on Jul 22 2021, 5:32 PM.

Details

Summary

Generate btf_tag annotations for function parameters.
A field "annotations" is introduced to DILocalVariable, and
annotations are represented as an DINodeArray, similar to
DIComposite elements. The following example illustrates how
annotations are encoded in IR:

distinct !DILocalVariable(name: "info",, arg: 1, ..., annotations: !10)
!10 = !{!11, !12}
!11 = !{!"btf_tag", !"a"}
!12 = !{!"btf_tag", !"b"}

Diff Detail

Event Timeline

yonghong-song created this revision.Jul 22 2021, 5:32 PM
yonghong-song requested review of this revision.Jul 22 2021, 5:32 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 22 2021, 5:32 PM
  • fix llvm/unittests failure
dblaikie accepted this revision.Aug 20 2021, 10:39 AM

Sounds good

This revision is now accepted and ready to land.Aug 20 2021, 10:39 AM
This revision was landed with ongoing or failed builds.Aug 26 2021, 2:19 PM
This revision was automatically updated to reflect the committed changes.