Displaying 4 results from an estimated 4 matches for "mykernelmapptr".
2004 May 11
2
[LLVMdev] Problems accessing structs
...ll int (sbyte*, ...)* %printf(sbyte* %string)
ret int 0
}
int %getchar_kernel()
{
%tmp0 = call int (...)* %getchar()
ret int 0
}
"Kernel"* "createKernel"()
{
"myKernelMapInstance" = malloc "myKernelMap"
"myKernel" = malloc "Kernel"
"myKernelMapPTR" = getelementptr "Kernel"* "myKernel", long 0, ubyte 0
store "myKernelMap"* "myKernelMapInstance", "myKernelMap"** "myKernelMapPTR"
"puts_kernelPTRPTRMAP" = getelementptr "Kernel"* "myKernel", long 0, uby...
2004 May 03
2
[LLVMdev] Problems with getelementptr
...lass is called "Kernel".
"myKernelMap" = type {int (sbyte*)*}
"Kernel" = type {"myKernelMap"*}
;Allocating...OK
"myKernelMapInstance" = malloc "myKernelMap"
%myKernel = malloc "Kernel"
;Assigning the map to the class...OK
"myKernelMapPTR" = getelementptr "Kernel"* %myKernel, long 0, ubyte 0
store "myKernelMap"* "myKernelMapInstance", "myKernelMap"** "myKernelMapPTR"
; Try to get pointer to the functionPointer in the map, NOT OK! :-(
%puts_kernelPTR = getelementptr "Kernel...
2004 May 11
0
[LLVMdev] Problems accessing structs
...t;
> int %getchar_kernel()
> {
> %tmp0 = call int (...)* %getchar()
> ret int 0
> }
>
> "Kernel"* "createKernel"()
> {
> "myKernelMapInstance" = malloc "myKernelMap"
> "myKernel" = malloc "Kernel"
> "myKernelMapPTR" = getelementptr "Kernel"* "myKernel", long 0, ubyte 0
> store "myKernelMap"* "myKernelMapInstance", "myKernelMap"** "myKernelMapPTR"
> "puts_kernelPTRPTRMAP" = getelementptr "Kernel"* "myKernel", l...
2004 May 03
0
[LLVMdev] Problems with getelementptr
...element structure with a pointer to the map.
> ;Allocating...OK
> "myKernelMapInstance" = malloc "myKernelMap"
> %myKernel = malloc "Kernel"
Okay, these are of type %myKernelMap and %Kernel, respectively.
> ;Assigning the map to the class...OK
> "myKernelMapPTR" = getelementptr "Kernel"* %myKernel, long 0, ubyte 0
This gives you a pointer to the '%myKernelMap*' in the Kernel type.
> store "myKernelMap"* "myKernelMapInstance", "myKernelMap"** "myKernelMapPTR"
And this stores the pointer a...