[PATCH] D74668: [Clang][BPF] implement __builtin_btf_type_id() builtin function

Yonghong Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 1 17:23:52 PDT 2020


yonghong-song added a comment.

In D74668#2015294 <https://reviews.llvm.org/D74668#2015294>, @anakryiko wrote:

> Let's extend __builtin_btf_type_id() to accept second argument specifying whether it's local BTF ID (from program's BTF) or target BTF ID (from kernel/module BTF)? We can probably make it an enum just like with preserve_access_index() built-in, for easy future extension. WDYT?


This is on my to-do list. Haven't do it since the builtin is not used yet. Will do this once my bpf_iter v2 is sent out.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D74668





More information about the cfe-commits mailing list