Re: access other functions CFG

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/05/2018 08:24 AM, Jens Vankeirsbilck wrote:
> Hi
> 
> For my PhD I'm currently developing a GCC plugin that inserts extra instructions in the RTL of a function. Now I was wondering if you can access the CFG or RTL statements from another function while the first function is being compiled.
> 
> To give an example, consider a file code.c which contains 2 functions, foo() and bar(). First the function foo() is being compiled by GCC and the plugin. Now, is it possible to access the CFG or RTL statements of the bar() function with the plugin while foo() is being processed?
> 
> I hope my question is clear...
You're not going to be able to get at the RTL for one function while a
different function is being compiled.

If you can restructure your plugin to work on gimple, then you might
have a reasonable chance to do what you want.

Jeff



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux