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]

predicate forward references (Was: Re: RFA: Add Epiphany port)


Quoting Richard Henderson <rth@redhat.com>:

(define_predicate "call_address_operand"
  (match_code "symbol_ref,const,reg")
{
  return (symbolic_operand (op, mode) || (GET_CODE (op) == REG));
})

Nit.


(define_predicate "call_address_operand"
  (ior (match_code "reg")
       (match_operand 0 "symbolic_operand")))

It doesn't like the predicates in their original order this way - it complains:
../../srcw/gcc/config/epiphany/predicates.md:25: reference to unknown predicate 'symbolic_operand'


Is there a way to have a predicate forward declaration?


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