predicate forward references (Was: Re: RFA: Add Epiphany port)
Joern Rennecke
amylaar@spamcop.net
Sat Nov 5 04:01:00 GMT 2011
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?
More information about the Gcc
mailing list