Mercurial > cospy
changeset 12:6fdb0cfdc2a7
More information about GIMPLE
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Thu, 09 Sep 2010 16:06:55 +0800 |
parents | bf14d3ed008e |
children | 708921504d6d |
files | src/cospy.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/cospy.c Thu Sep 09 15:57:08 2010 +0800 +++ b/src/cospy.c Thu Sep 09 16:06:55 2010 +0800 @@ -110,12 +110,16 @@ } /*! \brief Find all call expression in a code block. + * + * This function find CALL_EXPR in body of a function that represented + * as a GIMPE tree. See gcc/tree.def and gcc/c-gimplify.c of GCC for + * more information of tree code of GIMPLE. */ static void find_call_expr(tree fn) { tree bind, body; - bind = DECL_SAVED_TREE(fn); + bind = DECL_SAVED_TREE(fn); /* BIND_EXPR */ body = BIND_EXPR_BODY(bind); printf("%d:%d\n", TREE_CODE(body), BIND_EXPR); } @@ -160,6 +164,7 @@ * It supposed to get function body in GIMPLE statements. If we don't * do this, here, it, GIMPLE statements, would be destroyed by * optimization passes. + */ static void handle_pre_genericize(void *gcc_data, void *user_data) {