This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: new build_function_type_list()
- From: Joern Rennecke <amylaar at onetel dot net dot uk>
- To: aldyh at redhat dot com (Aldy Hernandez)
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 30 Jun 2002 12:40:45 +0100 (BST)
- Subject: Re: new build_function_type_list()
Aldy Hernandez wrote:
>
> hi guys!
>
> for those who have written more than 5 builtins, you can probably relate
> to what a pain build_function_type() is. consider this:
>
> tree v2si_ftype_4_v2si
> = build_function_type
> (V2SI_type_node,
> tree_cons (NULL_TREE, V2SI_type_node,
> tree_cons (NULL_TREE, V2SI_type_node,
> tree_cons (NULL_TREE, V2SI_type_node,
> tree_cons (NULL_TREE, V2SI_type_node,
> endlink)))));
Actually, no. My builtins each correspond to a define_insn or define_expand
pattern, as specified in a table, and the types are derived from the modes,
so the building of the function type is done in a loop.