Lines Matching refs:code

317 tree_code_size (enum tree_code code)  in tree_code_size()  argument
319 switch (TREE_CODE_CLASS (code)) in tree_code_size()
323 switch (code) in tree_code_size()
361 + (TREE_CODE_LENGTH (code) - 1) * sizeof (char *)); in tree_code_size()
364 switch (code) in tree_code_size()
372 return lang_hooks.tree_size (code); in tree_code_size()
376 switch (code) in tree_code_size()
396 return lang_hooks.tree_size (code); in tree_code_size()
409 enum tree_code code = TREE_CODE (node); in tree_size() local
410 switch (code) in tree_size()
433 return tree_code_size (code); in tree_size()
446 make_node_stat (enum tree_code code MEM_STAT_DECL) in make_node_stat()
449 enum tree_code_class type = TREE_CODE_CLASS (code); in make_node_stat()
450 size_t length = tree_code_size (code); in make_node_stat()
484 switch (code) in make_node_stat()
528 if (code == IDENTIFIER_NODE) in make_node_stat()
535 TREE_SET_CODE (t, code); in make_node_stat()
544 if (CODE_CONTAINS_STRUCT (code, TS_DECL_WITH_VIS)) in make_node_stat()
546 if (CODE_CONTAINS_STRUCT (code, TS_DECL_COMMON)) in make_node_stat()
548 if (code == FUNCTION_DECL) in make_node_stat()
583 switch (code) in make_node_stat()
617 enum tree_code code = TREE_CODE (node); in copy_node_stat() local
620 gcc_assert (code != STATEMENT_LIST); in copy_node_stat()
631 if (TREE_CODE_CLASS (code) == tcc_declaration) in copy_node_stat()
651 else if (TREE_CODE_CLASS (code) == tcc_type) in copy_node_stat()
2106 enum tree_code code = TREE_CODE (t); in tree_node_structure() local
2108 switch (TREE_CODE_CLASS (code)) in tree_node_structure()
2112 switch (code) in tree_node_structure()
2150 switch (code) in tree_node_structure()
2184 enum tree_code code; in contains_placeholder_p() local
2189 code = TREE_CODE (exp); in contains_placeholder_p()
2190 if (code == PLACEHOLDER_EXPR) in contains_placeholder_p()
2193 switch (TREE_CODE_CLASS (code)) in contains_placeholder_p()
2203 if (code == TREE_LIST) in contains_placeholder_p()
2212 switch (code) in contains_placeholder_p()
2230 switch (TREE_CODE_LENGTH (code)) in contains_placeholder_p()
2343 enum tree_code code = TREE_CODE (exp); in substitute_in_expr() local
2349 if (code == TREE_LIST) in substitute_in_expr()
2358 else if (code == COMPONENT_REF) in substitute_in_expr()
2382 switch (TREE_CODE_CLASS (code)) in substitute_in_expr()
2394 switch (TREE_CODE_LENGTH (code)) in substitute_in_expr()
2404 new = fold_build1 (code, TREE_TYPE (exp), op0); in substitute_in_expr()
2414 new = fold_build2 (code, TREE_TYPE (exp), op0, op1); in substitute_in_expr()
2426 new = fold_build3 (code, TREE_TYPE (exp), op0, op1, op2); in substitute_in_expr()
2440 new = fold (build4 (code, TREE_TYPE (exp), op0, op1, op2, op3)); in substitute_in_expr()
2462 enum tree_code code = TREE_CODE (exp); in substitute_placeholder_in_expr() local
2467 if (code == PLACEHOLDER_EXPR) in substitute_placeholder_in_expr()
2505 else if (code == TREE_LIST) in substitute_placeholder_in_expr()
2515 switch (TREE_CODE_CLASS (code)) in substitute_placeholder_in_expr()
2528 switch (TREE_CODE_LENGTH (code)) in substitute_placeholder_in_expr()
2538 return fold_build1 (code, TREE_TYPE (exp), op0); in substitute_placeholder_in_expr()
2547 return fold_build2 (code, TREE_TYPE (exp), op0, op1); in substitute_placeholder_in_expr()
2558 return fold_build3 (code, TREE_TYPE (exp), op0, op1, op2); in substitute_placeholder_in_expr()
2571 return fold (build4 (code, TREE_TYPE (exp), op0, op1, op2, op3)); in substitute_placeholder_in_expr()
2595 enum tree_code code = TREE_CODE (ref); in stabilize_reference() local
2597 switch (code) in stabilize_reference()
2612 result = build_nt (code, stabilize_reference (TREE_OPERAND (ref, 0))); in stabilize_reference()
2687 enum tree_code code = TREE_CODE (e); in stabilize_reference_1() local
2697 switch (TREE_CODE_CLASS (code)) in stabilize_reference_1()
2723 if (code == TRUNC_DIV_EXPR || code == TRUNC_MOD_EXPR in stabilize_reference_1()
2724 || code == FLOOR_DIV_EXPR || code == FLOOR_MOD_EXPR in stabilize_reference_1()
2725 || code == CEIL_DIV_EXPR || code == CEIL_MOD_EXPR in stabilize_reference_1()
2726 || code == ROUND_DIV_EXPR || code == ROUND_MOD_EXPR) in stabilize_reference_1()
2729 result = build_nt (code, stabilize_reference_1 (TREE_OPERAND (e, 0)), in stabilize_reference_1()
2735 result = build_nt (code, stabilize_reference_1 (TREE_OPERAND (e, 0))); in stabilize_reference_1()
2849 build0_stat (enum tree_code code, tree tt MEM_STAT_DECL) in build0_stat() argument
2853 gcc_assert (TREE_CODE_LENGTH (code) == 0); in build0_stat()
2855 t = make_node_stat (code PASS_MEM_STAT); in build0_stat()
2862 build1_stat (enum tree_code code, tree type, tree node MEM_STAT_DECL) in build1_stat() argument
2871 switch (TREE_CODE_CLASS (code)) in build1_stat()
2888 gcc_assert (TREE_CODE_LENGTH (code) == 1); in build1_stat()
2894 TREE_SET_CODE (t, code); in build1_stat()
2911 if (TREE_CODE_CLASS (code) == tcc_statement) in build1_stat()
2913 else switch (code) in build1_stat()
2936 if ((TREE_CODE_CLASS (code) == tcc_unary || code == VIEW_CONVERT_EXPR) in build1_stat()
2940 if ((TREE_CODE_CLASS (code) == tcc_unary || code == VIEW_CONVERT_EXPR) in build1_stat()
2943 if (TREE_CODE_CLASS (code) == tcc_reference in build1_stat()
2969 build2_stat (enum tree_code code, tree tt, tree arg0, tree arg1 MEM_STAT_DECL) in build2_stat() argument
2974 gcc_assert (TREE_CODE_LENGTH (code) == 2); in build2_stat()
2976 t = make_node_stat (code PASS_MEM_STAT); in build2_stat()
2986 constant = (TREE_CODE_CLASS (code) == tcc_comparison in build2_stat()
2987 || TREE_CODE_CLASS (code) == tcc_binary); in build2_stat()
3000 = (TREE_CODE_CLASS (code) == tcc_reference in build2_stat()
3007 build3_stat (enum tree_code code, tree tt, tree arg0, tree arg1, in build3_stat() argument
3013 gcc_assert (TREE_CODE_LENGTH (code) == 3); in build3_stat()
3015 t = make_node_stat (code PASS_MEM_STAT); in build3_stat()
3024 if (code == CALL_EXPR && !side_effects) in build3_stat()
3046 = (TREE_CODE_CLASS (code) == tcc_reference in build3_stat()
3053 build4_stat (enum tree_code code, tree tt, tree arg0, tree arg1, in build4_stat() argument
3059 gcc_assert (TREE_CODE_LENGTH (code) == 4); in build4_stat()
3061 t = make_node_stat (code PASS_MEM_STAT); in build4_stat()
3073 = (TREE_CODE_CLASS (code) == tcc_reference in build4_stat()
3080 build5_stat (enum tree_code code, tree tt, tree arg0, tree arg1, in build5_stat() argument
3086 gcc_assert (TREE_CODE_LENGTH (code) == 5); in build5_stat()
3088 t = make_node_stat (code PASS_MEM_STAT); in build5_stat()
3101 = (TREE_CODE_CLASS (code) == tcc_reference in build5_stat()
3108 build7_stat (enum tree_code code, tree tt, tree arg0, tree arg1, in build7_stat() argument
3115 gcc_assert (code == TARGET_MEM_REF); in build7_stat()
3117 t = make_node_stat (code PASS_MEM_STAT); in build7_stat()
3142 build_nt (enum tree_code code, ...) in build_nt() argument
3149 va_start (p, code); in build_nt()
3151 t = make_node (code); in build_nt()
3152 length = TREE_CODE_LENGTH (code); in build_nt()
3168 build_decl_stat (enum tree_code code, tree name, tree type MEM_STAT_DECL) in build_decl_stat() argument
3172 t = make_node_stat (code PASS_MEM_STAT); in build_decl_stat()
3182 if (code == VAR_DECL || code == PARM_DECL || code == RESULT_DECL) in build_decl_stat()
3378 enum tree_code code = TREE_CODE (ttype); in build_type_attribute_qual_variant() local
3391 hashcode = iterative_hash_object (code, hashcode); in build_type_attribute_qual_variant()
4789 associative_tree_code (enum tree_code code) in associative_tree_code() argument
4791 switch (code) in associative_tree_code()
4811 commutative_tree_code (enum tree_code code) in commutative_tree_code() argument
4813 switch (code) in commutative_tree_code()
4849 enum tree_code code; in iterative_hash_expr() local
4855 code = TREE_CODE (t); in iterative_hash_expr()
4857 switch (code) in iterative_hash_expr()
4914 class = TREE_CODE_CLASS (code); in iterative_hash_expr()
4925 val = iterative_hash_object (code, val); in iterative_hash_expr()
4930 if (code == NOP_EXPR in iterative_hash_expr()
4931 || code == CONVERT_EXPR in iterative_hash_expr()
4932 || code == NON_LVALUE_EXPR) in iterative_hash_expr()
4939 else if (commutative_tree_code (code)) in iterative_hash_expr()
4956 for (i = TREE_CODE_LENGTH (code) - 1; i >= 0; --i) in iterative_hash_expr()
6165 int code; in tree_check_failed() local
6168 while ((code = va_arg (args, int))) in tree_check_failed()
6169 length += 4 + strlen (tree_code_name[code]); in tree_check_failed()
6177 while ((code = va_arg (args, int))) in tree_check_failed()
6183 strcpy (buffer + length, tree_code_name[code]); in tree_check_failed()
6184 length += strlen (tree_code_name[code]); in tree_check_failed()
6207 int code; in tree_not_check_failed() local
6210 while ((code = va_arg (args, int))) in tree_not_check_failed()
6211 length += 4 + strlen (tree_code_name[code]); in tree_not_check_failed()
6216 while ((code = va_arg (args, int))) in tree_not_check_failed()
6223 strcpy (buffer + length, tree_code_name[code]); in tree_not_check_failed()
6224 length += strlen (tree_code_name[code]); in tree_not_check_failed()
6301 const char *function, enum omp_clause_code code) in omp_clause_check_failed() argument
6304 omp_clause_code_name[code], tree_code_name[TREE_CODE (node)], in omp_clause_check_failed()
6397 tree_operand_check_failed (int idx, enum tree_code code, const char *file, in tree_operand_check_failed() argument
6402 idx + 1, tree_code_name[code], TREE_CODE_LENGTH (code), in tree_operand_check_failed()
6668 local_define_builtin (const char *name, tree type, enum built_in_function code, in local_define_builtin() argument
6673 decl = lang_hooks.builtin_function (name, type, code, BUILT_IN_NORMAL, in local_define_builtin()
6686 built_in_decls[code] = decl; in local_define_builtin()
6687 implicit_built_in_decls[code] = decl; in local_define_builtin()
7006 build_omp_clause (enum omp_clause_code code) in build_omp_clause() argument
7011 length = omp_clause_num_ops[code]; in build_omp_clause()
7017 OMP_CLAUSE_SET_CODE (t, code); in build_omp_clause()
7503 enum tree_code code; in walk_tree() local
7533 code = TREE_CODE (*tp); in walk_tree()
7540 if (code == TREE_LIST) in walk_tree()
7542 else if (code == OMP_CLAUSE) in walk_tree()
7553 switch (code) in walk_tree()
7733 if (IS_EXPR_CODE_CLASS (TREE_CODE_CLASS (code))) in walk_tree()
7738 len = TREE_CODE_LENGTH (code); in walk_tree()