23#ifndef GCC_LTO_STREAMER_H
24#define GCC_LTO_STREAMER_H
26#include "plugin-api.h"
124#define LTO_major_version GCC_major_version
125#define LTO_minor_version 0
516 unsigned HOST_WIDE_INT
off;
579 return htab_hash_pointer (s->fn_decl);
585 return a->fn_decl ==
b->fn_decl;
664 unsigned HOST_WIDE_INT
id;
702 return linemap_id + file_data->
order;
771 hashval_t
r = ds->
len;
774 for (
i = 0;
i < ds->
len;
i++)
775 r =
r * 67 + (
unsigned)ds->
s[
i] - 113;
785 return memcmp (ds1->
s, ds2->
s, ds1->
len) == 0;
894 const char *,
int,
size_t *,
895 bool decompress =
false);
901 const char *,
int,
size_t *);
904 const char *,
const char *,
size_t,
905 bool decompress =
false);
908 const char *,
const char *,
size_t);
911 const char *,
const char *);
924 HOST_WIDE_INT, HOST_WIDE_INT,
975 const char *,
unsigned,
977 bool need_location_cache =
true);
986 unsigned *,
unsigned *,
bool);
1060 struct cl_target_option *);
1064 struct cl_target_option *);
1067 struct bitpack_d *,
struct cl_optimization *);
1070 struct bitpack_d *,
struct cl_optimization *);
1147 if (actual != expected)
1148 internal_error (
"bytecode stream: expected tag %s instead of %s",
1157 if (actual < tag1 || actual > tag2)
1158 internal_error (
"bytecode stream: tag %s is not in the expected range "
1170 encoder->
trees.create (0);
1182 encoder->
trees.release ();
1189 return encoder->
trees.length ();
1197 return encoder->
trees[idx];
1204 return encoder->
nodes.length ();
1208#define LCC_NOT_FOUND (-1)
1264 return encoder->
nodes[ref].node;
Definition lto-streamer.h:844
void save_die_ref(unsigned index, lto_die_ref ref)
Definition lto-streamer-in.cc:1773
auto_vec< lto_pending_origin_ref > pending_origin_refs
Definition lto-streamer.h:866
data_in(lto_file_decl_data *data_for_loc)
Definition lto-streamer.h:871
lto_die_ref_map * die_refs
Definition lto-streamer.h:863
vec< ld_plugin_symbol_resolution_t > globals_resolution
Definition lto-streamer.h:856
lto_location_cache location_cache
Definition lto-streamer.h:869
struct streamer_tree_cache_d * reader_cache
Definition lto-streamer.h:859
unsigned int strings_len
Definition lto-streamer.h:853
struct lto_file_decl_data * file_data
Definition lto-streamer.h:847
void register_origin_refs()
Definition lto-streamer-in.cc:1785
const char * strings
Definition lto-streamer.h:850
Value * get(const Key &k)
Definition hash-map.h:189
hash_map(size_t n=default_hash_map_size, bool ggc=false, bool sanitize_eq_and_hash=true, bool gather_mem_stats=GATHER_STATISTICS CXX_MEM_STAT_INFO)
Definition hash-map.h:138
Definition hash-table.h:375
Definition lto-streamer.h:275
void revert_location_cache()
Definition lto-streamer-in.cc:438
size_t stream_map_idx
Definition lto-streamer.h:335
location_t stream_loc_offset
Definition lto-streamer.h:336
tree stream_block
Definition lto-streamer.h:333
lto_file_decl_data *const decl_data
Definition lto-streamer.h:325
lto_location_cache(lto_file_decl_data *loc_data)
Definition lto-streamer.h:292
unsigned stream_discr
Definition lto-streamer.h:334
auto_vec< cached_location > loc_cache
Definition lto-streamer.h:330
unsigned accepted_length
Definition lto-streamer.h:344
void accept_location_cache()
Definition lto-streamer-in.cc:429
~lto_location_cache()
Definition lto-streamer.h:301
unsigned linemap_offset
Definition lto-streamer.h:327
const lto_loc_map * cur_loc_map
Definition lto-streamer.h:326
void input_location_and_block(location_t *dest, struct bitpack_d *bp, class lto_input_block *ib, class data_in *data_in)
Definition lto-streamer-in.cc:598
bool apply_location_cache()
Definition lto-streamer-in.cc:406
location_t current_loc
Definition lto-streamer.h:340
static lto_location_cache * current_cache
Definition lto-streamer.h:313
void set_linemap_offset(unsigned offset)
Definition lto-streamer.h:290
void input_location(location_t *dest, struct bitpack_d *bp, class data_in *data_in)
Definition lto-streamer-in.cc:677
cached_location current_cloc
Definition lto-streamer.h:339
Definition lra-spills.cc:101
const union tree_node * const_tree
Definition coretypes.h:98
#define GTY(x)
Definition coretypes.h:41
union tree_node * tree
Definition coretypes.h:97
void lto_append_block(struct lto_output_stream *obs)
Definition data-streamer-out.cc:38
void internal_error(const char *,...) ATTRIBUTE_GCC_DIAG(1
void ATTRIBUTE_NORETURN
Definition diagnostic-core.h:76
tree_code
Definition genmatch.cc:1011
gimple_code
Definition gimple.h:34
bool is_a(U *p)
Definition is-a.h:230
T dyn_cast(U *p)
Definition is-a.h:280
void input_offload_tables(bool do_force_output)
Definition lto-cgraph.cc:1935
void input_toplevel_asms(void)
Definition lto-cgraph.cc:1904
lto_symtab_encoder_t compute_ltrans_boundary(lto_symtab_encoder_t in_encoder)
Definition lto-cgraph.cc:877
int lto_symtab_encoder_encode(lto_symtab_encoder_t encoder, toplevel_node *node)
Definition lto-cgraph.cc:107
bool reachable_from_this_partition_p(struct cgraph_node *node, lto_symtab_encoder_t encoder)
Definition lto-cgraph.cc:379
void lto_symtab_encoder_delete(lto_symtab_encoder_t encoder)
Definition lto-cgraph.cc:91
bool referenced_from_other_partition_p(symtab_node *node, lto_symtab_encoder_t encoder)
Definition lto-cgraph.cc:318
bool lto_symtab_encoder_only_for_inlining_p(lto_symtab_encoder_t encoder, struct cgraph_node *node)
Definition lto-cgraph.cc:171
void output_symtab(void)
Definition lto-cgraph.cc:1037
bool lto_symtab_encoder_encode_initializer_p(lto_symtab_encoder_t encoder, varpool_node *node)
Definition lto-cgraph.cc:191
bool lto_symtab_encoder_encode_body_p(lto_symtab_encoder_t encoder, struct cgraph_node *node)
Definition lto-cgraph.cc:181
lto_symtab_encoder_t lto_symtab_encoder_new(bool for_input)
Definition lto-cgraph.cc:77
void input_symtab(void)
Definition lto-cgraph.cc:1847
void select_what_to_stream(void)
Definition lto-cgraph.cc:861
void lto_set_symtab_encoder_in_partition(lto_symtab_encoder_t encoder, toplevel_node *node)
Definition lto-cgraph.cc:225
void output_offload_tables(void)
Definition lto-cgraph.cc:1141
bool lto_symtab_encoder_delete_node(lto_symtab_encoder_t encoder, toplevel_node *node)
Definition lto-cgraph.cc:139
bool reachable_from_other_partition_p(struct cgraph_node *node, lto_symtab_encoder_t encoder)
Definition lto-cgraph.cc:340
bool referenced_from_this_partition_p(symtab_node *node, lto_symtab_encoder_t encoder)
Definition lto-cgraph.cc:364
bool lto_symtab_encoder_in_partition_p(lto_symtab_encoder_t encoder, toplevel_node *node)
Definition lto-cgraph.cc:213
void lto_write_options(void)
Definition lto-opts.cc:60
const char * lto_get_decl_name_mapping(struct lto_file_decl_data *decl_data, const char *name)
Definition lto-section-in.cc:367
void lto_free_raw_section_data(struct lto_file_decl_data *file_data, enum lto_section_type section_type, const char *name, const char *data, size_t len)
Definition lto-section-in.cc:235
const char * lto_get_section_data(struct lto_file_decl_data *file_data, enum lto_section_type section_type, const char *name, int order, size_t *len, bool decompress)
Definition lto-section-in.cc:135
const lto_die_ref * lto_decl_origin_ref_at(const lto_in_decl_state *state, unsigned index)
Definition lto-section-in.cc:397
void lto_record_renamed_decl(struct lto_file_decl_data *decl_data, const char *old_name, const char *new_name)
Definition lto-section-in.cc:342
htab_t lto_create_renaming_table(void)
Definition lto-section-in.cc:333
void lto_set_in_hooks(struct lto_file_decl_data **data, lto_get_section_data_f *get_f, lto_free_section_data_f *free_f)
Definition lto-section-in.cc:76
const char * lto_section_name[LTO_N_SECTION_TYPES]
Definition lto-section-in.cc:35
void lto_free_function_in_decl_state_for_node(symtab_node *node)
Definition lto-section-in.cc:458
void lto_delete_in_decl_state(struct lto_in_decl_state *state)
Definition lto-section-in.cc:417
const char * lto_get_raw_section_data(struct lto_file_decl_data *file_data, enum lto_section_type section_type, const char *name, int order, size_t *len)
Definition lto-section-in.cc:194
void lto_free_function_in_decl_state(struct lto_in_decl_state *state)
Definition lto-section-in.cc:445
struct lto_file_decl_data ** lto_get_file_decl_data(void)
Definition lto-section-in.cc:90
class lto_input_block * lto_create_simple_input_block(struct lto_file_decl_data *file_data, enum lto_section_type section_type, const char **datar, size_t *len)
Definition lto-section-in.cc:250
void lto_value_range_error(const char *purpose, HOST_WIDE_INT val, HOST_WIDE_INT min, HOST_WIDE_INT max)
Definition lto-section-in.cc:489
void lto_destroy_simple_input_block(struct lto_file_decl_data *file_data, enum lto_section_type section_type, class lto_input_block *ib, const char *data, size_t len)
Definition lto-section-in.cc:277
struct lto_in_decl_state * lto_get_function_in_decl_state(struct lto_file_decl_data *file_data, tree func)
Definition lto-section-in.cc:431
struct lto_in_decl_state * lto_new_in_decl_state(void)
Definition lto-section-in.cc:389
void lto_section_overrun(class lto_input_block *ib)
Definition lto-section-in.cc:480
const char * lto_get_summary_section_data(struct lto_file_decl_data *file_data, enum lto_section_type section_type, size_t *len)
Definition lto-section-in.cc:185
void lto_free_section_data(struct lto_file_decl_data *file_data, enum lto_section_type section_type, const char *name, const char *data, size_t len, bool decompress)
Definition lto-section-in.cc:207
struct lto_out_decl_state * lto_get_out_decl_state(void)
Definition lto-section-out.cc:234
struct lto_simple_output_block * lto_create_simple_output_block(enum lto_section_type section_type)
Definition lto-section-out.cc:153
vec< lto_out_decl_state_ptr > lto_function_decl_states
Definition lto-section-out.cc:40
void lto_record_function_out_decl_state(tree fn_decl, struct lto_out_decl_state *state)
Definition lto-section-out.cc:260
struct lto_out_decl_state * lto_new_out_decl_state(void)
Definition lto-section-out.cc:200
void lto_begin_section(const char *name, bool compress)
Definition lto-section-out.cc:66
void lto_write_stream(struct lto_output_stream *obs)
Definition lto-section-out.cc:121
void lto_write_raw_data(const void *data, unsigned int size)
Definition lto-section-out.cc:112
void lto_push_out_decl_state(struct lto_out_decl_state *state)
Definition lto-section-out.cc:242
void lto_destroy_simple_output_block(struct lto_simple_output_block *ob)
Definition lto-section-out.cc:171
struct lto_out_decl_state * lto_pop_out_decl_state(void)
Definition lto-section-out.cc:250
void lto_end_section(void)
Definition lto-section-out.cc:88
void lto_delete_out_decl_state(struct lto_out_decl_state *state)
Definition lto-section-out.cc:218
void lto_write_data(const void *data, unsigned int size)
Definition lto-section-out.cc:101
void lto_free_file_name_hash(void)
Definition lto-streamer-in.cc:2320
tree lto_input_tree(class lto_input_block *ib, class data_in *data_in)
Definition lto-streamer-in.cc:2073
void lto_input_mode_table(struct lto_file_decl_data *file_data)
Definition lto-streamer-in.cc:2149
tree lto_input_tree_ref(class lto_input_block *ib, class data_in *data_in, struct function *fn, enum LTO_tags tag)
Definition lto-streamer-in.cc:698
hashval_t lto_input_scc(class lto_input_block *ib, class data_in *data_in, unsigned *len, unsigned *entry_len, bool shared_scc)
Definition lto-streamer-in.cc:1929
void lto_data_in_delete(class data_in *data_in)
Definition lto-streamer-in.cc:2358
tree lto_input_tree_1(class lto_input_block *ib, class data_in *data_in, enum LTO_tags tag, hashval_t hash)
Definition lto-streamer-in.cc:2019
tree lto_input_var_decl_ref(lto_input_block *ib, lto_file_decl_data *file_data)
Definition lto-streamer-in.cc:725
class data_in * lto_data_in_create(struct lto_file_decl_data *file_data, const char *strings, unsigned len, vec< ld_plugin_symbol_resolution_t > resolutions, bool need_location_cache)
Definition lto-streamer-in.cc:2340
void lto_reader_init(void)
Definition lto-streamer-in.cc:2307
void lto_input_variable_constructor(struct lto_file_decl_data *file_data, struct varpool_node *node, const char *data)
Definition lto-streamer-in.cc:1759
tree lto_input_fn_decl_ref(lto_input_block *ib, lto_file_decl_data *file_data)
Definition lto-streamer-in.cc:737
void lto_input_function_body(struct lto_file_decl_data *file_data, struct cgraph_node *node, const char *data)
Definition lto-streamer-in.cc:1749
void lto_input_location(location_t *loc, struct bitpack_d *bp, class data_in *data_in)
Definition lto-streamer-in.cc:684
void lto_input_toplevel_asms(struct lto_file_decl_data *file_data, int order_base)
Definition lto-streamer-in.cc:2108
void lto_init_eh(void)
Definition lto-streamer-in.cc:953
vec< dref_entry > dref_queue
Definition lto-streamer-in.cc:1768
void lto_input_data_block(class lto_input_block *ib, void *addr, size_t length)
Definition lto-streamer-in.cc:131
void lto_tag_check_set(enum LTO_tags actual, int ntags,...)
Definition lto-streamer-in.cc:110
tree stream_read_tree_ref(lto_input_block *ib, data_in *data_in, int *ref)
Definition lto-streamer-in.cc:1991
void lto_output_fn_decl_ref(struct lto_out_decl_state *decl_state, struct lto_output_stream *obs, tree decl)
Definition lto-streamer-out.cc:548
void lto_output_init_mode_table(void)
Definition lto-streamer-out.cc:3601
void lto_output(void)
Definition lto-streamer-out.cc:3104
void lto_prepare_function_for_streaming(struct cgraph_node *node)
Definition lto-streamer-out.cc:2568
void lto_copy_linemaps()
Definition lto-streamer-out.cc:2999
void produce_asm_for_decls(void)
Definition lto-streamer-out.cc:3700
struct output_block * create_output_block(enum lto_section_type section_type)
Definition lto-streamer-out.cc:75
bool lto_variably_modified_type_p(tree type)
Definition lto-streamer-out.cc:131
void produce_asm(struct output_block *ob)
Definition lto-streamer-out.cc:2484
void lto_output_location_and_block(struct output_block *ob, struct bitpack_d *bp, location_t loc)
Definition lto-streamer-out.cc:473
void lto_output_location(struct output_block *ob, struct bitpack_d *bp, location_t loc)
Definition lto-streamer-out.cc:461
void lto_output_toplevel_asms(lto_symtab_encoder_t encoder)
Definition lto-streamer-out.cc:2769
void lto_output_tree(struct output_block *ob, tree expr, bool ref_p, bool this_ref_p)
Definition lto-streamer-out.cc:2029
void destroy_output_block(struct output_block *ob)
Definition lto-streamer-out.cc:107
void lto_output_var_decl_ref(struct lto_out_decl_state *decl_state, struct lto_output_stream *obs, tree decl)
Definition lto-streamer-out.cc:535
void lto_register_linemap_for_output(size_t map_idx, unsigned linemap_id)
Definition lto-streamer-out.cc:3096
void lto_output_decl_state_streams(struct output_block *ob, struct lto_out_decl_state *state)
Definition lto-streamer-out.cc:3290
void lto_output_decl_state_refs(struct output_block *ob, struct lto_out_decl_state *state)
Definition lto-streamer-out.cc:3304
void stream_write_tree_ref(struct output_block *ob, tree t)
Definition lto-streamer-out.cc:657
void lto_check_version(int major, int minor, const char *file_name)
Definition lto-streamer.cc:269
const char * lto_tag_name(enum LTO_tags tag)
Definition lto-streamer.cc:47
void lto_streamer_hooks_init(void)
Definition lto-streamer.cc:284
FILE * streamer_dump_file
Definition lto-streamer.cc:42
char * lto_get_section_name(int section_type, const char *name, int node_order, struct lto_file_decl_data *f)
Definition lto-streamer.cc:103
struct lto_stats_d lto_stats
Definition lto-streamer.cc:36
bool lto_stream_offload_p
Definition lto-streamer.cc:40
void lto_streamer_init(void)
Definition lto-streamer.cc:245
bool gate_lto_out(void)
Definition lto-streamer.cc:259
void print_lto_report(const char *s)
Definition lto-streamer.cc:164
void lsei_next(lto_symtab_encoder_iterator *lsei)
Definition lto-streamer.h:1230
void cl_optimization_stream_out(struct output_block *, struct bitpack_d *, struct cl_optimization *)
struct lto_symtab_encoder_d * lto_symtab_encoder_t
Definition lto-streamer.h:492
struct lto_out_decl_state * lto_out_decl_state_ptr
Definition lto-streamer.h:617
lto_symtab_encoder_iterator lsei_start_in_partition(lto_symtab_encoder_t encoder)
Definition lto-streamer.h:1290
void lto_input_cgraph(struct lto_file_decl_data *, const char *)
enum tree_code lto_tag_to_tree_code(enum LTO_tags tag)
Definition lto-streamer.h:1137
lto_symtab_encoder_iterator lsei_start_variable_in_partition(lto_symtab_encoder_t encoder)
Definition lto-streamer.h:1341
struct lto_file_decl_data * lto_file_decl_data_ptr
Definition lto-streamer.h:705
void cl_optimization_stream_in(class data_in *, struct bitpack_d *, struct cl_optimization *)
void lsei_next_function_in_partition(lto_symtab_encoder_iterator *lsei)
Definition lto-streamer.h:1304
void lto_free_section_data_f(struct lto_file_decl_data *, enum lto_section_type, const char *, const char *, size_t)
Definition lto-streamer.h:256
void lto_tag_check(enum LTO_tags actual, enum LTO_tags expected)
Definition lto-streamer.h:1145
struct lto_in_decl_state * lto_in_decl_state_ptr
Definition lto-streamer.h:572
tree lto_tree_ref_encoder_get_tree(struct lto_tree_ref_encoder *encoder, unsigned int idx)
Definition lto-streamer.h:1194
lto_symtab_encoder_iterator lsei_start_function_in_partition(lto_symtab_encoder_t encoder)
Definition lto-streamer.h:1315
enum gimple_code lto_tag_to_gimple_code(enum LTO_tags tag)
Definition lto-streamer.h:1118
LTO_tags
Definition lto-streamer.h:134
@ LTO_ert_allowed_exceptions
Definition lto-streamer.h:183
@ LTO_tree_scc
Definition lto-streamer.h:152
@ LTO_ert_try
Definition lto-streamer.h:182
@ LTO_bb1
Definition lto-streamer.h:169
@ LTO_eh_catch
Definition lto-streamer.h:190
@ LTO_NUM_TAGS
Definition lto-streamer.h:193
@ LTO_global_stream_ref
Definition lto-streamer.h:147
@ LTO_ert_must_not_throw
Definition lto-streamer.h:184
@ LTO_tree_pickle_reference
Definition lto-streamer.h:138
@ LTO_null
Definition lto-streamer.h:135
@ LTO_bb0
Definition lto-streamer.h:168
@ LTO_eh_region
Definition lto-streamer.h:172
@ LTO_ssa_name_ref
Definition lto-streamer.h:149
@ LTO_trees
Definition lto-streamer.h:155
@ LTO_first_tree_tag
Definition lto-streamer.h:162
@ LTO_function
Definition lto-streamer.h:175
@ LTO_first_gimple_tag
Definition lto-streamer.h:165
@ LTO_eh_landing_pad
Definition lto-streamer.h:187
@ LTO_integer_cst
Definition lto-streamer.h:158
@ LTO_eh_table
Definition lto-streamer.h:178
@ LTO_ert_cleanup
Definition lto-streamer.h:181
enum ld_plugin_symbol_resolution ld_plugin_symbol_resolution_t
Definition lto-streamer.h:239
bool lsei_end_p(lto_symtab_encoder_iterator lsei)
Definition lto-streamer.h:1223
toplevel_node * lto_symtab_encoder_deref(lto_symtab_encoder_t encoder, int ref)
Definition lto-streamer.h:1259
unsigned lto_linemap_output_id(unsigned linemap_id, const lto_file_decl_data *file_data)
Definition lto-streamer.h:700
bool lto_origin_ref_node_p(const_tree t)
Definition lto-streamer.h:543
void cl_target_option_stream_out(struct output_block *, struct bitpack_d *, struct cl_target_option *)
void lsei_next_in_partition(lto_symtab_encoder_iterator *lsei)
Definition lto-streamer.h:1280
lto_decl_stream_e_t
Definition lto-streamer.h:234
@ LTO_N_DECL_STREAMS
Definition lto-streamer.h:236
@ LTO_DECL_STREAM
Definition lto-streamer.h:235
lto_section_type
Definition lto-streamer.h:204
@ LTO_section_offload_table
Definition lto-streamer.h:222
@ LTO_section_symtab
Definition lto-streamer.h:208
@ LTO_section_decls
Definition lto-streamer.h:205
@ LTO_section_cgraph_opt_sum
Definition lto-streamer.h:218
@ LTO_section_linemap
Definition lto-streamer.h:228
@ LTO_section_jump_functions
Definition lto-streamer.h:212
@ LTO_section_ipa_modref
Definition lto-streamer.h:227
@ LTO_section_ipa_fn_summary
Definition lto-streamer.h:219
@ LTO_section_ipcp_transform
Definition lto-streamer.h:220
@ LTO_section_ipa_pure_const
Definition lto-streamer.h:213
@ LTO_section_lto
Definition lto-streamer.h:224
@ LTO_section_symtab_extension
Definition lto-streamer.h:209
@ LTO_section_symtab_nodes
Definition lto-streamer.h:216
@ LTO_section_ipa_sra
Definition lto-streamer.h:225
@ LTO_section_ipa_profile
Definition lto-streamer.h:215
@ LTO_section_static_initializer
Definition lto-streamer.h:207
@ LTO_section_odr_types
Definition lto-streamer.h:226
@ LTO_section_refs
Definition lto-streamer.h:210
@ LTO_section_opts
Definition lto-streamer.h:217
@ LTO_section_mode_table
Definition lto-streamer.h:223
@ LTO_section_asm
Definition lto-streamer.h:211
@ LTO_section_ipa_reference
Definition lto-streamer.h:214
@ LTO_N_SECTION_TYPES
Definition lto-streamer.h:229
@ LTO_section_function_body
Definition lto-streamer.h:206
@ LTO_section_ipa_icf
Definition lto-streamer.h:221
lto_symtab_encoder_iterator lsei_start(lto_symtab_encoder_t encoder)
Definition lto-streamer.h:1269
int lto_symtab_encoder_size(lto_symtab_encoder_t encoder)
Definition lto-streamer.h:1202
void lto_input_constructors_and_inits(struct lto_file_decl_data *, const char *)
void lto_init_tree_ref_encoder(struct lto_tree_ref_encoder *encoder)
Definition lto-streamer.h:1167
bool lto_tag_is_gimple_code_p(enum LTO_tags tag)
Definition lto-streamer.h:1098
bool lto_tag_is_tree_code_p(enum LTO_tags tag)
Definition lto-streamer.h:1090
void lto_tag_check_range(enum LTO_tags actual, enum LTO_tags tag1, enum LTO_tags tag2)
Definition lto-streamer.h:1154
enum LTO_tags lto_tree_code_to_tag(enum tree_code code)
Definition lto-streamer.h:1128
unsigned int lto_tree_ref_encoder_size(struct lto_tree_ref_encoder *encoder)
Definition lto-streamer.h:1187
void lsei_next_variable_in_partition(lto_symtab_encoder_iterator *lsei)
Definition lto-streamer.h:1330
lto_origin_ref_kind
Definition lto-streamer.h:531
@ LTO_ORIGIN_REF_DIE
Definition lto-streamer.h:538
@ LTO_ORIGIN_REF_NONE
Definition lto-streamer.h:536
@ LTO_ORIGIN_REF_TREE
Definition lto-streamer.h:533
enum LTO_tags lto_gimple_code_to_tag(enum gimple_code code)
Definition lto-streamer.h:1109
hash_map< int_hash< unsigned, UINT_MAX >, lto_die_ref > lto_die_ref_map
Definition lto-streamer.h:549
toplevel_node * lsei_node(lto_symtab_encoder_iterator lsei)
Definition lto-streamer.h:1237
lto_compression
Definition lto-streamer.h:369
@ ZSTD
Definition lto-streamer.h:371
@ ZLIB
Definition lto-streamer.h:370
void cl_target_option_stream_in(class data_in *, struct bitpack_d *, struct cl_target_option *)
varpool_node * lsei_varpool_node(lto_symtab_encoder_iterator lsei)
Definition lto-streamer.h:1251
#define LCC_NOT_FOUND
Definition lto-streamer.h:1208
void lto_destroy_tree_ref_encoder(struct lto_tree_ref_encoder *encoder)
Definition lto-streamer.h:1177
void lto_register_decl_definition(tree, struct lto_file_decl_data *)
struct cgraph_node * lsei_cgraph_node(lto_symtab_encoder_iterator lsei)
Definition lto-streamer.h:1244
unsigned char lto_decl_flags_t
Definition lto-streamer.h:127
int lto_symtab_encoder_lookup(lto_symtab_encoder_t encoder, toplevel_node *node)
Definition lto-streamer.h:1214
const char * lto_get_section_data_f(struct lto_file_decl_data *, enum lto_section_type, const char *, int, size_t *)
Definition lto-streamer.h:247
Definition custom-sarif-properties/state-graphs.h:33
poly_int< N, C > r
Definition poly-int.h:774
i
Definition poly-int.h:776
Ca const poly_int< N, Cb > & b
Definition poly-int.h:771
Ca & a
Definition poly-int.h:770
Definition data-streamer.h:35
Definition lto-streamer.h:575
static bool equal(lto_in_decl_state *a, lto_in_decl_state *b)
Definition lto-streamer.h:583
static hashval_t hash(lto_in_decl_state *s)
Definition lto-streamer.h:577
Definition lto-streamer.h:1355
tree decl
Definition lto-streamer.h:1356
unsigned HOST_WIDE_INT off
Definition lto-streamer.h:1358
const char * sym
Definition lto-streamer.h:1357
Definition function.h:249
Definition hash-traits.h:321
Definition hash-traits.h:122
Definition lto-streamer.h:708
char * ptr
Definition lto-streamer.h:709
Definition lto-streamer.h:521
lto_die_ref ref
Definition lto-streamer.h:523
unsigned index
Definition lto-streamer.h:522
Definition lto-streamer.h:514
unsigned HOST_WIDE_INT off
Definition lto-streamer.h:516
const char * sym
Definition lto-streamer.h:515
lto_encoder_entry(toplevel_node *n)
Definition lto-streamer.h:462
unsigned int body
Definition lto-streamer.h:472
unsigned int in_partition
Definition lto-streamer.h:470
unsigned int only_for_inlining
Definition lto-streamer.h:474
unsigned int initializer
Definition lto-streamer.h:478
Definition lto-streamer.h:634
htab_t section_hash_table
Definition lto-streamer.h:652
unsigned mode_bits
Definition lto-streamer.h:685
unsigned max_index
Definition lto-streamer.h:668
vec< res_pair > respairs
Definition lto-streamer.h:667
struct lto_file_decl_data * next
Definition lto-streamer.h:658
lto_file_decl_data * loc_map_decl_data
Definition lto-streamer.h:693
struct lto_in_decl_state * global_decl_state
Definition lto-streamer.h:640
gcov_summary profile_info
Definition lto-streamer.h:670
int order
Definition lto-streamer.h:661
htab_t renaming_hash_table
Definition lto-streamer.h:655
unsigned HOST_WIDE_INT id
Definition lto-streamer.h:664
const char * file_name
Definition lto-streamer.h:649
vec< lto_loc_map *, va_gc > * loc_maps
Definition lto-streamer.h:694
lto_section lto_section_header
Definition lto-streamer.h:679
int order_base
Definition lto-streamer.h:681
unsigned num_linemap_sections
Definition lto-streamer.h:690
const unsigned char * mode_table
Definition lto-streamer.h:676
hash_map< tree, ld_plugin_symbol_resolution > * resolution_map
Definition lto-streamer.h:673
int unit_base
Definition lto-streamer.h:683
struct lto_in_decl_state * current_decl_state
Definition lto-streamer.h:636
hash_table< decl_state_hasher > * function_decl_states
Definition lto-streamer.h:646
lto_symtab_encoder_t symtab_node_encoder
Definition lto-streamer.h:643
Definition lto-streamer.h:553
bool compressed
Definition lto-streamer.h:565
tree fn_decl
Definition lto-streamer.h:562
vec< lto_decl_origin_ref, va_gc > * origin_refs
Definition lto-streamer.h:558
vec< tree, va_gc > * streams[LTO_N_DECL_STREAMS]
Definition lto-streamer.h:555
unsigned linemap_id
Definition lto-streamer.h:569
Definition lto-streamer.h:265
size_t map[1]
Definition lto-streamer.h:267
size_t nmaps
Definition lto-streamer.h:266
Definition lto-streamer.h:317
tree block
Definition lto-streamer.h:320
unsigned discr
Definition lto-streamer.h:321
location_t loc
Definition lto-streamer.h:319
location_t * dest
Definition lto-streamer.h:318
Definition lto-streamer.h:592
lto_symtab_encoder_t symtab_node_encoder
Definition lto-streamer.h:600
bool compressed
Definition lto-streamer.h:607
vec< lto_decl_origin_ref > origin_refs
Definition lto-streamer.h:597
tree fn_decl
Definition lto-streamer.h:604
bool output_offload_tables_p
Definition lto-streamer.h:610
unsigned linemap_id
Definition lto-streamer.h:614
struct lto_tree_ref_encoder streams[LTO_N_DECL_STREAMS]
Definition lto-streamer.h:595
Definition lto-streamer.h:717
struct lto_char_ptr_base * current_block
Definition lto-streamer.h:722
unsigned int total_size
Definition lto-streamer.h:734
unsigned int block_size
Definition lto-streamer.h:731
unsigned int left_in_block
Definition lto-streamer.h:728
char * current_pointer
Definition lto-streamer.h:725
struct lto_char_ptr_base * first_block
Definition lto-streamer.h:719
Definition lto-streamer.h:835
int origin
Definition lto-streamer.h:838
lto_die_ref ref
Definition lto-streamer.h:839
unsigned index
Definition lto-streamer.h:836
Definition lto-streamer.h:378
uint16_t flags
Definition lto-streamer.h:385
unsigned char _padding
Definition lto-streamer.h:382
int16_t minor_version
Definition lto-streamer.h:380
unsigned char slim_object
Definition lto-streamer.h:381
int16_t major_version
Definition lto-streamer.h:379
lto_compression get_compression()
Definition lto-streamer.h:394
void set_compression(lto_compression c)
Definition lto-streamer.h:388
Definition lto-streamer.h:740
struct lto_output_stream * main_stream
Definition lto-streamer.h:745
enum lto_section_type section_type
Definition lto-streamer.h:741
struct lto_out_decl_state * decl_state
Definition lto-streamer.h:742
Definition lto-streamer.h:441
unsigned HOST_WIDE_INT num_pickle_refs_output
Definition lto-streamer.h:455
unsigned HOST_WIDE_INT num_input_cgraph_nodes
Definition lto-streamer.h:442
unsigned HOST_WIDE_INT num_output_il_bytes
Definition lto-streamer.h:450
unsigned HOST_WIDE_INT num_input_files
Definition lto-streamer.h:444
unsigned HOST_WIDE_INT num_compressed_il_bytes
Definition lto-streamer.h:451
unsigned HOST_WIDE_INT num_output_files
Definition lto-streamer.h:445
unsigned HOST_WIDE_INT num_trees[NUM_TREE_CODES]
Definition lto-streamer.h:449
unsigned HOST_WIDE_INT num_function_bodies
Definition lto-streamer.h:448
unsigned HOST_WIDE_INT num_input_il_bytes
Definition lto-streamer.h:452
unsigned HOST_WIDE_INT section_size[LTO_N_SECTION_TYPES]
Definition lto-streamer.h:447
unsigned HOST_WIDE_INT num_uncompressed_il_bytes
Definition lto-streamer.h:453
unsigned HOST_WIDE_INT num_cgraph_partitions
Definition lto-streamer.h:446
unsigned HOST_WIDE_INT num_output_symtab_nodes
Definition lto-streamer.h:443
unsigned HOST_WIDE_INT num_tree_bodies_output
Definition lto-streamer.h:454
Definition lto-streamer.h:484
hash_map< toplevel_node *, size_t > * map
Definition lto-streamer.h:486
hash_map< int_hash< int, -1, -2 >, int > * order_remap
Definition lto-streamer.h:489
vec< lto_encoder_entry > nodes
Definition lto-streamer.h:485
Definition lto-streamer.h:496
lto_symtab_encoder_t encoder
Definition lto-streamer.h:497
unsigned index
Definition lto-streamer.h:498
Definition lto-streamer.h:506
hash_map< tree, unsigned > * tree_hash_table
Definition lto-streamer.h:507
vec< tree > trees
Definition lto-streamer.h:508
Definition hash-traits.h:303
Definition lto-streamer.h:793
unsigned current_discr
Definition lto-streamer.h:817
struct obstack obstack
Definition lto-streamer.h:830
struct lto_output_stream * cfg_stream
Definition lto-streamer.h:804
struct lto_output_stream * string_stream
Definition lto-streamer.h:801
enum lto_section_type section_type
Definition lto-streamer.h:794
hash_set< tree > * local_trees
Definition lto-streamer.h:826
size_t current_map_idx
Definition lto-streamer.h:818
tree current_block
Definition lto-streamer.h:816
location_t current_loc_offset
Definition lto-streamer.h:819
struct lto_out_decl_state * decl_state
Definition lto-streamer.h:795
hash_table< string_slot_hasher > * string_hash_table
Definition lto-streamer.h:808
symtab_node * symbol
Definition lto-streamer.h:812
unsigned current_linemap_id
Definition lto-streamer.h:820
struct streamer_tree_cache_d * writer_cache
Definition lto-streamer.h:823
struct lto_output_stream * main_stream
Definition lto-streamer.h:798
Definition lto-streamer.h:623
ld_plugin_symbol_resolution_t res
Definition lto-streamer.h:624
unsigned index
Definition lto-streamer.h:625
Definition tree-streamer.h:47
Definition lto-streamer.h:760
static bool equal(const string_slot *, const string_slot *)
Definition lto-streamer.h:782
static hashval_t hash(const string_slot *)
Definition lto-streamer.h:769
Definition lto-streamer.h:751
int len
Definition lto-streamer.h:753
unsigned int slot_num
Definition lto-streamer.h:754
const char * s
Definition lto-streamer.h:752
#define NULL
Definition system.h:55
#define gcc_assert(EXPR)
Definition system.h:758
#define true
Definition system.h:831
#define false
Definition system.h:832
#define STATIC_ASSERT(X)
Definition system.h:808
@ MAX_TREE_CODES
Definition tree-core.h:157
#define NUM_TREE_CODES
Definition tree-core.h:164
#define TREE_CODE(NODE)
Definition tree.h:327
#define NULL_TREE
Definition tree.h:320