[PATCH] D58936: [BPF] Do not generate BTF sections unnecessarily

Yonghong Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 4 16:42:28 PST 2019


yonghong-song created this revision.
yonghong-song added a reviewer: ast.
Herald added subscribers: llvm-commits, jdoerfert.
Herald added a project: LLVM.

If There is no types/non-empty strings, do not generate
.BTF section. If there is no func_info/line_info, do
not generate .BTF.ext section.


Repository:
  rL LLVM

https://reviews.llvm.org/D58936

Files:
  lib/Target/BPF/BTFDebug.cpp
  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/char.ll
  test/CodeGen/BPF/BTF/empty-btf.ll
  test/CodeGen/BPF/BTF/enum-basic.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: D58936.189231.patch
Type: text/x-patch
Size: 32531 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190305/28a2958e/attachment.bin>


More information about the llvm-commits mailing list