[LLVMdev] type size
shreyas krishnan
shreyas76 at gmail.com
Thu Jul 29 22:58:10 PDT 2010
Hi
I would like to get different type sizes for some types when they
are on stack versus not on stack. This would help me stride
aggregates of the types differently. Is there a way to influence the
GEP's lowering such that it uses the right stride depending on what
memory it is accessing ?
Currently I see TD.TypeAllocSize being used to obtain the offset in
SelectGetElementPtr which only depends on the type and returns the
same offset.
Any suggestion on how I can do that or if there are any alternative
ideas towards achieving the same ?
thanks for the answers
shrey
More information about the llvm-dev
mailing list