Displaying 3 results from an estimated 3 matches for "getelemtptr".
Did you mean:
getelemntptr
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
2015 May 27
2
[LLVMdev] convert GetElemtPtr result to pointer on element?
Hi Tim,
I forgot to say that I try to do all this in the LLVM API, not IR.
I read in a bc'ed program and try to edit it using the API.
Alex
Tim Northover wrote:
>> 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*).
>
> The result of a
2017 Jul 25
2
Identify c-style pointer to array
HI all,
in C/C++, arrays and matrices often are passed as pointer so functions.
Suppose I'd like to write a pass operating on arrays , for example an
array of doubles passed via double * and checking for the type i will
identify a pointer to double (isAggregateType()=false).
As this style of passing arrays using pointers is widely used, I wonder
if there is any chance to identify a pointer