On 07/11/2012 11:52 PM, Chung-Lin Tang wrote:
>         * target.def (expand_builtin_thread_pointer): New target hook.
>         (expand_builtin_set_thread_pointer): New target hook.

Is there a particular reason why you're using target hooks rather than
named patterns in the md file?  This *is* happening during rtl expansion
after all, when we're already well integrated with the backend.

E.g.

(define_expand "get_thread_pointer"
  [(set (match_operand:P 0 "...") (...))]
)

(define_expand "set_thread_pointer"
  [(set (...) (match_operand:P 0 "..."))]
)


r~

Reply via email to