search for: mykernelmap

Displaying 4 results from an estimated 4 matches for "mykernelmap".

2004 May 11
2
[LLVMdev] Problems accessing structs
Hello! I get some odd behaviour using my structs: "myKernelMap" = type {int (sbyte*)*, int ()*} "Kernel" = type {"myKernelMap"*} The second member ( int()* ) is a pointer to the %getchar() function. I want to call getchar using this function: int "callmyKernelgetchar_kernel"("Kernel"* "myKernel") {...
2004 May 11
0
[LLVMdev] Problems accessing structs
Anders Alexandersson wrote: > Hello! > > I get some odd behaviour using my structs: > > "myKernelMap" = type {int (sbyte*)*, int ()*} > "Kernel" = type {"myKernelMap"*} > > The second member ( int()* ) is a pointer to the %getchar() function. > > I want to call getchar using this function: > > int "callmyKernelgetchar_kernel"("Kerne...
2004 May 03
2
[LLVMdev] Problems with getelementptr
...th the fact that I am using only pointers in my structs? Best regards Anders ; My user defined function int %puts_kernel(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&qu...
2004 May 03
0
[LLVMdev] Problems with getelementptr
...see code below)? Is it > something with the fact that I am using only pointers in my structs? > > Best regards > Anders > > ; My user defined function > declare int %puts_kernel(sbyte* %string) > > ;the map and the class. The class is called "Kernel". > "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" =...