Inserting instrument calls before and after a function

2010-02-16 Thread Saleel Kudchadker
the gimplify_function_tree in gimplify.c but that isnt working good for me. Can somebody put a snippet on how I can go about doing it. Any help would be appreciated. Thank you. ps: I am seriously liking this challenging domain of working on gcc. Thanks to all you guys! -- Regards, Saleel

Segfault inserting a pass

2010-02-17 Thread Saleel Kudchadker
e(e, x); } /***/ This throws me a Segfault error when compiling the code. i am applying this pass before pass_apply_inline in passes.c I am new to GCC, Can someone hint me documents or materials I can look upon to insert this pass. -- Regards, Saleel Kudchadker Graduate Student School of Com

Adding a statement to statement list before pass_cfg_build

2010-02-19 Thread Saleel Kudchadker
ENTER]; x = build_call_expr (x, 0); tsi_link_after(&i,x,TSI_NEW_STMT); break; default: break; } tsi_next(&i); } } -- Regards, Saleel Kudchadker Graduate Student School of Computing , In

Re: Adding a statement to statement list before pass_cfg_build

2010-02-19 Thread Saleel Kudchadker
Thank you Richard. I think I will try to add them on the edges once the basic blocks are created. On Fri, Feb 19, 2010 at 12:19 PM, Richard Guenther wrote: > On Fri, Feb 19, 2010 at 8:07 PM, Saleel Kudchadker wrote: >> Hi >> >> I've been trying to add a statement

Adding function calls before and after a CALL_EXPR

2010-05-05 Thread Saleel Kudchadker
tor loop Can someone suggest what may be going wrong? -- Regards, Saleel Kudchadker Graduate Student School of Computing , Informatics and Decision Systems Arizona State University