[PATCH] D83242: [RFC][BPF] support expr with typedef type for FIELD_EXISTENCE reloc
Andrii Nakryiko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 6 13:37:28 PDT 2020
anakryiko added a comment.
Awesome, that's exactly what we need for BPF helper availability checks!
Can you please also add test that this pattern works:
return __builtin_preserve_field_info((btf_bpf_read_branch_records)0, FIELD_EXISTENCE);
Also for non-func pointer typedefs, something like this would work as well, right?
return __builtin_preserve_field_info(*(T *)0, FIELD_EXISTENCE);
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83242/new/
https://reviews.llvm.org/D83242
More information about the cfe-commits
mailing list