search for: alexandersson

Displaying 20 results from an estimated 21 matches for "alexandersson".

2004 Apr 02
2
[LLVMdev] Function pointers
...rnel %puts_kernelPTR = getelementptr %kernel* %theKernel, long 1, ubyte 0 store int ()* %puts_kernel, int ()** %puts_kernelPTR %tmp.11 = load int ()** %puts_kernelPTR %tmp.2 = call int %tmp.11() free %kernel* %theKernel :-) Anders -----Original Message----- From: Anders Alexandersson <anders.alexandersson at student.htu.se> To: llvmdev at cs.uiuc.edu Date: Fri, 02 Apr 2004 13:38:30 +0200 Subject: Re: Re: Re: [LLVMdev] Function pointers I solved that one by substituting alloca into malloc, and forwarded the problem to actually calling the %puts_kernel function via my newl...
2004 Apr 02
0
[LLVMdev] Function pointers
On Fri, 2 Apr 2004, Anders Alexandersson wrote: > OK, I solved it all ( so far :) ), mixing in some load-instructions and > called on the result of that, which worked. > > Here is the skeleton-code: > > %kernel = type { int ()* } > > int puts_kernel(){...} > > ; main() > > %theKernel = malloc %kernel...
2004 Apr 02
0
[LLVMdev] Function pointers
...%tmp.1 = call int %puts_kernel() This: %tmp.2 = call int %puts_kernelPTR() issues error: "Reference to an invalid definition: 'puts_kernelPTR' of type 'int () *'" How do I call the function using the function pointer? Anders -----Original Message----- From: Anders Alexandersson <anders.alexandersson at student.htu.se> To: llvmdev at cs.uiuc.edu Date: Fri, 02 Apr 2004 10:07:50 +0200 Subject: Re: Re: [LLVMdev] Function pointers So, here comes the next question:) Now the program compiles, but crashes when run, "Segmentation fault". %kernel = type { int (...
2004 Mar 31
2
[LLVMdev] Function pointers
...%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 ---------------------------------------------------------------- Anders Alexandersson Masters student at the special year of Software Engineering, HTU Trollhättan E-mail: anders.alexandersson at student.htu.se
2004 Apr 01
1
[LLVMdev] Function pointers
..., so be prepared for more questions...:) Thanks again! Anders ----- Original Message ----- From: "Chris Lattner" <sabre at nondot.org> To: <llvmdev at cs.uiuc.edu> Sent: Wednesday, March 31, 2004 5:49 PM Subject: Re: [LLVMdev] Function pointers On Wed, 31 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 = getelemen...
2004 Apr 02
0
[LLVMdev] Function pointers
...nction(); printf("b is: %i\n", b); } Grateful for hints! Anders -----Original Message----- From: Chris Lattner <sabre at nondot.org> To: llvmdev at cs.uiuc.edu Date: Thu, 1 Apr 2004 09:51:48 -0600 (CST) Subject: Re: [LLVMdev] Function pointers On Thu, 1 Apr 2004 anders.alexandersson at student.htu.se wrote: > Yes! :-) > What would I do without you folks?! :) > I am the one trying to build a Ruby compiler prototype, so be prepared for > more questions...:) Sounds great! -Chris > ----- Original Message ----- > From: "Chris Lattner" <sabre at...
2004 Mar 31
0
[LLVMdev] Function pointers
On Wed, 31 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 = getelemen...
2004 May 05
2
[LLVMdev] Not allowed to reuse variables?
...R ... %tmpFunction = load int ()** %puts_kernelPTR generates Redefinition of value named 'tmpFunction' in the 'int () *' type plane! Is it not allowed to reuse variables? Is there some way to do it? Anders ---------------------------------------------------------------- Anders Alexandersson Masters student at the special year of Software Engineering, HTU Trollhättan E-mail: anders.alexandersson at student.htu.se
2004 Feb 24
2
[LLVMdev] Beginners question
...question: 1. When reading the reference manual, I do not understand how e.g. simple I/O operations as printf() can be implemented in LLVM. Are there any external functions available, or how do I proceed? Kind regards Anders ---------------------------------------------------------------- Anders Alexandersson Masters student at the special year of Software Engineering, HTU Trollhättan E-mail: anders.alexandersson at student.htu.se
2004 Mar 26
1
[LLVMdev] Initial problems having installed LLVM
...ing the llvmgcc frontend, llvmgcc -o hello hello.c and I get this error message: gcc: installation problem, cannot exec `gccas': No such file or directory What have I one wrong/what needs to be done? Regards Anders ---------------------------------------------------------------- Anders Alexandersson Masters student at the special year of Software Engineering, HTU Trollhättan E-mail: anders.alexandersson at student.htu.se
2004 Mar 28
0
[LLVMdev] Initial problems having installed LLVM
Great, thanks, it solved it! Anders -----Original Message----- From: Chris Lattner <sabre at nondot.org> To: llvmdev at cs.uiuc.edu Date: Fri, 26 Mar 2004 10:08:02 -0600 (CST) Subject: Re: [LLVMdev] Initial problems having installed LLVM On Fri, 26 Mar 2004, Anders Alexandersson wrote: > I have compiled LLVM without errors and try to do a simple hello world > test using the llvmgcc frontend, > > llvmgcc -o hello hello.c > > and I get this error message: > > gcc: installation problem, cannot exec `gccas': No such file or directory > > What...
2004 May 03
2
[LLVMdev] Problems with getelementptr
...ng 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.11(sbyte* %string) ---------------------------------------------------------------- Anders Alexandersson Masters student at the special year of Software Engineering, HTU Trollhättan E-mail: anders.alexandersson at student.htu.se
2004 May 11
2
[LLVMdev] Problems accessing structs
..., long 0, ubyte 0 "myKernel_MapPTR" = load "myKernelMap"** "myKernel_MapPTRPTR" free "myKernelMap"* "myKernel_MapPTR" free "Kernel"* "myKernel" ret int 0 } ---------------------------------------------------------------- Anders Alexandersson Masters student at the special year of Software Engineering, HTU Trollhättan E-mail: anders.alexandersson at student.htu.se
2004 May 11
1
[LLVMdev] Follow-up on: Dynamic updates of current executed code
...'t think this has been done yet. >-- >Misha Brukman :: http://misha.brukman.net :: http://llvm.cs.uiuc.edu I hope you are able to roughly describe this scenario! We do not aim for implementing it at this point, but only to know if it is possible, and roughly how. Best regards Anders Alexandersson RubyComp project ---------------------------------------------------------------- Anders Alexandersson Masters student at the special year of Software Engineering, HTU Trollhättan E-mail: anders.alexandersson at student.htu.se
2004 Apr 20
2
[LLVMdev] Dynamic updates of current executed code
...externally call the llvm-as utility? Best regards Anders -----Original Message----- From: Chris Lattner <sabre at nondot.org> To: llvmdev at cs.uiuc.edu Date: Mon, 19 Apr 2004 01:56:12 -0500 (CDT) Subject: Re: [LLVMdev] Dynamic updates of current executed code On Mon, 19 Apr 2004, Anders Alexandersson wrote: > Hello! > > I saw that you just got the recent llvm paper published in IEEE! > Congratulations! :-) Thanks! > More issues regarding the Ruby compiler: > > Ruby supports the possibility of the user to enter new Ruby code during > execution, after which it is execut...
2004 Apr 19
1
[LLVMdev] Dynamic updates of current executed code
...lready running code representing the changed class, to point to the newly compiled code representing the newly entered method instead. Is this functionality at all accessible by an executing llvm program? Best regards Anders ---------------------------------------------------------------- Anders Alexandersson Masters student at the special year of Software Engineering, HTU Trollhättan E-mail: anders.alexandersson at student.htu.se
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...
2004 May 05
0
[LLVMdev] Not allowed to reuse variables?
On Wed, May 05, 2004 at 03:35:46PM +0200, Anders Alexandersson wrote: > %tmpFunction = load int ()** %puts_kernelPTR > ... > %tmpFunction = load int ()** %puts_kernelPTR > > generates > > Redefinition of value named 'tmpFunction' in the 'int () *' type plane! > > Is it not allowed to reuse variables? Is there some...
2004 Feb 24
0
[LLVMdev] Beginners question
On Tue, 24 Feb 2004, Anders Alexandersson wrote: > I am doing some pre-studies for my masters thesis, which (hopefully) > will result in a compiler prototype for Ruby to LLVM, and I have a > question: Cool! :) > 1. When reading the reference manual, I do not understand how e.g. > simple I/O operations as printf() can be i...
2004 May 03
0
[LLVMdev] Problems with getelementptr
On Mon, 3 May 2004, Anders Alexandersson wrote: > Hello! > > I'm having trouble with pointer traversing. I have a design as follows: > class -> map -> classFunctions > > Starting with a pointer to the class, I want to get a pointer to a > classFunction via a pointer to the map. Okay... > I can't ge...