Displaying 1 result from an estimated 1 matches for "27be022d".
2014 Apr 17
2
[LLVMdev] More Qs about llvm IR to access struct fields
Suppose I have compiled a record equivalent to:
struct ST {
short s;
char c3, c4;
}
STvar;
and llvm IR:
%STvar = alloca { i16, i8, i8 }
According to "The Often Misunderstood GEP Instruction", I can
construct an artificial llvm type to supply to GEP. (The "ugly GEP"?)
So I can think of three ways to access STvar.c3. These are in order
of increasing easiness for me to