Home
last modified time | relevance | path

Searched refs:index_type (Results 1 – 25 of 70) sorted by relevance

123

/netbsd/src/external/gpl3/gcc/dist/gcc/
Dstmt.cc742 emit_case_dispatch_table (tree index_expr, tree index_type, in emit_case_dispatch_table() argument
761 if (! try_casesi (index_type, index_expr, minval, range, in emit_case_dispatch_table()
772 minval = build_int_cst (index_type, 0); in emit_case_dispatch_table()
792 = tree_to_uhwi (fold_build2 (MINUS_EXPR, index_type, in emit_case_dispatch_table()
795 = tree_to_uhwi (fold_build2 (MINUS_EXPR, index_type, in emit_case_dispatch_table()
852 bool ok = try_tablejump (index_type, index_expr, minval, range, in emit_case_dispatch_table()
889 tree index_type = TREE_TYPE (index_expr); in expand_case() local
898 if (index_type == error_mark_node) in expand_case()
919 minval = fold_convert (index_type, CASE_LOW (elt)); in expand_case()
922 maxval = fold_convert (index_type, CASE_HIGH (elt)); in expand_case()
[all …]
Dgimple-if-to-switch.cc265 build_case_label (tree index_type, tree min, tree max, basic_block dest) in build_case_label() argument
267 if (min != NULL_TREE && index_type != TREE_TYPE (min)) in build_case_label()
268 min = fold_convert (index_type, min); in build_case_label()
269 if (max != NULL_TREE && index_type != TREE_TYPE (max)) in build_case_label()
270 max = fold_convert (index_type, max); in build_case_label()
304 tree index_type = TREE_TYPE (first_cond->m_ranges[0].exp); in convert_if_conditions_to_switch() local
318 labels.safe_push (build_case_label (index_type, in convert_if_conditions_to_switch()
342 build_case_label (index_type, NULL_TREE, in convert_if_conditions_to_switch()
Dtree-switch-conversion.cc1500 bit_test_cluster::emit (tree index_expr, tree index_type, in emit() argument
1507 tree unsigned_index_type = range_check_type (index_type); in emit()
1570 tree index_type = TREE_TYPE (index_expr); in emit() local
1571 minval = fold_convert (index_type, minval); in emit()
1573 if (wi::lt_p (min, iminval, TYPE_SIGN (index_type))) in emit()
1575 minval = wide_int_to_tree (index_type, min); in emit()
1579 else if (wi::gt_p (min, iminval, TYPE_SIGN (index_type))) in emit()
1581 minval = wide_int_to_tree (index_type, min); in emit()
1585 maxval = wide_int_to_tree (index_type, max); in emit()
1850 tree index_type = TREE_TYPE (index_expr); in try_switch_expansion() local
[all …]
Dtree-switch-conversion.h269 void emit (tree index_expr, tree index_type,
390 void emit (tree index_expr, tree index_type,
588 profile_probability default_prob, tree index_type);
598 tree index_type, location_t);
Dgimple.cc3165 tree index_type, in preprocess_case_label_vec_for_gimple() argument
3173 min_value = TYPE_MIN_VALUE (index_type); in preprocess_case_label_vec_for_gimple()
3174 max_value = TYPE_MAX_VALUE (index_type); in preprocess_case_label_vec_for_gimple()
3218 low = fold_convert (index_type, low); in preprocess_case_label_vec_for_gimple()
3235 low = fold_convert (index_type, low); in preprocess_case_label_vec_for_gimple()
3242 high = fold_convert (index_type, high); in preprocess_case_label_vec_for_gimple()
3282 && TYPE_MIN_VALUE (index_type) in preprocess_case_label_vec_for_gimple()
3283 && TYPE_MAX_VALUE (index_type) in preprocess_case_label_vec_for_gimple()
3285 TYPE_MIN_VALUE (index_type))) in preprocess_case_label_vec_for_gimple()
3290 if (tree_int_cst_equal (high, TYPE_MAX_VALUE (index_type))) in preprocess_case_label_vec_for_gimple()
/netbsd/src/external/gpl3/gdb/dist/gdb/
Dada-valprint.c50 struct type *index_type; in print_optional_low_bound() local
66 index_type = type->index_type (); in print_optional_low_bound()
68 while (index_type->code () == TYPE_CODE_RANGE) in print_optional_low_bound()
75 index_type = index_type->target_type (); in print_optional_low_bound()
79 switch (index_type->code ()) in print_optional_low_bound()
89 low_bound = index_type->field (low_bound).loc_enumval (); in print_optional_low_bound()
92 index_type = NULL; in print_optional_low_bound()
100 ada_print_scalar (index_type, low_bound, stream); in print_optional_low_bound()
120 struct type *elttype, *index_type; in val_print_packed_array_elements() local
127 index_type = type->index_type (); in val_print_packed_array_elements()
[all …]
Dada-varobj.c180 value_from_longest (parent_type->index_type (), elt_index); in ada_varobj_simple_array_elt()
238 && is_dynamic_type (parent_type->index_type ())) in ada_varobj_get_array_number_of_children()
592 struct type *index_type; in ada_varobj_describe_simple_array_child() local
597 index_type = parent_type->index_type (); in ada_varobj_describe_simple_array_child()
598 real_index = child_index + ada_discrete_type_low_bound (index_type); in ada_varobj_describe_simple_array_child()
601 *child_name = ada_varobj_scalar_image (index_type, real_index); in ada_varobj_describe_simple_array_child()
613 std::string index_img = ada_varobj_scalar_image (index_type, real_index); in ada_varobj_describe_simple_array_child()
635 while (index_type->code () == TYPE_CODE_RANGE) in ada_varobj_describe_simple_array_child()
636 index_type = index_type->target_type (); in ada_varobj_describe_simple_array_child()
638 if (index_type->code () == TYPE_CODE_ENUM in ada_varobj_describe_simple_array_child()
[all …]
Df-valprint.c102 struct type *index_type; member
150 void start_dimension (struct type *index_type, LONGEST nelts, bool inner_p) in start_dimension() argument
158 m_stats[dim_indx].index_type = index_type; in start_dimension()
224 maybe_print_array_index (m_stats[dim_indx].index_type, in process_dimension()
239 maybe_print_array_index (m_stats[dim_indx].index_type, index, in process_dimension()
309 maybe_print_array_index (m_stats[dim_indx].index_type, in process_element()
329 maybe_print_array_index (m_stats[dim_indx].index_type, index, in process_element()
356 struct type *range_type = check_typedef (type)->index_type (); in dimension_contents_eq()
Dm2-typeprint.c232 if (type->index_type () != 0) in m2_array()
234 m2_print_bounds (type->index_type (), stream, show, -1, 0); in m2_array()
236 m2_print_bounds (type->index_type (), stream, show, -1, 1); in m2_array()
328 m2_print_bounds (type->index_type (), stream, in m2_short_set()
332 m2_print_bounds (type->index_type (), stream, in m2_short_set()
360 range = type->field (i).type ()->index_type (); in m2_is_long_set()
417 range = type->field (i).type ()->index_type (); in m2_is_long_set_of_type()
461 m2_print_bounds (type->field (i).type ()->index_type (), in m2_long_set()
466 m2_print_bounds (type->field (len - 1).type ()->index_type (), in m2_long_set()
Df-array-walker.h43 struct type *range_type = type->index_type (); in fortran_array_offset_calculator()
49 m_stride = type->index_type ()->bounds ()->bit_stride (); in fortran_array_offset_calculator()
123 void start_dimension (struct type *index_type, LONGEST nelts, bool inner_p) in start_dimension()
221 struct type *range_type = check_typedef (type)->index_type (); in walk_1()
Df-lang.c269 void start_dimension (struct type *index_type, LONGEST nelts, bool inner_p) in start_dimension() argument
520 struct type *pointer_range = pointer_type->index_type ();
521 struct type *target_range = target_type->index_type ();
630 struct type *range = array_type->index_type (); in fortran_array_size()
747 if (!get_discrete_bounds (val_type->index_type (), &lbound, &ubound)) in fortran_array_shape()
1242 struct type *index_type = dim_type->index_type (); in value_subarray() local
1245 LONGEST sd = index_type->bit_stride (); in value_subarray()
1331 index_type); in value_subarray()
1344 struct type *index_type = dim_type->index_type (); in value_subarray() local
1347 LONGEST sd = index_type->bit_stride () / 8; in value_subarray()
[all …]
Drust-lang.c1155 struct type *index_type; in rust_range() local
1165 index_type = NULL; in rust_range()
1170 index_type = high->type (); in rust_range()
1179 index_type = low->type (); in rust_range()
1186 index_type = low->type (); in rust_range()
1193 temp_type = (index_type == NULL in rust_range()
1195 : index_type); in rust_range()
1198 low == NULL ? NULL : "start", index_type, in rust_range()
1199 high == NULL ? NULL : "end", index_type); in rust_range()
Dm2-valprint.c88 range = type->field (field).type ()->index_type (); in m2_print_long_set()
138 range = type->field (field).type ()->index_type (); in m2_print_long_set()
386 elttype = type->index_type (); in value_print_inner()
Dgdbtypes.c936 create_range_type (type_allocator &alloc, struct type *index_type, in create_range_type() argument
943 gdb_assert (index_type->code () != TYPE_CODE_VOID); in create_range_type()
944 gdb_assert (index_type->length () > 0); in create_range_type()
948 result_type->set_target_type (index_type); in create_range_type()
949 if (index_type->is_stub ()) in create_range_type()
952 result_type->set_length (check_typedef (index_type)->length ()); in create_range_type()
963 if (index_type->code () == TYPE_CODE_FIXED_POINT) in create_range_type()
964 result_type->set_is_unsigned (index_type->is_unsigned ()); in create_range_type()
965 else if (index_type->is_unsigned ()) in create_range_type()
990 (index_type->endianity_is_not_default ()); in create_range_type()
[all …]
Dada-lang.c2363 struct type *index_type; in constrained_packed_array_type() local
2372 index_type = to_fixed_range_type (index_type_desc->field (0).type (), in constrained_packed_array_type()
2375 index_type = type->index_type (); in constrained_packed_array_type()
2381 new_type = create_array_type (alloc, new_elt_type, index_type); in constrained_packed_array_type()
2385 if ((check_typedef (index_type)->code () == TYPE_CODE_RANGE in constrained_packed_array_type()
2386 && is_dynamic_type (check_typedef (index_type))) in constrained_packed_array_type()
2387 || !get_discrete_bounds (index_type, &low_bound, &high_bound)) in constrained_packed_array_type()
2459 if (!get_discrete_bounds (type->index_type (), &low, &high) in recursively_update_array_bitsize()
2572 struct type *range_type = elt_type->index_type (); in value_subscript_packed()
3070 get_discrete_bounds (type->index_type (), &lwb, &upb); in ada_value_ptr_subscript()
[all …]
Dgdbtypes.h1100 type *index_type () const in index_type() function
1115 void set_index_type (type *index_type) in set_index_type()
1117 this->field (0).set_type (index_type); in set_index_type()
1142 return this->index_type ()->bounds (); in bounds()
2531 struct type *index_type,
2562 struct type *index_type,
2572 (type_allocator &alloc, struct type *index_type,
Dvalprint.c1923 maybe_print_array_index (struct type *index_type, LONGEST index, in maybe_print_array_index() argument
1930 current_language->print_array_index (index_type, index, stream, options); in maybe_print_array_index()
1943 struct type *elttype, *index_type; in value_print_array_elements() local
1957 index_type = type->index_type (); in value_print_array_elements()
1958 if (index_type->code () == TYPE_CODE_RANGE) in value_print_array_elements()
1959 index_type = index_type->target_type (); in value_print_array_elements()
2002 maybe_print_array_index (index_type, i + low_bound, in value_print_array_elements()
Dstabsread.c3455 struct type *index_type, *element_type, *range_type; in read_array_type() local
3468 index_type = read_type (pp, objfile); in read_array_type()
3504 create_static_range_type (alloc, index_type, lower, upper); in read_array_type()
3942 struct type *index_type = NULL; in read_range_type() local
3954 index_type = read_type (pp, objfile); in read_range_type()
3971 if (index_type) in read_range_type()
4119 index_type = builtin_type (objfile)->builtin_int; in read_range_type()
4121 index_type = *dbx_lookup_type (rangenums, objfile); in read_range_type()
4122 if (index_type == NULL) in read_range_type()
4129 index_type = builtin_type (objfile)->builtin_int; in read_range_type()
[all …]
Dvalprint.h159 extern void maybe_print_array_index (struct type *index_type, LONGEST index,
/netbsd/src/external/gpl3/gdb/dist/gdb/testsuite/gdb.base/
Dgdb-index-err.exp28 set index_type [get_index_type $binfile "check debug style"]
29 if { $index_type ne "cooked" } {
/netbsd/src/external/gpl3/gcc/dist/gcc/config/i386/
Di386-builtins.cc1783 const_tree index_type, int scale) in ix86_vectorize_builtin_gather() argument
1796 if ((TREE_CODE (index_type) != INTEGER_TYPE in ix86_vectorize_builtin_gather()
1797 && !POINTER_TYPE_P (index_type)) in ix86_vectorize_builtin_gather()
1798 || (TYPE_MODE (index_type) != SImode in ix86_vectorize_builtin_gather()
1799 && TYPE_MODE (index_type) != DImode)) in ix86_vectorize_builtin_gather()
1802 if (TYPE_PRECISION (index_type) > POINTER_SIZE) in ix86_vectorize_builtin_gather()
1806 if (TYPE_PRECISION (index_type) < POINTER_SIZE in ix86_vectorize_builtin_gather()
1807 && TYPE_UNSIGNED (index_type)) in ix86_vectorize_builtin_gather()
1815 si = TYPE_MODE (index_type) == SImode; in ix86_vectorize_builtin_gather()
2317 tree index_type in fold_builtin_cpu() local
[all …]
/netbsd/src/external/gpl3/gcc/dist/gcc/cp/
Dtree.cc1040 build_min_array_type (tree elt_type, tree index_type) in build_min_array_type() argument
1044 TYPE_DOMAIN (t) = index_type; in build_min_array_type()
1052 set_array_type_canon (tree t, tree elt_type, tree index_type, bool dep) in set_array_type_canon() argument
1056 || (index_type && TYPE_STRUCTURAL_EQUALITY_P (index_type))) in set_array_type_canon()
1059 || (index_type && TYPE_CANONICAL (index_type) != index_type)) in set_array_type_canon()
1062 index_type in set_array_type_canon()
1063 ? TYPE_CANONICAL (index_type) : index_type, in set_array_type_canon()
1075 build_cplus_array_type (tree elt_type, tree index_type, int dependent) in build_cplus_array_type() argument
1079 if (elt_type == error_mark_node || index_type == error_mark_node) in build_cplus_array_type()
1084 || (index_type && uses_template_parms (index_type))); in build_cplus_array_type()
[all …]
/netbsd/src/external/gpl3/binutils/dist/binutils/
Dstabs.c1727 debug_type index_type; in parse_stab_range_type() local
1736 index_type = DEBUG_TYPE_NULL; in parse_stab_range_type()
1749 index_type = parse_stab_type (dhandle, info, (const char *) NULL, in parse_stab_range_type()
1751 if (index_type == DEBUG_TYPE_NULL) in parse_stab_range_type()
1785 if (index_type == DEBUG_TYPE_NULL) in parse_stab_range_type()
1799 if (index_type == DEBUG_TYPE_NULL) in parse_stab_range_type()
1883 index_type = stab_find_type (dhandle, info, rangenums); in parse_stab_range_type()
1884 if (index_type == DEBUG_TYPE_NULL) in parse_stab_range_type()
1889 index_type = debug_make_int_type (dhandle, 4, false); in parse_stab_range_type()
1892 return debug_make_range_type (dhandle, index_type, n2, n3); in parse_stab_range_type()
[all …]
/netbsd/src/external/gpl3/gcc/dist/include/
Dbtf.h145 uint32_t index_type; /* Type of array index. */ member
/netbsd/src/external/gpl3/gdb/dist/gdb/testsuite/lib/
Dgdb.exp9603 set index_type [get_index_type $objfile]
9605 if { $index_type eq "gdb" } {
9607 } elseif { $index_type eq "dwarf5" } {
9700 set index_type "unknown"
9703 set index_type "gdb"
9707 set index_type "dwarf5"
9711 set index_type "cooked"
9715 set index_type "readnow"
9719 set index_type "none"
9723 gdb_assert { $index_type ne "unknown" } \
[all …]

123