This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] naming unnamed insns
- To: kenner at vlsi1 dot ultra dot nyu dot edu
- Subject: Re: [patch] naming unnamed insns
- From: DJ Delorie <dj at redhat dot com>
- Date: Thu, 16 Nov 2000 09:24:40 -0500
- CC: gcc-patches at gcc dot gnu dot org
- References: <10011161129.AA22279@vlsi1.ultra.nyu.edu>
> How about also looking at the RHS of a SET? If it's an expression, put
> the RTL code for that in the name someplace as well.
Would you settle for a string of characters, one character per (),
encoding the rtl? Like, "=O+OO" for (set (match) (plus (match match))) ?
But, I'd hate to get *too* complex in that code. If the user needs
more help, they can put a mnemonic name in the md file themselves,
like i386.md, which I discovered when trying to test my patch names
all the instructions already.