Home
last modified time | relevance | path

Searched refs:string_cst (Results 1 – 13 of 13) sorted by relevance

/netbsd-src/external/gpl3/gcc/dist/gcc/analyzer/
H A Dregion-model-manager.cc1320 region_model_manager::maybe_get_char_from_string_cst (tree string_cst, in maybe_get_char_from_string_cst() argument
1323 gcc_assert (TREE_CODE (string_cst) == STRING_CST); in maybe_get_char_from_string_cst()
1329 TREE_STRING_LENGTH (string_cst)) < 0 in maybe_get_char_from_string_cst()
1330 && is_int_mode (TYPE_MODE (TREE_TYPE (TREE_TYPE (string_cst))), in maybe_get_char_from_string_cst()
1335 = build_int_cst_type (TREE_TYPE (TREE_TYPE (string_cst)), in maybe_get_char_from_string_cst()
1336 (TREE_STRING_POINTER (string_cst) in maybe_get_char_from_string_cst()
1594 region_model_manager::get_region_for_string (tree string_cst) in get_region_for_string() argument
1596 gcc_assert (TREE_CODE (string_cst) == STRING_CST); in get_region_for_string()
1598 string_region **slot = m_string_map.get (string_cst); in get_region_for_string()
1602 = new string_region (alloc_region_id (), &m_root_region, string_cst); in get_region_for_string()
[all …]
H A Dregion.h1130 string_region (unsigned id, const region *parent, tree string_cst)
1131 : region (complexity (parent), id, parent, TREE_TYPE (string_cst)),
1132 m_string_cst (string_cst)
H A Dregion-model-impl-calls.cc164 tree string_cst = string_reg->get_string_cst (); in get_arg_string_literal() local
165 return TREE_STRING_POINTER (string_cst); in get_arg_string_literal()
H A Dregion-model.h293 const svalue *maybe_get_char_from_string_cst (tree string_cst,
327 const string_region *get_region_for_string (tree string_cst);
H A Dregion-model.cc2449 tree string_cst = str_reg->get_string_cst (); in get_store_value() local
2451 = m_mgr->maybe_get_char_from_string_cst (string_cst, in get_store_value()
2461 tree string_cst = str_reg->get_string_cst (); in get_store_value() local
2464 = m_mgr->maybe_get_char_from_string_cst (string_cst, in get_store_value()
4753 tree string_cst = build_string (4, "foo"); in test_get_representative_tree() local
4755 const svalue *str_sval = m.get_rvalue (string_cst, NULL); in test_get_representative_tree()
4757 ASSERT_EQ (rep, string_cst); in test_get_representative_tree()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dhsa-gen.c1008 hsa_get_string_cst_symbol (tree string_cst) in hsa_get_string_cst_symbol() argument
1010 gcc_checking_assert (TREE_CODE (string_cst) == STRING_CST); in hsa_get_string_cst_symbol()
1012 hsa_symbol **slot = hsa_cfun->m_string_constants_map.get (string_cst); in hsa_get_string_cst_symbol()
1016 hsa_op_immed *cst = new hsa_op_immed (string_cst); in hsa_get_string_cst_symbol()
1021 sym->m_dim = TREE_STRING_LENGTH (string_cst); in hsa_get_string_cst_symbol()
1025 hsa_cfun->m_string_constants_map.put (string_cst, sym); in hsa_get_string_cst_symbol()
H A Dtree.c15511 tree string_cst = build_string (4, "foo"); in test_location_wrappers() local
15512 ASSERT_FALSE (CAN_HAVE_LOCATION_P (string_cst)); in test_location_wrappers()
15513 ASSERT_FALSE (location_wrapper_p (string_cst)); in test_location_wrappers()
15515 tree wrapped_string_cst = maybe_wrap_with_location (string_cst, loc); in test_location_wrappers()
15519 ASSERT_EQ (string_cst, tree_strip_any_location_wrapper (wrapped_string_cst)); in test_location_wrappers()
15542 check_strip_nops (wrapped_string_cst, string_cst); in test_location_wrappers()
H A Dtree.def297 DEFTREECODE (STRING_CST, "string_cst", tcc_constant, 0)
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dtree.cc15008 tree string_cst = build_string (4, "foo"); in test_location_wrappers() local
15009 ASSERT_FALSE (CAN_HAVE_LOCATION_P (string_cst)); in test_location_wrappers()
15010 ASSERT_FALSE (location_wrapper_p (string_cst)); in test_location_wrappers()
15012 tree wrapped_string_cst = maybe_wrap_with_location (string_cst, loc); in test_location_wrappers()
15016 ASSERT_EQ (string_cst, tree_strip_any_location_wrapper (wrapped_string_cst)); in test_location_wrappers()
15039 check_strip_nops (wrapped_string_cst, string_cst); in test_location_wrappers()
H A Dtree.def303 DEFTREECODE (STRING_CST, "string_cst", tcc_constant, 0)
/netbsd-src/external/gpl3/gcc.old/dist/gcc/fortran/
H A Dtrans-expr.c3869 tree string_cst = TREE_OPERAND (TREE_OPERAND (str, 0), 0); in gfc_string_to_single_character() local
3870 int i, length = TREE_STRING_LENGTH (string_cst); in gfc_string_to_single_character()
3871 const char *ptr = TREE_STRING_POINTER (string_cst); in gfc_string_to_single_character()
3968 tree string_cst = TREE_OPERAND (TREE_OPERAND (str, 0), 0); in gfc_optimize_len_trim() local
3969 int length = TREE_STRING_LENGTH (string_cst); in gfc_optimize_len_trim()
3970 const char *ptr = TREE_STRING_POINTER (string_cst); in gfc_optimize_len_trim()
/netbsd-src/external/gpl3/gcc/dist/gcc/fortran/
H A Dtrans-expr.cc3971 tree string_cst = TREE_OPERAND (TREE_OPERAND (str, 0), 0); in gfc_string_to_single_character() local
3972 int i, length = TREE_STRING_LENGTH (string_cst); in gfc_string_to_single_character()
3973 const char *ptr = TREE_STRING_POINTER (string_cst); in gfc_string_to_single_character()
4057 tree string_cst = TREE_OPERAND (TREE_OPERAND (str, 0), 0); in gfc_optimize_len_trim() local
4058 int length = TREE_STRING_LENGTH (string_cst); in gfc_optimize_len_trim()
4059 const char *ptr = TREE_STRING_POINTER (string_cst); in gfc_optimize_len_trim()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/analyzer/
H A Dregion-model.cc7693 tree string_cst = build_string (4, "foo"); in test_get_representative_tree() local
7695 svalue_id str_sid = m.get_rvalue (string_cst, NULL); in test_get_representative_tree()
7697 ASSERT_EQ (rep, string_cst); in test_get_representative_tree()