On 06/15/2011 10:20 AM, Feng LI wrote:
> Hi,
> 
> Is there an interface provided in GCC to clone the current function?
> I searched in the source code but failed, just in case I'm going wrong.

Try cgraph_copy_node_for_versioning.

It's not 100% generic atm; you may find that you have to make
some changes to it depending on what you're doing exactly.
C.f. the transactional-memory branch.


r~

Reply via email to