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

Andrii Nakryiko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 1 17:17:00 PDT 2020


anakryiko added a comment.

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?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D74668





More information about the llvm-commits mailing list