Displaying 2 results from an estimated 2 matches for "gelisah".
Did you mean:
elijah
2012 Sep 19
3
[LLVMdev] newbie question on getelementptr
Hi All,
I'm new to LLVM and I'm having a coding problem.
I'm creating a GlobalVariable that contains a StructType that contains a
Function. The function returns i32 and takes two i32's.
Here is my code:
GlobalVariable* retrieved = module->getGlobalVariable("myGV");
...
Constant* result = ConstantExpr::getGetElementPtr(retrieved, indices);
How do I get my Function
2012 Sep 19
0
[LLVMdev] newbie question on getelementptr
...Struct* @myGV, i32
0, i32 0)
ret void
}
type of myfn:i32 (i32, i32)*Bus error
===================================================================
What am I doing wrong here?
Thank you for your help,
Jay
On Wed, Sep 19, 2012 at 7:02 AM, Óscar Fuentes <ofv at wanadoo.es> wrote:
> Jay Gelisah <jay.gelisah at gmail.com> writes:
>
> > I'm creating a GlobalVariable that contains a StructType that contains a
> > Function. The function returns i32 and takes two i32's.
> >
> > Here is my code:
> > GlobalVariable* retrieved = module->getGlobalV...