[LLVMdev] Number of Bytes a GetElementPtr .

Duncan Sands
2010-04-20T07:06:14Z

Hi Rohith,

>    I have the value of a getelementptr instruction. How can i find how
> many bytes it is accessing from the base address. I need this to call
> the alias method.

you can find code doing this in lots of places.  For example, take a
look at lines 205-220 in lib/Analysis/ConstantFolding.cpp, starting
     // Otherwise, add any offset that our operands provide.

Ciao,

Duncan.