I'm modifying GCC frontend now.
And I want to check GIMPLE file with FOR_EACH_BB_FN and to detect 'free' operation, which is used to release memory allocation in C.
Here is my code:
basic_block bb;
gimple_stmt_iterator gsi;
FOR_EACH_BB_FN(bb,cfun)
{
for (gsi = gsi_start_bb(bb); ! gsi_end_p(gsi); gsi_next(&gsi))
{
gimple *stmt = gsi_stmt (gsi);
stmt = gsi_stmt (gsi);
...
And then how can I check stmt is 'free' operation or not?