Quoting Richard Henderson <r...@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?

Reply via email to