[LLVMdev] type size
shreyas76 at gmail.com
Thu Jul 29 22:58:10 PDT 2010
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
Any suggestion on how I can do that or if there are any alternative
ideas towards achieving the same ?
thanks for the answers
More information about the llvm-dev