Lines Matching refs:nonzero_chars

76   tree nonzero_chars;  member
193 if (si->nonzero_chars in compare_nonzero_chars()
194 && TREE_CODE (si->nonzero_chars) == INTEGER_CST) in compare_nonzero_chars()
195 return compare_tree_int (si->nonzero_chars, off); in compare_nonzero_chars()
205 return si->full_string_p && integer_zerop (si->nonzero_chars); in zero_length_string_p()
488 new_strinfo (tree ptr, int idx, tree nonzero_chars, bool full_string_p) in new_strinfo() argument
491 si->nonzero_chars = nonzero_chars; in new_strinfo()
562 si->nonzero_chars = fold_build2_loc (loc, MINUS_EXPR, size_type_node, in set_endptr_and_length()
572 if (si->nonzero_chars) in get_string_length()
573 return si->full_string_p ? si->nonzero_chars : NULL; in get_string_length()
666 if (chainsi->nonzero_chars == NULL) in get_string_length()
678 return si->nonzero_chars; in get_string_length()
724 nsi = new_strinfo (si->ptr, si->idx, si->nonzero_chars, si->full_string_p); in unshare_strinfo()
748 || !tree_fits_uhwi_p (basesi->nonzero_chars)) in get_stridx_plus_constant()
751 unsigned HOST_WIDE_INT nonzero_chars in get_stridx_plus_constant() local
752 = tree_to_uhwi (basesi->nonzero_chars) - off; in get_stridx_plus_constant()
757 || si->nonzero_chars == NULL_TREE in get_stridx_plus_constant()
758 || TREE_CODE (si->nonzero_chars) != INTEGER_CST) in get_stridx_plus_constant()
765 gcc_checking_assert (compare_tree_int (si->nonzero_chars, off) != -1); in get_stridx_plus_constant()
770 || si->nonzero_chars == NULL_TREE in get_stridx_plus_constant()
771 || TREE_CODE (si->nonzero_chars) != INTEGER_CST) in get_stridx_plus_constant()
773 int r = compare_tree_int (si->nonzero_chars, nonzero_chars); in get_stridx_plus_constant()
795 si = new_strinfo (ptr, idx, build_int_cst (size_type_node, nonzero_chars), in get_stridx_plus_constant()
922 gcc_assert (si->nonzero_chars); in adjust_related_strinfos()
923 tem = fold_convert_loc (loc, TREE_TYPE (si->nonzero_chars), adj); in adjust_related_strinfos()
924 si->nonzero_chars = fold_build2_loc (loc, PLUS_EXPR, in adjust_related_strinfos()
925 TREE_TYPE (si->nonzero_chars), in adjust_related_strinfos()
926 si->nonzero_chars, tem); in adjust_related_strinfos()
1253 && TREE_CODE (si->nonzero_chars) != SSA_NAME in handle_builtin_strlen()
1254 && TREE_CODE (si->nonzero_chars) != INTEGER_CST in handle_builtin_strlen()
1258 si->nonzero_chars = lhs; in handle_builtin_strlen()
1284 tree old = si->nonzero_chars; in handle_builtin_strlen()
1285 si->nonzero_chars = lhs; in handle_builtin_strlen()
1510 oldlen = olddsi->nonzero_chars; in handle_builtin_strcpy()
1512 dsi->nonzero_chars = srclen; in handle_builtin_strcpy()
1529 if (dsi->nonzero_chars == NULL_TREE) in handle_builtin_strcpy()
1550 chainsi->nonzero_chars = NULL_TREE; in handle_builtin_strcpy()
1948 lenrange[0] = (sisrc->nonzero_chars in maybe_diag_stxncpy_trunc()
1949 && TREE_CODE (sisrc->nonzero_chars) == INTEGER_CST in maybe_diag_stxncpy_trunc()
1950 ? wi::to_wide (sisrc->nonzero_chars) in maybe_diag_stxncpy_trunc()
2106 if (sidst->nonzero_chars) in handle_builtin_stxncpy()
2108 tree type = TREE_TYPE (sidst->nonzero_chars); in handle_builtin_stxncpy()
2109 dstsize = fold_build2 (PLUS_EXPR, type, sidst->nonzero_chars, in handle_builtin_stxncpy()
2124 if (sisrc->nonzero_chars) in handle_builtin_stxncpy()
2126 tree type = TREE_TYPE (sisrc->nonzero_chars); in handle_builtin_stxncpy()
2127 srcsize = fold_build2 (PLUS_EXPR, type, sisrc->nonzero_chars, in handle_builtin_stxncpy()
2233 if (si == NULL || si->nonzero_chars == NULL_TREE) in handle_builtin_memcpy()
2236 && TREE_CODE (si->nonzero_chars) == INTEGER_CST) in handle_builtin_memcpy()
2238 if (tree_int_cst_le (len, si->nonzero_chars)) in handle_builtin_memcpy()
2247 newlen = si->nonzero_chars; in handle_builtin_memcpy()
2260 || gimple_assign_rhs1 (def_stmt) != si->nonzero_chars in handle_builtin_memcpy()
2264 newlen = si->nonzero_chars; in handle_builtin_memcpy()
2277 unsigned HOST_WIDE_INT nonzero_chars = ~idx; in handle_builtin_memcpy() local
2278 newlen = build_int_cst (size_type_node, MIN (nonzero_chars, clen)); in handle_builtin_memcpy()
2279 full_string_p = clen > nonzero_chars; in handle_builtin_memcpy()
2295 oldlen = olddsi->nonzero_chars; in handle_builtin_memcpy()
2296 dsi->nonzero_chars = newlen; in handle_builtin_memcpy()
2346 laststmt.len = dsi->nonzero_chars; in handle_builtin_memcpy()
2458 dsi->nonzero_chars = NULL_TREE; in handle_builtin_strcat()
2470 tree dstlen = dsi->nonzero_chars; in handle_builtin_strcat()
2480 dsi->nonzero_chars = fold_build2_loc (loc, PLUS_EXPR, in handle_builtin_strcat()
2481 TREE_TYPE (dsi->nonzero_chars), in handle_builtin_strcat()
2482 dsi->nonzero_chars, srclen); in handle_builtin_strcat()
2489 dsi->nonzero_chars = NULL; in handle_builtin_strcat()
2686 si1->nonzero_chars = build_int_cst (size_type_node, 0); in handle_builtin_memset()
2819 if (si == NULL || si->nonzero_chars == NULL_TREE) in handle_pointer_plus()
2824 if (si->full_string_p && operand_equal_p (si->nonzero_chars, off, 0)) in handle_pointer_plus()
2831 && operand_equal_p (si->nonzero_chars, in handle_pointer_plus()
2872 && tree_fits_shwi_p (si->nonzero_chars)) in get_string_cst_length()
2873 return tree_to_shwi (si->nonzero_chars); in get_string_cst_length()
2993 tree oldlen = si->nonzero_chars; in handle_char_store()
3001 si->nonzero_chars = build_int_cst (size_type_node, offset + 1); in handle_char_store()
3003 si->nonzero_chars = build_int_cst (size_type_node, offset); in handle_char_store()
3018 si->nonzero_chars, oldlen); in handle_char_store()
3297 && si->nonzero_chars in strlen_check_and_optimize_stmt()
3298 && TREE_CODE (si->nonzero_chars) == INTEGER_CST in strlen_check_and_optimize_stmt()
3299 && (wi::to_widest (si->nonzero_chars) in strlen_check_and_optimize_stmt()
3314 && si->nonzero_chars in strlen_check_and_optimize_stmt()
3315 && TREE_CODE (si->nonzero_chars) == INTEGER_CST) in strlen_check_and_optimize_stmt()
3317 widest_int w1 = wi::to_widest (si->nonzero_chars); in strlen_check_and_optimize_stmt()