This is the mail archive of the
mailing list for the GCC project.
Re: target specific builtin expansion (middle end and back end definition inconsistence problem?).
Feng LI <email@example.com> writes:
> Hi Ian,
> 2012/4/22 Ian Lance Taylor <firstname.lastname@example.org>:
>> Feng LI <email@example.com> writes:
>>> Yes, you are right. But how could I reference to a backend defined builtin
>>> function in the middle end (I need to generate the builtin function in the
>>> middle end and expand it in x86 backend)?
>> If the function doesn't have a machine-independent definition, then use
>> a target hook.
> Then I remove the duplicate builtin definition in x86 backend.
> I define the builtin function with built_in_class as BUILT_IN_MD in
Sorry, I meant use a target hook to actually generate the call
expression. The target hook can refer to the target-specific builtin