type size

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

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 ?

if you want a different stride, use a different type.

Ciao,

Duncan.