Lines Matching refs:parms

422   tree parms = TREE_VALUE (parmlist);  in push_inline_template_parms_recursive()  local
431 parms, current_template_parms); in push_inline_template_parms_recursive()
434 begin_scope (TREE_VEC_LENGTH (parms) ? sk_template_parms : sk_template_spec, in push_inline_template_parms_recursive()
436 for (i = 0; i < TREE_VEC_LENGTH (parms); ++i) in push_inline_template_parms_recursive()
438 tree parm = TREE_VALUE (TREE_VEC_ELT (parms, i)); in push_inline_template_parms_recursive()
470 tree parms; in maybe_begin_member_template_processing() local
485 parms = DECL_TEMPLATE_PARMS (most_general_template (decl)); in maybe_begin_member_template_processing()
486 levels = TMPL_PARMS_DEPTH (parms) - processing_template_decl; in maybe_begin_member_template_processing()
491 parms = TREE_CHAIN (parms); in maybe_begin_member_template_processing()
494 push_inline_template_parms_recursive (parms, levels); in maybe_begin_member_template_processing()
2110 tree parms = INNERMOST_TEMPLATE_PARMS (DECL_TEMPLATE_PARMS (fns)); in determine_specialization() local
2111 targs = coerce_template_parms (parms, explicit_targs, fns, in determine_specialization()
3472 tree parms = NULL, template_info = NULL; in get_primary_template_innermost_parameters() local
3476 parms = INNERMOST_TEMPLATE_PARMS in get_primary_template_innermost_parameters()
3479 return parms; in get_primary_template_innermost_parameters()
3486 get_template_parms_at_level (tree parms, int level) in get_template_parms_at_level() argument
3489 if (!parms in get_template_parms_at_level()
3490 || TREE_CODE (parms) != TREE_LIST in get_template_parms_at_level()
3491 || level > TMPL_PARMS_DEPTH (parms)) in get_template_parms_at_level()
3494 for (p = parms; p; p = TREE_CHAIN (p)) in get_template_parms_at_level()
4466 end_template_parm_list (tree parms) in end_template_parm_list() argument
4470 tree saved_parmlist = make_tree_vec (list_length (parms)); in end_template_parm_list()
4479 for (parm = parms, nparms = 0; parm; parm = next, nparms++) in end_template_parm_list()
4583 template_parms_level_to_args (tree parms) in template_parms_level_to_args() argument
4585 tree a = copy_node (parms); in template_parms_level_to_args()
4601 template_parms_to_args (tree parms) in template_parms_to_args() argument
4605 int length = TMPL_PARMS_DEPTH (parms); in template_parms_to_args()
4614 for (header = parms; header; header = TREE_CHAIN (header)) in template_parms_to_args()
4692 build_template_decl (tree decl, tree parms, bool member_template_p) in build_template_decl() argument
4696 DECL_TEMPLATE_PARMS (tmpl) = parms; in build_template_decl()
4717 int* parms; member
4742 tpd->parms[idx] = 1; in mark_template_parm()
4823 tpd.parms = XALLOCAVEC (int, ntparms); in process_partial_specialization()
4824 memset (tpd.parms, 0, sizeof (int) * ntparms); in process_partial_specialization()
4838 if (tpd.parms[i] == 0) in process_partial_specialization()
4918 tpd2.parms = 0; in process_partial_specialization()
4981 if (!tpd2.parms) in process_partial_specialization()
4988 tpd2.parms = XALLOCAVEC (int, nargs); in process_partial_specialization()
4998 memset (tpd2.parms, 0, sizeof (int) * nargs); in process_partial_specialization()
5013 if (tpd2.parms[j] != 0 in process_partial_specialization()
5180 check_default_tmpl_args (tree decl, tree parms, bool is_primary, in check_default_tmpl_args() argument
5242 for (parm_level = parms; parm_level; parm_level = TREE_CHAIN (parm_level)) in check_default_tmpl_args()
5271 && parm_level == parms in check_default_tmpl_args()
5315 parms = TREE_CHAIN (parms); in check_default_tmpl_args()
5354 for (parm_level = parms; in check_default_tmpl_args()
5548 tree parms = INNERMOST_TEMPLATE_PARMS (current_template_parms); in push_template_decl_real() local
5549 for (int i = 0; i < TREE_VEC_LENGTH (parms); ++i) in push_template_decl_real()
5551 tree t = TREE_VALUE (TREE_VEC_ELT (parms, i)); in push_template_decl_real()
5677 tree a, t, current, parms; in push_template_decl_real() local
5722 parms = DECL_TEMPLATE_PARMS (tmpl); in push_template_decl_real()
5723 i = TMPL_PARMS_DEPTH (parms); in push_template_decl_real()
5732 for (current = decl; i > 0; --i, parms = TREE_CHAIN (parms)) in push_template_decl_real()
5735 t = INNERMOST_TEMPLATE_PARMS (parms); in push_template_decl_real()
5801 tree parms = DECL_TEMPLATE_PARMS (tmpl); in push_template_decl_real() local
5807 parms = INNERMOST_TEMPLATE_PARMS (parms); in push_template_decl_real()
5808 for (int i = TREE_VEC_LENGTH (parms) - 1; i >= 0; --i) in push_template_decl_real()
5810 tree parm = TREE_VALUE (TREE_VEC_ELT (parms, i)); in push_template_decl_real()
5868 tree parms in add_inherited_template_parms() local
5871 tree tmpl = build_template_decl (fn, parms, /*member*/true); in add_inherited_template_parms()
5872 tree args = template_parms_to_args (parms); in add_inherited_template_parms()
5888 redeclare_class_template (tree type, tree parms, tree cons) in redeclare_class_template() argument
5907 if (!parms) in redeclare_class_template()
5914 parms = INNERMOST_TEMPLATE_PARMS (parms); in redeclare_class_template()
5917 if (TREE_VEC_LENGTH (parms) != TREE_VEC_LENGTH (tmpl_parms)) in redeclare_class_template()
5919 error_n (input_location, TREE_VEC_LENGTH (parms), in redeclare_class_template()
5922 TREE_VEC_LENGTH (parms)); in redeclare_class_template()
5938 || TREE_VEC_ELT (parms, i) == error_mark_node) in redeclare_class_template()
5945 parm = TREE_VALUE (TREE_VEC_ELT (parms, i)); in redeclare_class_template()
5947 parm_default = TREE_PURPOSE (TREE_VEC_ELT (parms, i)); in redeclare_class_template()
5985 TREE_PURPOSE (TREE_VEC_ELT (parms, i)) = tmpl_default; in redeclare_class_template()
6149 tree parms = DECL_TEMPLATE_PARMS (tmpl); in complex_alias_template_p() local
6150 data.level = TMPL_PARMS_DEPTH (parms); in complex_alias_template_p()
6151 int len = TREE_VEC_LENGTH (INNERMOST_TEMPLATE_PARMS (parms)); in complex_alias_template_p()
6188 tree parms = INNERMOST_TEMPLATE_PARMS (DECL_TEMPLATE_PARMS (tmpl)); in num_innermost_template_parms() local
6189 return TREE_VEC_LENGTH (parms); in num_innermost_template_parms()
7298 tree parms = DECL_TEMPLATE_PARMS (ntmpl) = copy_node (oparms); in add_defaults_to_ttp() local
7299 TREE_CHAIN (parms) = TREE_CHAIN (oparms); in add_defaults_to_ttp()
7300 tree vec = TREE_VALUE (parms) = copy_node (TREE_VALUE (parms)); in add_defaults_to_ttp()
8063 coerce_template_parameter_pack (tree parms, in coerce_template_parameter_pack() argument
8073 tree parm = TREE_VEC_ELT (parms, parm_idx); in coerce_template_parameter_pack()
8230 coerce_template_parms (tree parms, in coerce_template_parms() argument
8264 nparms = TREE_VEC_LENGTH (parms); in coerce_template_parms()
8269 tree parm = TREE_VEC_ELT (parms, parm_idx); in coerce_template_parms()
8299 || (TREE_VEC_ELT (parms, nargs) != error_mark_node in coerce_template_parms()
8300 && !TREE_PURPOSE (TREE_VEC_ELT (parms, nargs)))))) in coerce_template_parms()
8335 tree parm = TREE_VALUE (TREE_VEC_ELT (parms, i)); in coerce_template_parms()
8373 parm = TREE_VEC_ELT (parms, parm_idx); in coerce_template_parms()
8392 arg = coerce_template_parameter_pack (parms, parm_idx, args, in coerce_template_parms()
8552 coerce_template_parms (tree parms, tree args, tree in_decl) in coerce_template_parms() argument
8554 return coerce_template_parms (parms, args, in_decl, tf_none, true, true); in coerce_template_parms()
8562 coerce_template_parms (tree parms, tree args, tree in_decl, in coerce_template_parms() argument
8565 return coerce_template_parms (parms, args, in_decl, complain, true, true); in coerce_template_parms()
8579 coerce_innermost_template_parms (tree parms, in coerce_innermost_template_parms() argument
8586 int parms_depth = TMPL_PARMS_DEPTH (parms); in coerce_innermost_template_parms()
8596 for (level = parms, cur_depth = parms_depth; in coerce_innermost_template_parms()
8616 coerced_args = coerce_template_parms (INNERMOST_TEMPLATE_PARMS (parms), in coerce_innermost_template_parms()
9709 tree parms = DECL_TEMPLATE_PARMS (templ); in finish_template_variable() local
9710 arglist = coerce_innermost_template_parms (parms, arglist, templ, complain, in finish_template_variable()
10570 tree parms = tsubst_template_parms (DECL_TEMPLATE_PARMS (friend_tmpl), in tsubst_friend_class() local
10575 redeclare_class_template (TREE_TYPE (tmpl), parms, cons); in tsubst_friend_class()
10659 tree parms = DECL_ARGUMENTS (*decl_p); in tsubst_attribute() local
10661 = c_omp_declare_simd_clauses_to_numbers (parms, clauses); in tsubst_attribute()
12514 tsubst_template_parms_level (tree parms, tree args, tsubst_flags_t complain) in tsubst_template_parms_level() argument
12516 if (parms == error_mark_node) in tsubst_template_parms_level()
12519 tree new_vec = make_tree_vec (TREE_VEC_LENGTH (parms)); in tsubst_template_parms_level()
12523 tree tuple = TREE_VEC_ELT (parms, i); in tsubst_template_parms_level()
12543 tsubst_template_parms (tree parms, tree args, tsubst_flags_t complain) in tsubst_template_parms() argument
12555 parms && TMPL_PARMS_DEPTH (parms) > TMPL_ARGS_DEPTH (args); in tsubst_template_parms()
12557 parms = TREE_CHAIN (parms)) in tsubst_template_parms()
12559 tree new_vec = tsubst_template_parms_level (TREE_VALUE (parms), in tsubst_template_parms()
12562 tree_cons (size_int (TMPL_PARMS_DEPTH (parms) in tsubst_template_parms()
12976 tree parms = DECL_ARGUMENTS (t); in tsubst_function_decl() local
12978 parms = DECL_CHAIN (parms); in tsubst_function_decl()
12979 parms = tsubst (parms, args, complain, t); in tsubst_function_decl()
12980 for (tree parm = parms; parm; parm = DECL_CHAIN (parm)) in tsubst_function_decl()
12985 DECL_CHAIN (tparm) = parms; in tsubst_function_decl()
12986 parms = tparm; in tsubst_function_decl()
12988 DECL_ARGUMENTS (r) = parms; in tsubst_function_decl()
19437 tree parms; in fn_type_unification() local
19594 parms = skip_artificial_parms_for (fn, TYPE_ARG_TYPES (fntype)); in fn_type_unification()
19602 parms = TYPE_ARG_TYPES (return_type); in fn_type_unification()
19608 parms = tree_cons (NULL_TREE, TREE_TYPE (fntype), parms); in fn_type_unification()
19637 full_targs, parms, args, nargs, /*subr=*/0, in fn_type_unification()
20217 tree parms; in type_unification_real() local
20233 parms = xparms; in type_unification_real()
20238 while (parms && parms != void_list_node in type_unification_real()
20241 parm = TREE_VALUE (parms); in type_unification_real()
20244 && (!TREE_CHAIN (parms) || TREE_CHAIN (parms) == void_list_node)) in type_unification_real()
20251 parms = TREE_CHAIN (parms); in type_unification_real()
20267 if (parms in type_unification_real()
20268 && parms != void_list_node in type_unification_real()
20269 && TREE_CODE (TREE_VALUE (parms)) == TYPE_PACK_EXPANSION) in type_unification_real()
20281 TREE_VEC_ELT (parmvec, 0) = TREE_VALUE (parms); in type_unification_real()
20287 parms = TREE_CHAIN (parms); in type_unification_real()
20292 if (ia < nargs && parms == void_list_node) in type_unification_real()
20297 if (parms && parms != void_list_node in type_unification_real()
20298 && TREE_PURPOSE (parms) == NULL_TREE) in type_unification_real()
20301 tree p = parms; in type_unification_real()
20400 for (ia = 0, parms = xparms, args = xargs, nargs = xnargs; in type_unification_real()
20401 parms && parms != void_list_node && ia < nargs; ) in type_unification_real()
20403 parm = TREE_VALUE (parms); in type_unification_real()
20406 && (!TREE_CHAIN (parms) in type_unification_real()
20407 || TREE_CHAIN (parms) == void_list_node)) in type_unification_real()
20414 parms = TREE_CHAIN (parms); in type_unification_real()
26228 tree parms = FUNCTION_FIRST_USER_PARMTYPE (DECL_TI_TEMPLATE (fn)); in copy_guide_p() local
26229 return (TREE_CHAIN (parms) == void_list_node in copy_guide_p()
26230 && same_type_p (TREE_VALUE (parms), TREE_TYPE (DECL_NAME (fn)))); in copy_guide_p()
26820 tree parms = build_tree_list (NULL_TREE, type); in do_auto_deduction() local
26833 int val = type_unification_real (tparms, targs, parms, &init, 1, 0, in do_auto_deduction()
26852 type_unification_real (tparms, targs, parms, &init, 1, 0, in do_auto_deduction()