I give up.

Bernd Jendrissek berndfoobar@users.sourceforge.net
Wed Oct 22 14:44:00 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Oct 22, 2003 at 06:55:06PM +0800, Jonathan Wilson wrote:
> I cant find anything on google about the various RTL functions (like 
> gen_rtx_UNSPEC).

gcc/rtl.def:

/* A machine-specific operation.
   1st operand is a vector of operands being used by the operation so that
     any needed reloads can be done.
   2nd operand is a unique value saying which of a number of machine-specific
     operations is to be performed.
   (Note that the vector must be the first operand because of the way that
   genrecog.c record positions within an insn.)
   This can occur all by itself in a PATTERN, as a component of a PARALLEL,
   or inside an expression.  */
DEF_RTL_EXPR(UNSPEC, "unspec", "Ei", 'x')

So an UNSPEC can be anything you want it to be.

> I cant find anything in the GCC docs.
> And I cant find anything in the source code for these specific functions (I 
> cant even FIND their code)

Such as... (yesterday) gen_rtx_REG?  That's in emit-rtl.c.  As for
gen_rtx_UNSPEC, I don't know.  Bear in mind that there are about a dozen
or so C files that are *generated* during the build.  Sometimes what
you're looking for is in there instead, or in the generator program.

Don't give up!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE/lnio/FmLrNfLpjMRAiKBAJ0ZxY41Eg5KpV3LI7wRWtwhPWqLAACfWXsJ
dIS+dcl+1mbyURkgMkExaDw=
=puZp
-----END PGP SIGNATURE-----



More information about the Gcc mailing list