search for: cc964af3

Displaying 2 results from an estimated 2 matches for "cc964af3".

2012 Sep 19
0
[LLVMdev] newbie question on getelementptr
...; int dummy; > double anotherDummy; > int (*fn)(int, int); > }; > > int callIt(Foo foo) { > return (*foo.fn)(1, 2); > } > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120919/cc964af3/attachment.html>
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