Re: Help with gcc-plugin (Traverse all loops inside function)

2015-09-15 Thread Mikhail Maltsev
On 09/15/2015 03:38 PM, Aditya K wrote: > I started with one of the test cases in the plugin testsuite "def_plugin.c". > Pasted the code for convenience. > I want to traverse all the loops in a function. > > Maybe use, loops_for_fn (DECL_STRUCT_FUNCTION (fndef)), but this does not > seem to work

Help with gcc-plugin (Traverse all loops inside function)

2015-09-15 Thread Aditya K
I started with one of the test cases in the plugin testsuite "def_plugin.c". Pasted the code for convenience. I want to traverse all the loops in a function. Maybe use, loops_for_fn (DECL_STRUCT_FUNCTION (fndef)), but this does not seem to work. /* Callback function to invoke after GCC finishe