GCC Middle and Back End API Reference
|
Go to the source code of this file.
Data Structures | |
struct | lang_hooks_for_tree_inlining |
struct | lang_hooks_for_tree_dump |
struct | lang_hooks_for_types |
struct | lang_hooks_for_decls |
struct | lang_hooks_for_lto |
struct | lang_hooks |
Typedefs | |
typedef void(* | lang_print_tree_hook) (FILE *, tree, int indent) |
Enumerations | |
enum | classify_record { RECORD_IS_STRUCT , RECORD_IS_CLASS , RECORD_IS_INTERFACE } |
Functions | |
tree | add_builtin_function (const char *name, tree type, int function_code, enum built_in_class cl, const char *library_name, tree attrs) |
tree | add_builtin_function_ext_scope (const char *name, tree type, int function_code, enum built_in_class cl, const char *library_name, tree attrs) |
tree | simulate_builtin_function_decl (location_t, const char *, tree, int, const char *, tree) |
tree | add_builtin_type (const char *name, tree type) |
bool | lang_GNU_C (void) |
bool | lang_GNU_CXX (void) |
bool | lang_GNU_Fortran (void) |
bool | lang_GNU_OBJC (void) |
Variables | |
struct lang_hooks | lang_hooks |
|
extern |
Create a builtin function.
References build_builtin_function(), lang_hooks::builtin_function, BUILTINS_LOCATION, and ggc_alloc().
Referenced by local_define_builtin(), and tree_ssa_prefetch_arrays().
|
extern |
Like add_builtin_function, but make sure the scope is the external scope. This is used to delay putting in back end builtin functions until the ISA that defines the builtin is declared via function specific target options, which can save memory for machines like the x86_64 that have multiple ISAs. If this points to the same function as builtin_function, the backend must add all of the builtins at program initialization time.
References build_builtin_function(), lang_hooks::builtin_function_ext_scope, BUILTINS_LOCATION, and ggc_alloc().
Referenced by rt_bb_visited::rt_bb_visited().
Create a builtin type.
References build_decl(), BUILTINS_LOCATION, lang_hooks::decls, get_identifier(), and lang_hooks_for_decls::pushdecl.
Language helper functions.
Returns true if the current lang_hooks represents the GNU C frontend.
References ggc_alloc(), lang_hooks::name, and startswith().
Referenced by default_floatn_builtin_p(), maybe_warn_implicit_fallthrough(), and process_options().
Returns true if the current lang_hooks represents the GNU C++ frontend.
References lang_hooks::name, and startswith().
Referenced by fold_cond_expr_with_comparison(), and maybe_warn_implicit_fallthrough().
Returns true if the current lang_hooks represents the GNU Fortran frontend.
References lang_hooks::name, and startswith().
Referenced by check_omp_nesting_restrictions(), gimplify_bind_expr(), gimplify_omp_for(), gimplify_omp_loop(), gimplify_scan_omp_clauses(), maybe_warn_switch_unreachable_and_auto_init(), omp_accumulate_sibling_list(), omp_context_name_list_prop(), and omp_default_clause().
Returns true if the current lang_hooks represents the GNU Objective-C frontend.
References lang_hooks::name, and startswith().
Referenced by default_floatn_builtin_p(), and maybe_warn_implicit_fallthrough().
|
extern |
Simulate a declaration of a target-specific built-in function at location LOCATION, as though it had been declared directly in the source language. NAME is the name of the function, TYPE is its function type, FUNCTION_CODE is the target-specific function code, LIBRARY_NAME is the name of the underlying library function (NULL if none) and ATTRS is a list of function attributes. Return the decl of the declared function.
References build_builtin_function(), BUILT_IN_MD, fndecl_built_in_p(), ggc_alloc(), lang_hooks::simulate_builtin_function_decl, and TREE_CODE.
|
extern |
Each front end provides its own.