Displaying 6 results from an estimated 6 matches for "functionpoint".
Did you mean:
functionpointer
2005 Oct 29
0
[LLVMdev] "Bound Methods" in LLVM Bytecode
...ow Python deals with method calls. I'm
> not sure how/if I can implement this in LLVM. In Python, the following code:
Ok.
> somefunc = a.method
> somefunc()
>
> Roughly translates into:
>
> functionObject = lookup( "method" in object a )
> functionObject->functionPointer()
>
>
> The challenge is that if "method" is actually a method, calling it magically
> adds "a" as the first parameter. If it is NOT a method, then no messing with
> the arguments occurs. As far as can tell, this forces an implementation to
> create BoundM...
2005 Oct 28
3
[LLVMdev] "Bound Methods" in LLVM Bytecode
...e run into a bit of an issue, involving how Python
deals with method calls. I'm not sure how/if I can implement this in
LLVM. In Python, the following code:
somefunc = a.method
somefunc()
Roughly translates into:
functionObject = lookup( "method" in object a )
functionObject->functionPointer()
The challenge is that if "method" is actually a method, calling it
magically adds "a" as the first parameter. If it is NOT a method, then
no messing with the arguments occurs. As far as can tell, this forces an
implementation to create BoundMethod objects that wrap the...
2015 Aug 05
2
[BUG] Incorrect ASCII escape characters on Mac
On Wed, 2015-08-05 at 10:02 -0400, Ramkumar Ramachandra wrote:
>
> - at 5 = internal global [10 x i8] c"\22\D0\12\F4!\00\15\F9\EC\E1"
> - at 6 = internal global [10 x i8] c"\D0\19\FB+\FD\F8#\03\E2\11"
> + at 5 = internal global [10 x i8] c"\22Ð\12ô!\00\15ùìá"
> + at 6 = internal global [10 x i8] c"Ð\19û+ýø#\03â\11"
>
> The diff
2004 May 03
2
[LLVMdev] Problems with getelementptr
...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"* %myKernel, long 0, ubyte 0, long 0, ubyte 0
store int (sbyte*)* %puts_kernel, int (sbyte*)** %puts_kernelPTR
;Want to call the function with a string
%tmp.11 = load int (sbyte*)** %puts_kernelPTR
%result = call int %tmp....
2004 May 03
0
[LLVMdev] Problems with getelementptr
...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 as you would expect.
> ; Try to get pointer to the functionPointer in the map, NOT OK! :-(
> %puts_kernelPTR = getelementptr "Kernel"* %myKernel, long 0, ubyte 0, long 0, ubyte 0
Okay, here you're getting into trouble. myKernel is of type Kernel, which
doesn't contain a pointer to a function. In your case, you need to
actually emit a load...
2002 Oct 22
0
gcc 3.2 performance
....3, but with -O2 only. With -O3, execution times on these can become 2x longer with 3.2 . This appears to be due to -finline-functions that is activated by -O3.
2) Comparison with my own graphing programme with its own expression language (with a byte compiler that that constructs call-graphs with functionpointers to the callbacks and other relevant info, probably not unlike the one in R). Here, 3.2 with -O3 is generally somewhat faster, but I found a single construct (calling a user-defined procedure using a user-supplied pointer to it) that takes almost 10x as long to evaluate with the 3.2 binary.
Spec...