GCC Middle and Back End API Reference
lang_hooks Struct Reference

#include <langhooks.h>

Collaboration diagram for lang_hooks:

Data Fields

const char * name
size_t identifier_size
void(* free_lang_data )(tree)
size_t(* tree_size )(enum tree_code)
unsigned int(* option_lang_mask )(void)
void(* init_options_struct )(struct gcc_options *opts)
void(* init_options )(unsigned int decoded_options_count, struct cl_decoded_option *decoded_options)
void(* initialize_diagnostics )(diagnostic_context *)
bool(* complain_wrong_lang_p )(const struct cl_option *option)
bool(* handle_option )(size_t code, const char *arg, int value, int kind, location_t loc, const struct cl_option_handlers *handlers)
bool(* post_options )(const char **)
bool(* init )(void)
void(* finish )(void)
void(* parse_file )(void)
bool(* missing_noreturn_ok_p )(tree)
alias_set_type(* get_alias_set )(tree)
void(* finish_incomplete_decl )(tree)
void(* dup_lang_specific_decl )(tree)
void(* set_decl_assembler_name )(tree)
void(* print_statistics )(void)
lang_print_tree_hook print_xnode
lang_print_tree_hook print_decl
lang_print_tree_hook print_type
lang_print_tree_hook print_identifier
const char *(* decl_printable_name )(tree decl, int verbosity)
const char *(* dwarf_name )(tree, int verbosity)
int(* types_compatible_p )(tree x, tree y)
void(* print_error_function )(diagnostic_context *, const char *, struct diagnostic_info *)
HOST_WIDE_INT(* to_target_charset )(HOST_WIDE_INT)
struct attribute_specattribute_table
struct attribute_speccommon_attribute_table
struct attribute_specformat_attribute_table
struct lang_hooks_for_tree_inlining tree_inlining
struct lang_hooks_for_tree_dump tree_dump
struct lang_hooks_for_decls decls
struct lang_hooks_for_types types
struct lang_hooks_for_lto lto
tree(* get_innermost_generic_parms )(const_tree)
tree(* get_innermost_generic_args )(const_tree)
bool(* function_parameter_pack_p )(const_tree)
int(* gimplify_expr )(tree *, gimple_seq *, gimple_seq *)
tree(* builtin_function )(tree decl)
tree(* builtin_function_ext_scope )(tree decl)
void(* init_ts )(void)
tree(* expr_to_decl )(tree expr, bool *tc, bool *se)
tree(* eh_personality )(void)
tree(* eh_runtime_type )(tree)
tree(* eh_protect_cleanup_actions )(void)
bool(* block_may_fallthru )(const_tree)
bool eh_use_cxa_end_cleanup
bool deep_unsharing

Detailed Description

Language-specific hooks.  See langhooks-def.h for defaults.   

Field Documentation

struct attribute_spec* lang_hooks::attribute_table

Referenced by init_attributes().

bool(* lang_hooks::block_may_fallthru)(const_tree)

Referenced by block_may_fallthru().

tree(* lang_hooks::builtin_function)(tree decl)

Referenced by add_builtin_function().

tree(* lang_hooks::builtin_function_ext_scope)(tree decl)
struct attribute_spec* lang_hooks::common_attribute_table

Referenced by init_attributes().

bool(* lang_hooks::complain_wrong_lang_p)(const struct cl_option *option)

Referenced by complain_wrong_lang().

bool lang_hooks::deep_unsharing

Referenced by unshare_body().

const char*(* lang_hooks::dwarf_name)(tree, int verbosity)
tree(* lang_hooks::eh_personality)(void)
tree(* lang_hooks::eh_protect_cleanup_actions)(void)
tree(* lang_hooks::eh_runtime_type)(tree)

Referenced by add_type_for_runtime().

bool lang_hooks::eh_use_cxa_end_cleanup

Referenced by gen_eh_region().

tree(* lang_hooks::expr_to_decl)(tree expr, bool *tc, bool *se)
void(* lang_hooks::finish)(void)

Referenced by finalize().

void(* lang_hooks::finish_incomplete_decl)(tree)
struct attribute_spec* lang_hooks::format_attribute_table

Referenced by init_attributes().

void(* lang_hooks::free_lang_data)(tree)
bool(* lang_hooks::function_parameter_pack_p)(const_tree)
alias_set_type(* lang_hooks::get_alias_set)(tree)

Referenced by get_alias_set().

tree(* lang_hooks::get_innermost_generic_args)(const_tree)

Referenced by gen_generic_params_dies().

tree(* lang_hooks::get_innermost_generic_parms)(const_tree)
int(* lang_hooks::gimplify_expr)(tree *, gimple_seq *, gimple_seq *)

Referenced by gimplify_expr().

bool(* lang_hooks::handle_option)(size_t code, const char *arg, int value, int kind, location_t loc, const struct cl_option_handlers *handlers)

Referenced by lang_handle_option().

size_t lang_hooks::identifier_size

Referenced by tree_code_size().

bool(* lang_hooks::init)(void)

Referenced by lang_dependent_init().

void(* lang_hooks::init_options)(unsigned int decoded_options_count, struct cl_decoded_option *decoded_options)

Referenced by toplev_main().

void(* lang_hooks::init_options_struct)(struct gcc_options *opts)

Referenced by toplev_main().

void(* lang_hooks::init_ts)(void)

Referenced by init_ttree().

void(* lang_hooks::initialize_diagnostics)(diagnostic_context *)

Referenced by init_options_once().

bool(* lang_hooks::missing_noreturn_ok_p)(tree)

Referenced by warn_function_noreturn().

unsigned int(* lang_hooks::option_lang_mask)(void)

Referenced by init_options_once().

void(* lang_hooks::parse_file)(void)

Referenced by compile_file().

bool(* lang_hooks::post_options)(const char **)

Referenced by process_options().

lang_print_tree_hook lang_hooks::print_decl

Referenced by dump_tree_via_hooks(), and print_node().

void(* lang_hooks::print_error_function)(diagnostic_context *, const char *, struct diagnostic_info *)
lang_print_tree_hook lang_hooks::print_identifier

Referenced by dump_tree_via_hooks(), and print_node().

void(* lang_hooks::print_statistics)(void)

Referenced by dump_tree_statistics().

lang_print_tree_hook lang_hooks::print_type

Referenced by dump_tree_via_hooks(), and print_node().

lang_print_tree_hook lang_hooks::print_xnode

Referenced by print_node().

void(* lang_hooks::set_decl_assembler_name)(tree)

Referenced by decl_assembler_name().

HOST_WIDE_INT(* lang_hooks::to_target_charset)(HOST_WIDE_INT)
struct lang_hooks_for_tree_dump lang_hooks::tree_dump

Referenced by dequeue_and_dump().

struct lang_hooks_for_tree_inlining lang_hooks::tree_inlining
size_t(* lang_hooks::tree_size)(enum tree_code)

Referenced by tree_code_size().

struct lang_hooks_for_types lang_hooks::types

Referenced by add_gnat_descriptive_type_attribute(), array_value_type(), base_type_for_mode(), build_arrays(), build_common_builtin_nodes(), build_fn_info_type(), build_range_check(), build_word_mode_vector_type(), convert_to_integer(), convert_to_pointer(), coverage_obj_init(), decode_field_reference(), default_emutls_var_fields(), do_jump(), do_store_flag(), emit_case_bit_tests(), emit_case_nodes(), emit_library_call_value_1(), emutls_common_1(), expand_expr_real_1(), expand_vector_parallel(), finish_bitfield_representative(), fixup_child_record_type(), fold_single_bit_test(), fold_truth_andor_1(), force_const_mem(), gen_generic_params_dies(), gen_type_die_with_usage(), get_emutls_object_type(), get_narrower(), get_nl_goto_field(), get_stack_local_alignment(), get_vectype_for_scalar_type_and_size(), gimplify_scalar_mode_aggregate_compare(), gimplify_va_arg_expr(), init_eh(), initialize_sanitizer_builtins(), install_var_field(), make_debug_expr_from_rtl(), make_range_step(), make_tree(), max_int_size_in_bytes(), mudflap_init(), native_encode_fixed(), omp_firstprivatize_type_sizes(), optimize_bit_field_compare(), record_type_tag(), scan_omp_parallel(), scan_omp_single(), scan_omp_task(), separate_decls_in_region(), should_emit_struct_debug(), size_in_bytes(), store_constructor(), store_expr(), subrange_type_for_debug_p(), supportable_narrowing_operation(), supportable_widening_operation(), task_copyfn_remap_type(), truth_type_for(), try_casesi(), type_hash_eq(), vect_gen_perm_mask(), and vect_transform_slp_perm_load().

int(* lang_hooks::types_compatible_p)(tree x, tree y)

The documentation for this struct was generated from the following file: