Displaying 1 result from an estimated 1 matches for "anextra".
Did you mean:
nextra
2015 May 26
2
[LLVMdev] convert GetElemtPtr result to pointer on element?
Hi all,
I'm still struggling with getElementPtr.
I have a global variable (array of doubles).
I can use ConstantExpr::getGetElementPtr(myGlobalVariable, indices) and use
the result as argument of e.g. a function. I read the GEP docu and know that
I need anextra leading '0' index to dereference the global's pointer.
So far so good.
But I can not succeed in using the getGetElementPtr result in constructing
an initalizer for another global value (which expects a ConstantFP* and not
a ConstantExpr*).
I guess I have a missconception, but I can...