[PATCH] D53736: [BTF] Add BTF DebugInfo

Yonghong Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 30 10:54:33 PDT 2018


yonghong-song updated this revision to Diff 171730.
yonghong-song added a comment.

kernel BTF verifier requires if a FUNC kind is a subprogram, all its arguments must be valid identifier.
Using SP RetainedNodes instead DbgValues so we can get all argument local variables even if they
are not used in the function body. Added a test case to test such a scenario.


Repository:
  rL LLVM

https://reviews.llvm.org/D53736

Files:
  include/llvm/BinaryFormat/BTF.def
  include/llvm/BinaryFormat/BTF.h
  include/llvm/MC/MCObjectFileInfo.h
  lib/CodeGen/AsmPrinter/AsmPrinter.cpp
  lib/CodeGen/AsmPrinter/BTFDebug.cpp
  lib/CodeGen/AsmPrinter/BTFDebug.h
  lib/CodeGen/AsmPrinter/CMakeLists.txt
  lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
  lib/CodeGen/AsmPrinter/DebugHandlerBase.h
  lib/MC/MCObjectFileInfo.cpp
  test/DebugInfo/BTF/array-1d-char.ll
  test/DebugInfo/BTF/array-1d-int.ll
  test/DebugInfo/BTF/array-2d-int.ll
  test/DebugInfo/BTF/array-size-0.ll
  test/DebugInfo/BTF/array-typedef.ll
  test/DebugInfo/BTF/binary-format.ll
  test/DebugInfo/BTF/char.ll
  test/DebugInfo/BTF/enum-basic.ll
  test/DebugInfo/BTF/func-func-ptr.ll
  test/DebugInfo/BTF/func-non-void.ll
  test/DebugInfo/BTF/func-source.ll
  test/DebugInfo/BTF/func-typedef.ll
  test/DebugInfo/BTF/func-unused-arg.ll
  test/DebugInfo/BTF/func-void.ll
  test/DebugInfo/BTF/fwd-no-define.ll
  test/DebugInfo/BTF/fwd-with-define.ll
  test/DebugInfo/BTF/int.ll
  test/DebugInfo/BTF/lit.local.cfg
  test/DebugInfo/BTF/longlong.ll
  test/DebugInfo/BTF/ptr-const-void.ll
  test/DebugInfo/BTF/ptr-func-1.ll
  test/DebugInfo/BTF/ptr-func-2.ll
  test/DebugInfo/BTF/ptr-func-3.ll
  test/DebugInfo/BTF/ptr-int.ll
  test/DebugInfo/BTF/ptr-void.ll
  test/DebugInfo/BTF/ptr-volatile-const-void.ll
  test/DebugInfo/BTF/ptr-volatile-void.ll
  test/DebugInfo/BTF/restrict-ptr.ll
  test/DebugInfo/BTF/short.ll
  test/DebugInfo/BTF/struct-anon.ll
  test/DebugInfo/BTF/struct-basic.ll
  test/DebugInfo/BTF/struct-bitfield-typedef.ll
  test/DebugInfo/BTF/struct-enum.ll
  test/DebugInfo/BTF/uchar.ll
  test/DebugInfo/BTF/uint.ll
  test/DebugInfo/BTF/ulonglong.ll
  test/DebugInfo/BTF/union-array-typedef.ll
  test/DebugInfo/BTF/ushort.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53736.171730.patch
Type: text/x-patch
Size: 176113 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181030/f65fe176/attachment-0001.bin>


More information about the llvm-commits mailing list