GCC Middle and Back End API Reference
|
#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "backend.h"
#include "target.h"
#include "tree.h"
#include "gimple.h"
#include "stringpool.h"
#include "tree-streamer.h"
#include "cgraph.h"
#include "builtins.h"
#include "gomp-constants.h"
#include "attribs.h"
#include "asan.h"
#include "opts.h"
#include "stor-layout.h"
|
static |
Read an IDENTIFIER from the string table in DATA_IN using input block IB.
References get_identifier_with_length(), NULL, and streamer_read_indexed_string().
Referenced by streamer_alloc_tree().
|
static |
Read all pointer fields in the TS_BINFO structure of EXPR from input block IB. DATA_IN contains tables and descriptors for the file being read.
References BINFO_BASE_BINFOS, BINFO_OFFSET, BINFO_VTABLE, and stream_read_tree_ref().
Referenced by streamer_read_tree_body().
|
static |
Read all pointer fields in the TS_BLOCK structure of EXPR from input block IB. DATA_IN contains tables and descriptors for the file being read.
References BLOCK_ABSTRACT_ORIGIN, BLOCK_CHAIN, BLOCK_ORIGIN, BLOCK_SUBBLOCKS, BLOCK_SUPERCONTEXT, BLOCK_VARS, DECL_INITIAL, DECL_ORIGIN, DECL_P, expr, stream_read_tree_ref(), streamer_read_chain(), and TREE_CODE.
Referenced by streamer_read_tree_body().
|
static |
Read all pointer fields in the TS_COMMON structure of EXPR from input block IB. DATA_IN contains tables and descriptors for the file being read.
References stream_read_tree_ref(), TREE_CODE, and TREE_TYPE.
Referenced by streamer_read_tree_body().
|
static |
Read all pointer fields in the TS_COMPLEX structure of EXPR from input block IB. DATA_IN contains tables and descriptors for the file being read.
References stream_read_tree_ref(), TREE_IMAGPART, and TREE_REALPART.
Referenced by streamer_read_tree_body().
|
static |
Read all pointer fields in the TS_CONSTRUCTOR structure of EXPR from input block IB. DATA_IN contains tables and descriptors for the file being read.
References CONSTRUCTOR_ELTS, CONSTRUCTOR_NELTS, i, constructor_elt::index, stream_read_tree_ref(), and constructor_elt::value.
Referenced by streamer_read_tree_body().
|
static |
Read all pointer fields in the TS_DECL_COMMON structure of EXPR from input block IB. DATA_IN contains tables and descriptors for the file being read.
References DECL_ABSTRACT_ORIGIN, DECL_ATTRIBUTES, DECL_HAS_DEBUG_EXPR_P, DECL_HAS_VALUE_EXPR_P, DECL_SIZE, DECL_SIZE_UNIT, SET_DECL_DEBUG_EXPR, SET_DECL_VALUE_EXPR, stream_read_tree_ref(), TREE_CODE, and VAR_P.
Referenced by streamer_read_tree_body().
|
static |
Read all pointer fields in the TS_DECL_MINIMAL structure of EXPR from input block IB. DATA_IN contains tables and descriptors for the file being read.
References DECL_CONTEXT, DECL_NAME, and stream_read_tree_ref().
Referenced by streamer_read_tree_body().
|
static |
Read all pointer fields in the TS_DECL_NON_COMMON structure of EXPR from input block IB. DATA_IN contains tables and descriptors for the file being read.
Referenced by streamer_read_tree_body().
|
static |
Read all pointer fields in the TS_DECL_WITH_VIS structure of EXPR from input block IB. DATA_IN contains tables and descriptors for the file being read.
References gcc_assert, SET_DECL_ASSEMBLER_NAME, stream_read_tree_ref(), and TREE_CODE.
Referenced by streamer_read_tree_body().
|
static |
Read all pointer fields in the TS_EXP structure of EXPR from input block IB. DATA_IN contains tables and descriptors for the file being read.
References lto_location_cache::apply_location_cache(), i, data_in::location_cache, stream_read_tree_ref(), TREE_OPERAND, TREE_OPERAND_LENGTH, and TREE_SET_BLOCK.
Referenced by streamer_read_tree_body().
|
static |
Read all pointer fields in the TS_FIELD_DECL structure of EXPR from input block IB. DATA_IN contains tables and descriptors for the file being read.
References DECL_BIT_FIELD_REPRESENTATIVE, DECL_BIT_FIELD_TYPE, DECL_FIELD_BIT_OFFSET, DECL_FIELD_OFFSET, and stream_read_tree_ref().
Referenced by streamer_read_tree_body().
|
static |
Read all pointer fields in the TS_FUNCTION_DECL structure of EXPR from input block IB. DATA_IN contains tables and descriptors for the file being read.
References build_optimization_node(), DECL_FUNCTION_PERSONALITY, DECL_FUNCTION_SPECIFIC_OPTIMIZATION, DECL_FUNCTION_SPECIFIC_TARGET, finish_options(), init_options_struct(), NULL, stream_read_tree_ref(), TREE_OPTIMIZATION, and UNKNOWN_LOCATION.
Referenced by streamer_read_tree_body().
|
static |
Read all pointer fields in the TS_LIST structure of EXPR from input block IB. DATA_IN contains tables and descriptors for the file being read.
References stream_read_tree_ref(), TREE_CHAIN, TREE_PURPOSE, and TREE_VALUE.
Referenced by streamer_read_tree_body().
|
static |
Read all pointer fields in the TS_OMP_CLAUSE structure of EXPR from input block IB. DATA_IN contains tables and descriptors for the file being read.
References i, OMP_CLAUSE_CHAIN, OMP_CLAUSE_CODE, omp_clause_num_ops, OMP_CLAUSE_OPERAND, and stream_read_tree_ref().
Referenced by streamer_read_tree_body().
|
static |
Read all pointer fields in the TS_POLY_INT_CST structure of EXPR from input block IB. DATA_IN contains tables and descriptors for the file being read.
References build_zero_cst(), fatal_error(), gcc_assert, host_num_poly_int_coeffs, i, input_location, integer_zerop(), NUM_POLY_INT_COEFFS, POLY_INT_CST_COEFF, stream_read_tree_ref(), and TREE_TYPE.
Referenced by streamer_read_tree_body().
|
static |
Read all pointer fields in the TS_RAW_DATA_CST structure of EXPR from input block IB. DATA_IN contains tables and descriptors for the file being read.
References gcc_checking_assert, RAW_DATA_OWNER, RAW_DATA_POINTER, stream_read_tree_ref(), TREE_CODE, and TREE_STRING_POINTER.
Referenced by streamer_read_tree_body().
|
static |
Read all pointer fields in the TS_TYPE_COMMON structure of EXPR from input block IB. DATA_IN contains tables and descriptors for the file being read.
References NULL_TREE, stream_read_tree_ref(), TYPE_ATTRIBUTES, TYPE_CANONICAL, TYPE_CONTEXT, TYPE_MAIN_VARIANT, TYPE_NAME, TYPE_SIZE, and TYPE_SIZE_UNIT.
Referenced by streamer_read_tree_body().
|
static |
Read all pointer fields in the TS_TYPE_NON_COMMON structure of EXPR from input block IB. DATA_IN contains tables and descriptors for the file being read.
References FUNC_OR_METHOD_TYPE_P, POINTER_TYPE_P, RECORD_OR_UNION_TYPE_P, stream_read_tree_ref(), streamer_read_chain(), TREE_CODE, TYPE_ARG_TYPES, TYPE_DOMAIN, TYPE_FIELDS, TYPE_MAX_VALUE_RAW, and TYPE_MIN_VALUE_RAW.
Referenced by streamer_read_tree_body().
|
static |
Read all pointer fields in the TS_VEC structure of EXPR from input block IB. DATA_IN contains tables and descriptors for the file being read.
References i, stream_read_tree_ref(), TREE_VEC_ELT, and TREE_VEC_LENGTH.
Referenced by streamer_read_tree_body().
|
static |
Read all pointer fields in the TS_VECTOR structure of EXPR from input block IB. DATA_IN contains tables and descriptors for the file being read.
References count, i, stream_read_tree_ref(), VECTOR_CST_ENCODED_ELT, and vector_cst_encoded_nelts().
Referenced by streamer_read_tree_body().
tree streamer_alloc_tree | ( | class lto_input_block * | ib, |
class data_in * | data_in, | ||
enum LTO_tags | tag ) |
Materialize a new tree from input block IB using descriptors in DATA_IN. The code for the new tree should match TAG. Store in *IX_P the index into the reader cache where the new tree is stored.
References bp_unpack_value(), build_omp_clause(), build_vl_exp(), CODE_CONTAINS_STRUCT, gcc_assert, input_identifier(), lto_tag_to_tree_code(), make_int_cst(), make_node(), make_tree_binfo(), make_tree_vec(), make_vector(), NULL_TREE, RAW_DATA_LENGTH, RAW_DATA_POINTER, streamer_read_bitpack(), streamer_read_hwi(), streamer_read_string_cst(), streamer_read_uhwi(), and UNKNOWN_LOCATION.
Referenced by lto_input_scc(), and lto_read_tree().
tree streamer_get_pickled_tree | ( | class lto_input_block * | ib, |
class data_in * | data_in ) |
Read an index IX from input block IB and return the tree node at DATA_IN->FILE_DATA->GLOBALS_INDEX[IX].
References data_in::reader_cache, streamer_read_uhwi(), and streamer_tree_cache_get_tree().
Referenced by lto_input_tree_1().
|
static |
Read a chain of tree nodes from input block IB. DATA_IN contains tables and descriptors for the file being read.
References NULL_TREE, stream_read_tree_ref(), and TREE_CHAIN.
Referenced by lto_input_ts_block_tree_pointers(), and lto_input_ts_type_non_common_tree_pointers().
tree streamer_read_string_cst | ( | class data_in * | data_in, |
class lto_input_block * | ib ) |
Routines for reading trees from a file stream. Copyright (C) 2011-2024 Free Software Foundation, Inc. Contributed by Diego Novillo <dnovillo@google.com> This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>.
Read a STRING_CST from the string table in DATA_IN using input block IB.
References build_string(), NULL, and streamer_read_indexed_string().
Referenced by input_gimple_stmt(), lto_input_toplevel_asms(), and streamer_alloc_tree().
void streamer_read_tree_bitfields | ( | class lto_input_block * | ib, |
class data_in * | data_in, | ||
tree | expr ) |
Read all the language-independent bitfield values for EXPR from IB. Return the partially unpacked bitpack so the caller can unpack any other bitfield values that the writer may have written.
References bp_unpack_enum, bp_unpack_value(), bp_unpack_var_len_unsigned(), CALL_EXPR_IFN, cl_optimization_stream_in(), cl_target_option_stream_in(), CLOBBER_KIND, CLOBBER_LAST, CODE_CONTAINS_STRUCT, CONSTRUCTOR_ELTS, DECL_SOURCE_LOCATION, exp(), EXPR_CHECK, MR_DEPENDENCE_BASE, MR_DEPENDENCE_CLIQUE, stream_input_location, streamer_read_bitpack(), targetm, TREE_CODE, TREE_OPTIMIZATION, TREE_TARGET_OPTION, unpack_ts_base_value_fields(), unpack_ts_block_value_fields(), unpack_ts_decl_common_value_fields(), unpack_ts_decl_with_vis_value_fields(), unpack_ts_decl_wrtl_value_fields(), unpack_ts_fixed_cst_value_fields(), unpack_ts_function_decl_value_fields(), unpack_ts_int_cst_value_fields(), unpack_ts_omp_clause_value_fields(), unpack_ts_real_cst_value_fields(), unpack_ts_translation_unit_decl_value_fields(), unpack_ts_type_common_value_fields(), and vec_safe_grow().
Referenced by lto_read_tree_1().
void streamer_read_tree_body | ( | class lto_input_block * | ib, |
class data_in * | data_in, | ||
tree | expr ) |
Read all pointer fields in EXPR from input block IB. DATA_IN contains tables and descriptors for the file being read.
References CODE_CONTAINS_STRUCT, lto_input_ts_binfo_tree_pointers(), lto_input_ts_block_tree_pointers(), lto_input_ts_common_tree_pointers(), lto_input_ts_complex_tree_pointers(), lto_input_ts_constructor_tree_pointers(), lto_input_ts_decl_common_tree_pointers(), lto_input_ts_decl_minimal_tree_pointers(), lto_input_ts_decl_non_common_tree_pointers(), lto_input_ts_decl_with_vis_tree_pointers(), lto_input_ts_exp_tree_pointers(), lto_input_ts_field_decl_tree_pointers(), lto_input_ts_function_decl_tree_pointers(), lto_input_ts_list_tree_pointers(), lto_input_ts_omp_clause_tree_pointers(), lto_input_ts_poly_tree_pointers(), lto_input_ts_raw_data_cst_tree_pointers(), lto_input_ts_type_common_tree_pointers(), lto_input_ts_type_non_common_tree_pointers(), lto_input_ts_vec_tree_pointers(), lto_input_ts_vector_tree_pointers(), and TREE_CODE.
Referenced by lto_read_tree_1().
Unpack all the non-pointer fields of the TS_BASE structure of expression EXPR from bitpack BP.
References AGGREGATE_TYPE_P, bp_unpack_value(), CALL_EXPR_BY_DESCRIPTOR, DECL_NAMELESS, DECL_P, DECL_UNSIGNED, REF_REVERSE_STORAGE_ORDER, SSA_NAME_IS_DEFAULT_DEF, TREE_ADDRESSABLE, TREE_ASM_WRITTEN, TREE_CODE, TREE_CONSTANT, TREE_DEPRECATED, TREE_NO_WARNING, TREE_NOTHROW, TREE_PRIVATE, TREE_PROTECTED, TREE_PUBLIC, TREE_READONLY, TREE_SIDE_EFFECTS, TREE_STATIC, TREE_THIS_VOLATILE, TYPE_ADDR_SPACE, TYPE_ARTIFICIAL, TYPE_P, TYPE_REVERSE_STORAGE_ORDER, TYPE_SATURATING, and TYPE_UNSIGNED.
Referenced by streamer_read_tree_bitfields().
|
static |
Unpack all the non-pointer fields of the TS_BLOCK structure of expression EXPR from bitpack BP.
References BLOCK_SOURCE_LOCATION, and stream_input_location.
Referenced by streamer_read_tree_bitfields().
Unpack all the non-pointer fields of the TS_DECL_COMMON structure of expression EXPR from bitpack BP.
References bp_unpack_machine_mode(), bp_unpack_value(), bp_unpack_var_len_unsigned(), DECL_ABSTRACT_P, DECL_ALIGN, DECL_ARTIFICIAL, DECL_BIT_FIELD, DECL_BY_REFERENCE, DECL_EXTERNAL, DECL_HAS_DEBUG_EXPR_P, DECL_HAS_VALUE_EXPR_P, DECL_HIDDEN_STRING_LENGTH, DECL_IGNORED_P, DECL_NONADDRESSABLE_P, DECL_NONLOCAL, DECL_NONLOCAL_FRAME, DECL_NOT_FLEXARRAY, DECL_NOT_GIMPLE_REG_P, DECL_PACKED, DECL_PADDING_P, DECL_PRESERVE_P, DECL_USER_ALIGN, DECL_VIRTUAL_P, EH_LANDING_PAD_NR, LABEL_DECL_UID, SET_DECL_ALIGN, SET_DECL_FIELD_ABI_IGNORED, SET_DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD, SET_DECL_MODE, targetm, TREE_CODE, and VAR_P.
Referenced by streamer_read_tree_bitfields().
Unpack all the non-pointer fields of the TS_DECL_WITH_VIS structure of expression EXPR from bitpack BP.
References bp_unpack_value(), DECL_COMDAT, DECL_COMMON, DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P, DECL_DLLIMPORT_P, DECL_FINAL_P, DECL_HARD_REGISTER, DECL_IN_CONSTANT_POOL, DECL_SEEN_IN_BIND_EXPR_P, DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_WEAK, TREE_CODE, and VAR_P.
Referenced by streamer_read_tree_bitfields().
Unpack all the non-pointer fields of the TS_DECL_WRTL structure of expression EXPR from bitpack BP.
References bp_unpack_value(), and DECL_REGISTER.
Referenced by streamer_read_tree_bitfields().
Unpack all the non-pointer fields of the TS_FIXED_CST structure of expression EXPR from bitpack BP.
References as_a(), bp_unpack_machine_mode(), bp_unpack_var_len_int(), FIXED_VALUE_TYPE, ggc_alloc(), and TREE_FIXED_CST_PTR.
Referenced by streamer_read_tree_bitfields().
Unpack all the non-pointer fields of the TS_FUNCTION_DECL structure of expression EXPR from bitpack BP.
References bp_unpack_enum, bp_unpack_value(), BUILT_IN_LAST, BUILT_IN_MD, BUILT_IN_NORMAL, DECL_DECLARED_INLINE_P, DECL_DISREGARD_INLINE_LIMITS, DECL_IS_MALLOC, DECL_IS_NOVOPS, DECL_IS_REPLACEABLE_OPERATOR, DECL_IS_RETURNS_TWICE, DECL_LOOPING_CONST_OR_PURE_P, DECL_NO_INLINE_WARNING_P, DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT, DECL_NO_LIMIT_STACK, DECL_POSSIBLY_INLINED, DECL_PURE_P, DECL_SET_IS_OPERATOR_DELETE, DECL_STATIC_CHAIN, DECL_STATIC_CONSTRUCTOR, DECL_STATIC_DESTRUCTOR, DECL_UNINLINABLE, END_BUILTINS, error_mark_node, fatal_error(), FUNCTION_DECL_DECL_TYPE, input_location, NOT_BUILT_IN, set_decl_built_in_function(), and targetm.
Referenced by streamer_read_tree_bitfields().
Unpack all the non-pointer fields of the TS_INT_CST structure of expression EXPR from bitpack BP.
References bp_unpack_var_len_int(), i, TREE_INT_CST_ELT, and TREE_INT_CST_EXT_NUNITS.
Referenced by streamer_read_tree_bitfields().
|
static |
Unpack all the non-pointer fields of the TS_OMP_CLAUSE structure of expression EXPR from bitpack BP.
References bp_unpack_enum, MAX_TREE_CODES, OMP_CLAUSE_CODE, OMP_CLAUSE_DEFAULT, OMP_CLAUSE_DEFAULT_KIND, OMP_CLAUSE_DEFAULT_LAST, OMP_CLAUSE_DEPEND, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_DEPEND_LAST, OMP_CLAUSE_DOACROSS, OMP_CLAUSE_DOACROSS_KIND, OMP_CLAUSE_DOACROSS_LAST, OMP_CLAUSE_IN_REDUCTION, OMP_CLAUSE_LOCATION, OMP_CLAUSE_MAP, OMP_CLAUSE_PROC_BIND, OMP_CLAUSE_PROC_BIND_KIND, OMP_CLAUSE_PROC_BIND_LAST, OMP_CLAUSE_REDUCTION, OMP_CLAUSE_REDUCTION_CODE, OMP_CLAUSE_SCHEDULE, OMP_CLAUSE_SCHEDULE_KIND, OMP_CLAUSE_SCHEDULE_LAST, OMP_CLAUSE_SET_MAP_KIND, OMP_CLAUSE_TASK_REDUCTION, and stream_input_location.
Referenced by streamer_read_tree_bitfields().
Unpack all the non-pointer fields of the TS_REAL_CST structure of expression EXPR from bitpack BP.
References bp_unpack_real_value(), r, REAL_VALUE_TYPE, and TREE_REAL_CST_PTR.
Referenced by streamer_read_tree_bitfields().
|
static |
Unpack all the non-pointer fields of the TS_TRANSLATION_UNIT_DECL structure of expression EXPR from bitpack BP.
References all_translation_units, bp_unpack_string(), TRANSLATION_UNIT_LANGUAGE, and vec_safe_push().
Referenced by streamer_read_tree_bitfields().
Unpack all the non-pointer fields of the TS_TYPE_COMMON structure of expression EXPR from bitpack BP.
References AGGREGATE_TYPE_P, bp_unpack_machine_mode(), bp_unpack_value(), bp_unpack_var_len_unsigned(), compute_array_mode(), compute_record_mode(), FUNC_OR_METHOD_TYPE_P, gcc_unreachable, RECORD_OR_UNION_TYPE_P, SET_TYPE_ALIGN, SET_TYPE_MODE, targetm, TREE_CODE, TYPE_ALIGN, TYPE_CXX_ODR_P, TYPE_EMPTY_P, TYPE_FINAL_P, TYPE_INCLUDES_FLEXARRAY, TYPE_LANG_FLAG_0, TYPE_MODE, TYPE_NO_NAMED_ARGS_STDARG_P, TYPE_NONALIASED_COMPONENT, TYPE_PACKED, TYPE_PRECISION_RAW, TYPE_READONLY, TYPE_RESTRICT, TYPE_STRING_FLAG, TYPE_TRANSPARENT_AGGR, TYPE_TYPELESS_STORAGE, and TYPE_USER_ALIGN.
Referenced by streamer_read_tree_bitfields().