PROPOSAL: targetm.expand_tree_builtin hook

Andrew Pinski pinskia@physics.uc.edu
Mon May 10 20:18:00 GMT 2004


On May 10, 2004, at 16:00, Ziemowit Laski wrote:
consistent with the rest of the functions in builtins.  Also this 
should
be called from fold_builtin in builtins.c rather than 
expand_tree_builtin.
That might indeed be a better place for it, provided it doesn't get 
called too
late (like expand_builtin), since one of the requirements here is 
eager evaluation.
I'll definitely take a look, provided I get a general go-ahead from 
one of the global
maintainers. :-)
fold_builtin gets called from fold if it is trying to fold a builtin so 
it is called
right after the tree to the call is created and called in different 
passes through
the tree-ssa passes (just have to be careful not to create non-gimple 
trees while
gimple flag is on).

Thanks,
Andrew Pinski



More information about the Gcc mailing list