Lines Matching refs:rdr

53 process_ctf_typedef(reader *rdr,
58 process_ctf_base_type(reader *rdr,
63 build_ir_node_for_variadic_parameter_type(reader &rdr,
67 process_ctf_function_type(reader *rdr,
72 process_ctf_sou_members(reader *rdr,
78 process_ctf_forward_type(reader *rdr,
83 process_ctf_struct_type(reader *rdr,
88 process_ctf_union_type(reader *rdr,
93 process_ctf_array_type(reader *rdr,
98 process_ctf_qualified_type(reader *rdr,
103 process_ctf_pointer_type(reader *rdr,
108 process_ctf_enum_type(reader *rdr,
711 /// @param rdr the read context.
718 process_ctf_typedef(reader *rdr,
722 corpus_sptr corp = rdr->corpus();
723 translation_unit_sptr tunit = rdr->cur_transl_unit();
731 if (corpus_sptr corp = rdr->should_reuse_type_from_corpus_group())
735 type_base_sptr utype = rdr->build_type(ctf_dictionary, ctf_utype);
741 (rdr->lookup_type(ctf_dictionary, ctf_type));
762 rdr->add_type(ctf_dictionary, ctf_type, result);
771 /// @param rdr the read context.
778 process_ctf_base_type(reader *rdr,
782 corpus_sptr corp = rdr->corpus();
783 translation_unit_sptr tunit = rdr->cur_transl_unit();
804 type_base_sptr void_type = rdr->env().get_void_type();
811 if (corpus_sptr corp = rdr->should_reuse_type_from_corpus_group())
823 result.reset(new type_decl(rdr->env(),
835 rdr->add_type(ctf_dictionary, ctf_type, result);
843 /// @param rdr the read context to use.
847 build_ir_node_for_variadic_parameter_type(reader &rdr,
851 const ir::environment& env = rdr.env();
862 /// @param rdr the read context.
869 process_ctf_function_type(reader *rdr,
873 corpus_sptr corp = rdr->corpus();
874 translation_unit_sptr tunit = rdr->cur_transl_unit();
884 type_base_sptr ret_type = rdr->build_type(ctf_dictionary, ctf_ret_type);
899 type_base_sptr arg_type = rdr->build_type(ctf_dictionary, ctf_arg_type);
914 is_type(build_ir_node_for_variadic_parameter_type(*rdr, tunit));
925 (rdr->lookup_type(ctf_dictionary, ctf_type));
941 rdr->add_type(ctf_dictionary, ctf_type, result);
949 /// @param rdr the read context.
955 process_ctf_sou_members(reader *rdr,
960 corpus_sptr corp = rdr->corpus();
961 translation_unit_sptr tunit = rdr->cur_transl_unit();
981 type_base_sptr member_type = rdr->build_type(ctf_dictionary,
1006 /// @param rdr the read context.
1012 process_ctf_forward_type(reader *rdr,
1016 translation_unit_sptr tunit = rdr->cur_transl_unit();
1026 union_fwd(new union_decl(rdr->env(),
1038 if (corpus_sptr corp = rdr->should_reuse_type_from_corpus_group())
1043 struct_fwd(new class_decl(rdr->env(), type_name,
1057 rdr->add_type(ctf_dictionary, ctf_type, is_type(result));
1064 /// @param rdr the read context.
1071 process_ctf_struct_type(reader *rdr,
1075 corpus_sptr corp = rdr->corpus();
1076 translation_unit_sptr tunit = rdr->cur_transl_unit();
1083 if (corpus_sptr corp = rdr->should_reuse_type_from_corpus_group())
1088 result.reset(new class_decl(rdr->env(),
1105 rdr->add_type(ctf_dictionary, ctf_type, result);
1110 process_ctf_sou_members(rdr, ctf_dictionary, ctf_type, result);
1117 /// @param rdr the read context.
1124 process_ctf_union_type(reader *rdr,
1128 corpus_sptr corp = rdr->corpus();
1129 translation_unit_sptr tunit = rdr->cur_transl_unit();
1136 if (corpus_sptr corp = rdr->should_reuse_type_from_corpus_group())
1141 result.reset(new union_decl(rdr->env(),
1156 rdr->add_type(ctf_dictionary, ctf_type, result);
1161 process_ctf_sou_members(rdr, ctf_dictionary, ctf_type, result);
1168 /// @param rdr the read context.
1179 build_array_ctf_range(reader *rdr, ctf_dict_t *dic,
1183 corpus_sptr corp = rdr->corpus();
1184 translation_unit_sptr tunit = rdr->cur_transl_unit();
1189 type_base_sptr index_type = rdr->build_type(dic, index);
1200 subrange.reset(new array_type_def::subrange_type(rdr->env(),
1219 /// @param rdr the read context.
1227 process_ctf_array_type(reader *rdr,
1231 corpus_sptr corp = rdr->corpus();
1232 translation_unit_sptr tunit = rdr->cur_transl_unit();
1256 subrange = build_array_ctf_range(rdr, ctf_dictionary,
1267 type_base_sptr element_type = rdr->build_type(ctf_dictionary,
1273 type_base_sptr index_type = rdr->build_type(ctf_dictionary,
1279 (rdr->lookup_type(ctf_dictionary, ctf_type));
1283 subrange = build_array_ctf_range(rdr, ctf_dictionary,
1293 rdr->add_type(ctf_dictionary, ctf_type, result);
1358 /// @param rdr the read context.
1363 process_ctf_qualified_type(reader *rdr,
1367 corpus_sptr corp = rdr->corpus();
1368 translation_unit_sptr tunit = rdr->cur_transl_unit();
1372 type_base_sptr utype = rdr->build_type(ctf_dictionary, ctf_utype);
1377 (rdr->lookup_type(ctf_dictionary, ctf_type));
1407 rdr->add_type(ctf_dictionary, ctf_type, result);
1415 /// @param rdr the read context.
1422 process_ctf_pointer_type(reader *rdr,
1426 corpus_sptr corp = rdr->corpus();
1427 translation_unit_sptr tunit = rdr->cur_transl_unit();
1433 type_base_sptr target_type = rdr->build_type(ctf_dictionary,
1439 (rdr->lookup_type(ctf_dictionary, ctf_type));
1450 rdr->add_type(ctf_dictionary, ctf_type, result);
1458 /// @param rdr the read context.
1465 process_ctf_enum_type(reader *rdr,
1469 translation_unit_sptr tunit = rdr->cur_transl_unit();
1477 if (corpus_sptr corp = rdr->should_reuse_type_from_corpus_group())
1492 utype.reset(new type_decl(rdr->env(),
1525 rdr->add_type(ctf_dictionary, ctf_type, result);
1631 /// @param rdr the context to re-initialize.
1647 reset_reader(elf_based_reader& rdr,
1651 ctf::reader& r = dynamic_cast<reader&>(rdr);