[all-commits] [llvm/llvm-project] f60aef: [BPF] generate btf_decl_tag records for params of ...

eddyz87 via All-commits all-commits at lists.llvm.org
Sat Jan 7 09:34:36 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f60aefdc7ff16aa2d4ab24e25a0c0fbbb10d8ea6
      https://github.com/llvm/llvm-project/commit/f60aefdc7ff16aa2d4ab24e25a0c0fbbb10d8ea6
  Author: Eduard Zingerman <eddyz87 at gmail.com>
  Date:   2023-01-07 (Sat, 07 Jan 2023)

  Changed paths:
    M llvm/lib/Target/BPF/BTFDebug.cpp
    M llvm/lib/Target/BPF/BTFDebug.h
    A llvm/test/CodeGen/BPF/BTF/tag-extern-func.ll

  Log Message:
  -----------
  [BPF] generate btf_decl_tag records for params of extern functions

After frontend changes in the following commit:
"BPF: preserve btf_decl_tag for parameters of extern functions"
same mechanics could be used to get the list of function parameters
and associated btf_decl_tag entries for both extern and non-extern
functions.

This commit extracts this mechanics as a separate auxiliary function
BTFDebug::processDISubprogram(). The function is called for both
extern and non-extern functions in order to generated corresponding
BTF_DECL_TAG records.

Differential Revision: https://reviews.llvm.org/D140971




More information about the All-commits mailing list