[PATCH] D85174: BPF: simplify IR generation for __builtin_btf_type_id()

Yonghong Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 3 22:40:01 PDT 2020


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

add a test case in clang where testing type existence of a named struct and the typedef of that named struct will result in different IR intrinsic func arguments which will prevent CSE which may lose one of ditypes.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D85174

Files:
  clang/lib/CodeGen/CGBuiltin.cpp
  clang/test/CodeGen/builtin-bpf-btf-type-id.c
  llvm/include/llvm/IR/IntrinsicsBPF.td
  llvm/lib/Target/BPF/BPFPreserveDIType.cpp
  llvm/test/CodeGen/BPF/BTF/builtin-btf-type-id.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85174.282801.patch
Type: text/x-patch
Size: 17846 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200804/c0c24d99/attachment-0001.bin>


More information about the cfe-commits mailing list