search for: function_pointer_1

Displaying 7 results from an estimated 7 matches for "function_pointer_1".

2004 Mar 31
2
[LLVMdev] Function pointers
Hello out there! I am trying to build a table of 2 function poiters by using an array: %kernel = alloca [ 2 x int ()* ] I try to access the first pointer to be able to store location of my first function like this: %function_pointer_1 = getelementptr [2 x int ()* ]* %kernel, long 0, long 0 store int ()* %function_1, int ()* %function_pointer_1 But, I get the error message from llvm-asm: llvm-as: 1.ll:40: Can't store 'int () *' into space of type 'int ()'! What is my mistake? Grateful for hints Anders -...
2004 Mar 31
0
[LLVMdev] Function pointers
...Mar 2004, Anders Alexandersson wrote: > Hello out there! > > I am trying to build a table of 2 function poiters by using an array: > > %kernel = alloca [ 2 x int ()* ] > > I try to access the first pointer to be able to store location of my first function like this: > > %function_pointer_1 = getelementptr [2 x int ()* ]* %kernel, long 0, long 0 > > store int ()* %function_1, int ()* %function_pointer_1 You just need an extra * here: ^ You're storing a pointer through a pointer to pointers... :) -Chris > > But, I get the error message from llvm-asm: > llvm-...
2004 Apr 01
1
[LLVMdev] Function pointers
...Mar 2004, Anders Alexandersson wrote: > Hello out there! > > I am trying to build a table of 2 function poiters by using an array: > > %kernel = alloca [ 2 x int ()* ] > > I try to access the first pointer to be able to store location of my first function like this: > > %function_pointer_1 = getelementptr [2 x int ()* ]* %kernel, long 0, long 0 > > store int ()* %function_1, int ()* %function_pointer_1 You just need an extra * here: ^ You're storing a pointer through a pointer to pointers... :) -Chris > > But, I get the error message from llvm-asm: > llvm-...
2004 Apr 02
2
[LLVMdev] Function pointers
...ello out there! > > > > I am trying to build a table of 2 function poiters by using an array: > > > > %kernel = alloca [ 2 x int ()* ] > > > > I try to access the first pointer to be able to store location of my first > function like this: > > > > %function_pointer_1 = getelementptr [2 x int ()* ]* %kernel, long 0, long > 0 > > > > store int ()* %function_1, int ()* %function_pointer_1 > > You just need an extra * here: ^ > > You're storing a pointer through a pointer to pointers... :) > > -Chris > > > > &gt...
2004 Apr 02
0
[LLVMdev] Function pointers
...I am trying to build a table of 2 function poiters by using an array: > > > > > > %kernel = alloca [ 2 x int ()* ] > > > > > > I try to access the first pointer to be able to store location of my first > > function like this: > > > > > > %function_pointer_1 = getelementptr [2 x int ()* ]* %kernel, long 0, long > > 0 > > > > > > store int ()* %function_1, int ()* %function_pointer_1 > > > > You just need an extra * here: ^ > > > > You're storing a pointer through a pointer to pointers... :) >...
2004 Apr 02
0
[LLVMdev] Function pointers
...ello out there! > > > > I am trying to build a table of 2 function poiters by using an array: > > > > %kernel = alloca [ 2 x int ()* ] > > > > I try to access the first pointer to be able to store location of my first > function like this: > > > > %function_pointer_1 = getelementptr [2 x int ()* ]* %kernel, long 0, long > 0 > > > > store int ()* %function_1, int ()* %function_pointer_1 > > You just need an extra * here: ^ > > You're storing a pointer through a pointer to pointers... :) > > -Chris > > > > &gt...
2004 Apr 02
0
[LLVMdev] Function pointers
...ello out there! > > > > I am trying to build a table of 2 function poiters by using an array: > > > > %kernel = alloca [ 2 x int ()* ] > > > > I try to access the first pointer to be able to store location of my first > function like this: > > > > %function_pointer_1 = getelementptr [2 x int ()* ]* %kernel, long 0, long > 0 > > > > store int ()* %function_1, int ()* %function_pointer_1 > > You just need an extra * here: ^ > > You're storing a pointer through a pointer to pointers... :) > > -Chris > > > > &gt...