This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: INSN_P candidates
- To: Nick Clifton <nickc at cygnus dot com>
- Subject: Re: INSN_P candidates
- From: Graham Stott <gstott at cygnus dot co dot uk>
- Date: Wed, 17 May 2000 15:43:48 +0100
- CC: gcc-patches at gcc dot gnu dot org
- References: <200005162352.QAA20929@elmo.cygnus.com>
Nick
I recalling all this from memory because I don't the gcc source on my
machine here yet :(
I think we can go a little bit further with these INSN_P changes,
GCC also uses (GET_RTX_CLASS (code) == 'i').
If we introduce a new macro in rtl.h call it INSN_CODE_P() (couldn't
think of anything better) then we can replace instances of this
code pattern and its != variant with the new macro.
Hence I propose we introduce an INSN_CODE_P () macro defined as
#define INSN_CODE_P (CODE) (GET_RTX_CLASS (CODE) == 'i')
and also use this to define the INSN_P macro as
#define INSN_P(INSN) INSN_CODE_P (GET_CODE (INSN))
Comments?
Graham