Re: Cloning functions

2012-03-21 Thread Jan Hubicka
Hello, In my transformation of an input program, I need to clone functions and the callee functions in each clone. To clone a function, or create a duplicate, I use cgraph_function_versioning() This works perfectly well for the parent function. I then go through the statements in the

Re: Cloning functions

2012-03-21 Thread Jan Hubicka
Hi Martin, thanks very much for the information! On Tue, Mar 20, 2012 at 9:29 PM, Martin Jambor mjam...@suse.cz wrote: Hi, On Tue, Mar 20, 2012 at 02:07:17PM +1100, Matt Davis wrote: Hello, In my transformation of an input program, I need to clone functions and the callee functions

Re: Cloning functions

2012-03-20 Thread Martin Jambor
Hi, On Tue, Mar 20, 2012 at 02:07:17PM +1100, Matt Davis wrote: Hello, In my transformation of an input program, I need to clone functions and the callee functions in each clone. To clone a function, or create a duplicate, I use cgraph_function_versioning() This works perfectly well for

Re: Cloning functions

2012-03-20 Thread Matt Davis
Hi Martin, thanks very much for the information! On Tue, Mar 20, 2012 at 9:29 PM, Martin Jambor mjam...@suse.cz wrote: Hi, On Tue, Mar 20, 2012 at 02:07:17PM +1100, Matt Davis wrote: Hello, In my transformation of an input program, I need to clone functions and the callee functions in each

Cloning functions

2012-03-19 Thread Matt Davis
Hello, In my transformation of an input program, I need to clone functions and the callee functions in each clone. To clone a function, or create a duplicate, I use cgraph_function_versioning() This works perfectly well for the parent function. I then go through the statements in the parent and