[PATCH] D55752: [BPF] Add BTF DebugInfo under BPF target

Yonghong Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 16 16:31:04 PST 2018


yonghong-song created this revision.
yonghong-song added reviewers: aprantl, dblaikie, echristo, ast.
Herald added subscribers: llvm-commits, JDevlieghere, mgorny.

  This is an alternative implementation for
  https://reviews.llvm.org/D53736.
  
  The patch D53736 implemented BTF generation
  functionality at lib/CodeGen/AsmPrinter directory.
  
  This patch provided an implementation which
  has the same functionality to D53736, but
  implemented at lib/Target/BTF directory.
  Three private header files,
    lib/CodeGen/AsmPrinter/AsmPrinterHandler.h
    lib/CodeGen/AsmPrinter/DbgEntityHistoryCalculator.h
    lib/CodeGen/AsmPrinter/DebugHandlerBase.h
  are moved to include/llvm/CodeGen.
  
  A new overridable function, EmitTargetSections(),
  is added to AsmPrinter class.
  Currently, only BPF backend overrides this function
  which implemented BTF generation.


Repository:
  rL LLVM

https://reviews.llvm.org/D55752

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55752.178415.patch
Type: text/x-patch
Size: 187981 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181217/a8803a9b/attachment-0001.bin>


More information about the llvm-commits mailing list