[LLVMdev] Converting a Constant GEP to a POD integer?
Duncan Sands
baldrick at free.fr
Sat Sep 18 12:24:13 PDT 2010
Hi Talin,
> This is all happening at link time, which means that the target machine is fully
> known by this point. So it ought to be possible to convert the field offset
> expression (including the constant GEP) into a plain integer. Any idea how to do
> this?
probably you can just run the constant folder on it (passing the target data to
the constant folder).
Ciao,
Duncan.
More information about the llvm-dev
mailing list