[PATCH] D83242: [clang][BPF] support type existence/size and enum value relocations
Yonghong Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 29 07:59:28 PDT 2020
yonghong-song added a comment.
One potential missing relocation is to test whether a particular enum value (from an enum type) exists or not.
One way is to create a new relocation type ENUM_VALUE_EXISTENCE where "access_string" to encode the enum value. This is different from TYPE_EXISTENCE for enum type where the "access_string" is "0".
Alternatively, we could have TYPE_EXISTENCE to include enum value existence as well. "access_string" is say "0" for typedef/record/enum types and "0:<enum_value>" for enum value.
WDYT?
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