llvm-project/clang/lib
Yonghong Song 1b194ef1ab [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
2021-08-12 16:34:22 -07:00
..
APINotes [clang][APINotes] Fix -Wunused-function warning (NFC) 2021-04-01 09:52:43 +08:00
ARCMigrate [clang] Introduce SourceLocation::[U]IntTy typedefs. 2021-07-21 10:45:46 +01:00
AST [AST][clangd] Expose documentation of Attrs on hover. 2021-08-12 21:16:37 +02:00
ASTMatchers Reapply "Support Attr in DynTypedNode and ASTMatchers." 2021-08-06 22:30:32 +02:00
Analysis [analyzer][NFC] Display the correct function name even in crash dumps 2021-07-12 09:06:46 +02:00
Basic [PowerPC] Implement XL compatibility builtin __addex 2021-08-12 16:38:21 -05:00
CodeGen CodeGen: No need to check for isExternC if HasStrictReturn is already false 2021-08-11 07:42:48 -07:00
CrossTU PR51018: Remove explicit conversions from SmallString to StringRef to future-proof against C++23 2021-07-08 13:37:57 -07:00
DirectoryWatcher Revert "Re-Revert "DirectoryWatcher: add an implementation for Windows"" 2021-06-19 09:19:52 -07:00
Driver [CSSPGO] Allow the use of debug-info-for-profiling and pseudo-probe-for-profiling together 2021-08-12 08:52:49 -07:00
Edit [Matrix] Implement C-style explicit type conversions for matrix types. 2021-04-10 11:48:41 +01:00
Format [clang-format] improve distinction of K&R function definitions vs attributes 2021-08-12 10:29:06 +02:00
Frontend Frontend: Add -f{,no-}implicit-modules-uses-lock and -Rmodule-lock 2021-08-12 15:58:19 -07:00
FrontendTool [OptTable] Rename PrintHelp to printHelp 2021-06-24 14:47:03 -07:00
Headers Revert "[openmp] Annotate tmp variables with omp_thread_mem_alloc" 2021-08-12 17:44:36 +01:00
Index [llvm][clang][NFC] updates inline licence info 2021-08-11 02:48:53 +00:00
IndexSerialization
Interpreter Reland "[clang-repl] Implement partial translation units and error recovery." 2021-07-12 15:21:22 +00:00
Lex Apply -fmacro-prefix-map to __builtin_FILE() 2021-08-04 16:42:14 -07:00
Parse [CodeComplete] Basic code completion for attribute names. 2021-08-12 23:49:10 +02:00
Rewrite [analyzer] Highlight arrows for currently selected event 2021-08-02 19:15:01 +03:00
Sema [Clang] add btf_tag attribute 2021-08-12 16:34:22 -07:00
Serialization [clang] Introduce SourceLocation::[U]IntTy typedefs. 2021-07-21 10:45:46 +01:00
StaticAnalyzer [clang][analyzer] Improve bug report in alpha.security.ReturnPtrRange 2021-08-11 13:04:55 +02:00
Testing
Tooling [llvm][clang][NFC] updates inline licence info 2021-08-11 02:48:53 +00:00
CMakeLists.txt [clang-repl] Recommit "Land initial infrastructure for incremental parsing" 2021-05-13 06:30:29 +00:00