Displaying 1 result from an estimated 1 matches for "foo_offsets".
2009 May 11
1
[LLVMdev] Mapping field names to GEP indices in clang-compiled C
I'm using clang to compile functions and types written in C into LLVM
IR so that I can inline calls and avoid hand-writing the StructType
definitions. The types clang generates are packed structs instead of
ordinary structs. So for
struct Foo {
char x;
int* y;
};
clang produces the type <{i8, i8, i8, i8, i32*}> instead of {i8,
i32*}. To extract the 'y' field from the