[EMAIL PROTECTED] wrote on 18/02/2007 17:01:31:

> Hi,
>
> >
> > I am not sure if this message is still relevant.  Anyhow, I think
> > following another built-in under zero_arg_builtins
("__builtin_alpha_rpcc"
> > in alpha.c for example) could help in finding the missing part in this
> > implementation.
> >
>
> the message is still relevant. I tried to use as example the currently
> existing intrinsics. But there is something that I miss. For example,
> CODE_FOR_* constants/variables (pointer to function) are supposed to
> be defined in some source file but I couldn't find where. At compile
> time I got an error that it is not defined. I suppose that when GCC is
> being compiled some automatic code generation happens (from machine
> descriptors) that defines these CODE_FOR_* variables.
>

BTW - In the 2nd HiPEAC GCC Tutorial you can find some useful information
which can help when adding a new built-in function.  (in particular -
'Extending GCC with new operations: RTL, SIMD and treecodes' and
'The compilation flow of the auto-vectorizer')

Revital

Reply via email to