This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Best way to create rtl code


I'm looking to create and add some rtl code to the insns list, but I want to do it with as little intrusion as possible into the gcc source. Hopefully someone can tell me what the preferred way to do this might be, I really only see two ways:

1. Direct creation of the rtl statements added to the insns stream for each function
2. Creation of a small tree that represents the code I want to insert, use the provided functions to convert the statements therein to rtl and then insert them in the insns stream


Next, where is the best place to do this? I'd like to do it after inlining has been performed, if possible.

Are there any documents available that actually describe the how and why the code executes when creating rtl or is knowledge obtained mainly by reading the code and mailing list archives?

Jared Buttles


- Jared Buttles



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]