This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Best way to create rtl code
- From: Jared Buttles <jared at cylant dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 25 Mar 2004 17:47:11 -0500
- Subject: 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