Re: Extracting function name from the gimple call statement

2021-10-11 Thread Shubham Narlawar via Gcc
On Mon, Oct 11, 2021 at 2:51 AM David Malcolm wrote: > > On Sun, 2021-10-10 at 23:04 +0530, Shubham Narlawar via Gcc wrote: > > Hello, > > > > Is there a direct way to print the name of the function call in gimple > > call > > statement? > > > > For example - > > > > void bar() { > > a = foo();

Re: Extracting function name from the gimple call statement

2021-10-10 Thread David Malcolm via Gcc
On Sun, 2021-10-10 at 23:04 +0530, Shubham Narlawar via Gcc wrote: > Hello, > > Is there a direct way to print the name of the function call in gimple > call > statement? > > For example - > > void bar() { > a = foo();    //gimple* stmt > } > > I want to print "foo" from the above gimple*.

Extracting function name from the gimple call statement

2021-10-10 Thread Shubham Narlawar via Gcc
Hello, Is there a direct way to print the name of the function call in gimple call statement? For example - void bar() { a = foo();//gimple* stmt } I want to print "foo" from the above gimple*. I traced debug_gimple_stmt(gimple*) but it seems complex to just print "foo". Thanks and R