This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Generic return types in built-in functions (C frontend)
- From: Artem Shinkarov <artyom dot shinkaroff at gmail dot com>
- To: gcc <gcc at gcc dot gnu dot org>
- Cc: "Joseph S. Myers" <joseph at codesourcery dot com>
- Date: Mon, 28 Jun 2010 21:01:50 +0100
- Subject: Generic return types in built-in functions (C frontend)
Hi,
I'm trying to implement a support for vector shuffling. For this
purpose I would like to introduce a built-in function and lower it
down in the veclower pass. However the problem is, that I don't want
to introduce a separate built-in function for each type. So the
question is: how can I specify a built-in function that would accept
any parameters, and would be expanded at some points to some proper
types. There is a hacky solution like in this patch:
http://gcc.gnu.org/ml/gcc-patches/2009-02/msg00096.html, but may be
someone have an idea of a cleaner solution.
--
Thank you,
Artem Shinkarov