PIPS
|
#include <assert.h>
#include "genC.h"
#include "linear.h"
#include "misc.h"
#include "properties.h"
#include "resources.h"
#include "pipsdbm.h"
#include "ri-util.h"
Go to the source code of this file.
Data Structures | |
struct | glopriv_context_t |
structure to collect whether anything should be qualified as private or global, for OpenCL 1.X code. More... | |
|
static |
Definition at line 340 of file gpu_qualify_pointers.c.
References call_domain, cast_domain, gen_context_multi_recurse(), gen_true(), glc_call(), glc_cast(), glc_ref(), and reference_domain.
Referenced by collect_glopriv_data().
|
static |
Definition at line 349 of file gpu_qualify_pointers.c.
References code_declarations, collect_glopriv(), glopriv_context_t::do_call_sites, entity_initial, entity_pointer_p(), entity_variable_p, f(), FOREACH, glopriv_context_t::globals, init, pips_debug, glopriv_context_t::privates, set_belong_p(), set_glopriv(), value_code, value_expression, and value_expression_p.
Referenced by do_gpu_qualify_pointers().
module | odule |
funcs | uncs |
do_casts | o_casts |
Definition at line 378 of file gpu_qualify_pointers.c.
References array_type_p(), call_arguments, call_function, glopriv_context_t::call_sites, callee, callees_callees, CAR, CDR, glopriv_context_t::changed, code_declarations, collect_glopriv_data(), glopriv_context_t::do_casts, dummy_identifier, dummy_unknown_p, entity_array_p(), entity_function_p(), entity_initial, entity_local_name(), entity_name, entity_pointer_p(), entity_storage, entity_type, entity_variable_p, f(), FOREACH, formal_offset, formal_parameter_p(), free_glopriv(), functional_parameters, gen_length(), gen_nth(), glopriv_context_t::globals, hash_defined_p(), hash_get(), is_global(), is_private(), module, module_name_to_entity(), new_glopriv(), PARAMETER, parameter_dummy, parameter_type, params, pips_assert, pips_debug, pips_user_error, pips_user_warning, pointer_type_p(), glopriv_context_t::privates, set_as_private(), set_belong_p(), set_global(), set_variable_qualifier(), storage_formal, type_functional, type_variable, type_variable_p, value_code, value_code_p, and variable_is_glopriv().
Referenced by gpu_qualify_pointers().
|
static |
Definition at line 185 of file gpu_qualify_pointers.c.
References f(), free(), gen_free_list(), HASH_FOREACH, hash_table_free(), and set_free().
Referenced by do_gpu_qualify_pointers().
|
static |
ptr = ptr & reference...
pointer arithmetic with +
Definition at line 232 of file gpu_qualify_pointers.c.
References call_arguments, call_function, glopriv_context_t::call_sites, CAR, CDR, CONS, glopriv_context_t::do_call_sites, enclosing, ENTITY_ADDRESS_OF_P, ENTITY_ASSIGN_P, ENTITY_MINUS_C_P, ENTITY_MINUS_P, entity_name, ENTITY_PLUS_C_P, ENTITY_PLUS_P, EXPRESSION, expression_domain, expression_pointer_p(), expression_reference(), expression_reference_p(), gen_get_current_ancestor(), gen_length(), glopriv_context_t::globals, hash_defined_p(), hash_get(), hash_put(), hash_update(), NIL, pips_assert, pips_debug, glopriv_context_t::privates, reference_variable, set_belong_p(), and set_glopriv().
Referenced by collect_glopriv().
|
static |
Definition at line 311 of file gpu_qualify_pointers.c.
References cast_expression, cast_type, glopriv_context_t::do_casts, enclosing, expression_domain, gen_get_current_ancestor(), glopriv_context_t::globals, pips_assert, glopriv_context_t::privates, set_belong_p(), set_glopriv(), set_variable_qualifier(), type_variable, and type_variable_p.
Referenced by collect_glopriv().
|
static |
Definition at line 196 of file gpu_qualify_pointers.c.
References enclosing, entity_array_p(), entity_pointer_p(), expression_domain, gen_get_current_ancestor(), is_global(), is_private(), reference_variable, and set_glopriv().
Referenced by collect_glopriv().
module_name | odule_name |
Definition at line 575 of file gpu_qualify_pointers.c.
References db_get_memory_resource(), DB_PUT_MEMORY_RESOURCE, debug_off, debug_on, do_gpu_qualify_pointers(), get_bool_property(), get_current_module_entity(), get_current_module_statement(), module_name(), module_name_to_entity(), pips_debug, reset_current_module_entity(), reset_current_module_statement(), set_current_module_entity(), and set_current_module_statement().
Definition at line 100 of file gpu_qualify_pointers.c.
References is_glopriv().
Referenced by do_gpu_qualify_pointers(), and glc_ref().
Definition at line 70 of file gpu_qualify_pointers.c.
References entity_type, entity_variable_p, pips_assert, type_variable, and variable_is_glopriv().
Referenced by is_global(), and is_private().
Definition at line 105 of file gpu_qualify_pointers.c.
References is_glopriv().
Referenced by do_gpu_qualify_pointers(), and glc_ref().
|
static |
Definition at line 138 of file gpu_qualify_pointers.c.
References glopriv_context_t::call_sites, glopriv_context_t::changed, glopriv_context_t::do_call_sites, glopriv_context_t::do_casts, glopriv_context_t::globals, hash_pointer, hash_table_make(), malloc(), glopriv_context_t::privates, set_make(), and set_pointer.
Referenced by do_gpu_qualify_pointers().
|
static |
Definition at line 115 of file gpu_qualify_pointers.c.
References set_glopriv_qualifier().
Referenced by do_gpu_qualify_pointers().
|
static |
Definition at line 110 of file gpu_qualify_pointers.c.
References set_glopriv_qualifier().
Referenced by do_gpu_qualify_pointers().
|
static |
Definition at line 150 of file gpu_qualify_pointers.c.
References glopriv_context_t::changed, entity_domain, entity_name, gen_domain_name(), glopriv_context_t::globals, ifdebug, pips_assert, pips_debug, glopriv_context_t::privates, set_add_element(), and set_belong_p().
Referenced by collect_glopriv_data(), glc_call(), glc_cast(), and glc_ref().
add a qualifier to a variable, which should be a pointer...
Definition at line 78 of file gpu_qualify_pointers.c.
References entity_array_p(), entity_name, entity_pointer_p(), entity_type, entity_variable_p, pips_assert, pips_debug, pips_user_error, set_variable_qualifier(), type_variable, and variable_is_glopriv().
Referenced by set_as_private(), and set_global().
Definition at line 54 of file gpu_qualify_pointers.c.
References gen_qualifier_cons(), make_qualifier_global(), make_qualifier_private(), pips_assert, pips_debug, variable_is_glopriv(), and variable_qualifiers.
Referenced by do_gpu_qualify_pointers(), glc_cast(), and set_glopriv_qualifier().
Definition at line 48 of file gpu_qualify_pointers.c.
References is_qualifier_global, is_qualifier_private, and variable_is_qualified_as().
Referenced by do_gpu_qualify_pointers(), is_glopriv(), set_glopriv_qualifier(), and set_variable_qualifier().
|
static |
Definition at line 40 of file gpu_qualify_pointers.c.
References FOREACH, qualifier_tag, and variable_qualifiers.
Referenced by variable_is_glopriv().