[llvm] [BPF] Handle nested wrapper structs in BPF map definition traversal (PR #144097)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 17 09:44:14 PDT 2025
eddyz87 wrote:
@vadorovsky ,
> Unfortunately, the Rust code I used for generating the IR is the simpliest one which reproduces the issue and actually compiles. To be precise, this is the code:
I mean, you can use my C example, it tests the same thing:
```
struct key { int i; };
struct val { int j; };
#define __uint(name, val) int (*name)[val]
#define __type(name, val) typeof(val) *name
struct {
__uint(type, 1);
__uint(max_entries, 1);
__type(key, struct key);
__type(value, struct val);
} map __attribute__((section(".maps")));
```
https://github.com/llvm/llvm-project/pull/144097
More information about the llvm-commits
mailing list