# HG changeset patch # User Thinker K.F. Li # Date 1284019615 -28800 # Node ID 6fdb0cfdc2a71ec32bee89db3115cd46114ad8e1 # Parent bf14d3ed008e9f9c65a81f1f3977e8537f59d69b More information about GIMPLE diff -r bf14d3ed008e -r 6fdb0cfdc2a7 src/cospy.c --- 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) {