This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]