[PATCH] D53261: [BPF] Add BTF generation for BPF target

Yonghong Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 15 22:41:46 PDT 2018


yonghong-song updated this revision to Diff 169782.
yonghong-song edited the summary of this revision.
yonghong-song added a comment.

Address comments raised by Adrian Prantl and a few other changes:

- variable names confirms to llvm coding standard
- adding doxygen comments for certain data structures, all classes and some methods
- removed a few unused routines (forgot to remove last time) and I double checked that for this veresion I did not have any unused routines
- a few code improvement (better C++ styple implementation, for example, "for (auto &TypeEntry : TypeEntries) ..." instead of old way "for (uint32_t I = 0; I < TypeEntries.size(); I++) ...".
- removed dead codes in Die2BTFEntry constructor


Repository:
  rL LLVM

https://reviews.llvm.org/D53261

Files:
  include/llvm/MC/MCBTFContext.h
  include/llvm/MC/MCContext.h
  include/llvm/MC/MCObjectFileInfo.h
  include/llvm/MC/MCObjectStreamer.h
  lib/CodeGen/AsmPrinter/CMakeLists.txt
  lib/CodeGen/AsmPrinter/Dwarf2BTF.cpp
  lib/CodeGen/AsmPrinter/Dwarf2BTF.h
  lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  lib/CodeGen/AsmPrinter/DwarfDebug.h
  lib/CodeGen/AsmPrinter/DwarfFile.cpp
  lib/CodeGen/AsmPrinter/DwarfFile.h
  lib/MC/CMakeLists.txt
  lib/MC/MCBTFContext.cpp
  lib/MC/MCContext.cpp
  lib/MC/MCDwarf2BTF.cpp
  lib/MC/MCDwarf2BTF.h
  lib/MC/MCObjectFileInfo.cpp
  lib/MC/MCObjectStreamer.cpp
  test/MC/BPF/btf-ext-1.ll
  test/MC/BPF/btf-ext-2.ll
  test/MC/BPF/btf-type-array-1.ll
  test/MC/BPF/btf-type-array-2.ll
  test/MC/BPF/btf-type-char.ll
  test/MC/BPF/btf-type-const.ll
  test/MC/BPF/btf-type-enum.ll
  test/MC/BPF/btf-type-forward.ll
  test/MC/BPF/btf-type-func-proto.ll
  test/MC/BPF/btf-type-int.ll
  test/MC/BPF/btf-type-llong.ll
  test/MC/BPF/btf-type-ptr-int.ll
  test/MC/BPF/btf-type-ptr-void.ll
  test/MC/BPF/btf-type-short.ll
  test/MC/BPF/btf-type-struct-1.ll
  test/MC/BPF/btf-type-struct-2.ll
  test/MC/BPF/btf-type-typedef.ll
  test/MC/BPF/btf-type-uchar.ll
  test/MC/BPF/btf-type-uint.ll
  test/MC/BPF/btf-type-ullong.ll
  test/MC/BPF/btf-type-union.ll
  test/MC/BPF/btf-type-ushort.ll
  test/MC/BPF/btf-type-volatile.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53261.169782.patch
Type: text/x-patch
Size: 111577 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181016/b533fbe5/attachment.bin>


More information about the llvm-commits mailing list