access other functions CFG

Jens Vankeirsbilck jens.vankeirsbilck@kuleuven.be
Fri Jan 5 15:24:00 GMT 2018


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...

With kind regards,
Ing. Jens Vankeirsbilck



More information about the Gcc-help mailing list