Displaying 4 results from an estimated 4 matches for "mykernelmapinst".
2004 May 11
0
[LLVMdev] Problems accessing structs
...nt %puts_kernel(sbyte* %string)
> {
> %tmp0 = call 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"** &...
2004 May 11
2
[LLVMdev] Problems accessing structs
...quot;*}
declare int %printf(sbyte*, ...)
declare int %getchar(...)
int %puts_kernel(sbyte* %string)
{
%tmp0 = call 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"** "myKernelMa...
2004 May 03
2
[LLVMdev] Problems with getelementptr
...rnel(sbyte* %string)
{
%tmp.0 = call int (sbyte*, ...)* %printf( sbyte* %string )
ret int 0
}
;the map and the class. The class 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"**...
2004 May 03
0
[LLVMdev] Problems with getelementptr
...uot;.
> "myKernelMap" = type {int (sbyte*)*}
Okay, this declares a structure that has a single pointer-to-function
element in it.
> "Kernel" = type {"myKernelMap"*}
This is a single 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 give...