[PATCH] D83878: BPF: support type exist/size and enum exist/value relocations

Yonghong Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 31 15:12:04 PDT 2020


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

use ld_imm64 for enum value [existence] relocations.
put enumerator name in the relocation access_string to bpf loader can
relocate the value based on enum value name.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D83878/new/

https://reviews.llvm.org/D83878

Files:
  llvm/lib/Target/BPF/BPFAbstractMemberAccess.cpp
  llvm/lib/Target/BPF/BPFCORE.h
  llvm/lib/Target/BPF/BTFDebug.cpp
  llvm/lib/Target/BPF/BTFDebug.h
  llvm/test/CodeGen/BPF/CORE/intrinsic-typeinfo-enum-value.ll
  llvm/test/CodeGen/BPF/CORE/intrinsic-typeinfo-type-exist.ll
  llvm/test/CodeGen/BPF/CORE/intrinsic-typeinfo-type-size-1.ll
  llvm/test/CodeGen/BPF/CORE/intrinsic-typeinfo-type-size-2.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83878.282329.patch
Type: text/x-patch
Size: 33272 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200731/fc944ca9/attachment.bin>


More information about the llvm-commits mailing list