Hi Martin
/> It seems to me however that PLUGIN_ALL_IPA_PASSES_END runs prior to
trnsformation phase of IPA passes (the name is rather unclear in this
regard)...//
/
If i am not wrong the PLUGIN_ALL_IPA_PASSES_START ( execution ) is hooked in
the begging of
all_smole_ipa_passes , before ALL_SI
Hi,
On Tue, Jan 29, 2013 at 12:44:07AM -0500, Chassin wrote:
> Hi again , this time i am trying to clone a function then insert it
> with new name
>
If you want to create a clone of a function including its body, you
probably want to use cgraph_function_versioning. See how it is used
in ipa-spl
On Tue, Jan 29, 2013 at 6:44 AM, Chassin wrote:
> Hi again , this time i am trying to clone a function then insert it with new
> name
>
> sample code
>
> struct cgraph_node *old_node = util_get_cgnode_by_name((char *)user_data);
> struct cgraph_node *new_node ;
>
> tree old_decl = old_node->d