Displaying 1 result from an estimated 1 matches for "myglobalvariable".
Did you mean:
globalvariable
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 gl...