[PATCH] D106614: [Clang] add btf_tag attribute

Andrii Nakryiko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 27 15:00:19 PDT 2021


anakryiko added inline comments.


================
Comment at: clang/include/clang/Basic/AttrDocs.td:2019
+targets. This attribute may be attached to a struct/union, struct/union field,
+function or variables declaration. If -g is specified, the ARGUMENT info will
+be preserved in IR and be emitted to dwarf. For BPF target, the ARGUMENT info
----------------
can it be also applied to function's argument?


================
Comment at: clang/test/Sema/attr-btf_tag.c:13
+
+int __tag foo(struct t1 __tag *arg) {
+  return arg->a;
----------------
in this case, second __tag, does it apply to function argument, or pointer, or pointer's pointee (struct t1)?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106614/new/

https://reviews.llvm.org/D106614



More information about the cfe-commits mailing list