PIPS
|
#include <stdlib.h>
#include <stdio.h>
#include "genC.h"
#include "newgen_set.h"
#include "linear.h"
#include "ri.h"
#include "ri-util.h"
#include "control.h"
#include "pipsdbm.h"
#include "resources.h"
#include "properties.h"
#include "callgraph.h"
#include "misc.h"
Go to the source code of this file.
Macros | |
#define | __KV(key, value) if(strcmp( key ,s) == 0) return value; |
#define | __MKV(key, value) __KV(TOP_LEVEL_MODULE_NAME MODULE_SEP_STRING key , value) |
Functions | |
static const char * | opname (const char *s) |
static bool | take_lvalue (const char *s) |
static const char * | typesuffix (const char *s) |
static void | rename_op (call c) |
static void | rw_loop (statement sl) |
static set | make_string_set_from_prop (const char *prop) |
bool | rename_operator (const char *module_name) |
A short pass that replace operators by function calls. More... | |
Variables | |
static set | ops_set = NULL |
static set | suffixes_set = NULL |
static const char * | prefix = NULL |
Definition at line 27 of file rename_operator.c.
#define __MKV | ( | key, | |
value | |||
) | __KV(TOP_LEVEL_MODULE_NAME MODULE_SEP_STRING key , value) |
Definition at line 28 of file rename_operator.c.
|
static |
Definition at line 203 of file rename_operator.c.
References set_append_list(), set_make(), set_string, and strsplit().
Referenced by rename_operator().
|
static |
Definition at line 32 of file rename_operator.c.
References __MKV, ASSIGN_OPERATOR_NAME, C_EQUAL_OPERATOR_NAME, C_GREATER_OR_EQUAL_OPERATOR_NAME, C_GREATER_THAN_OPERATOR_NAME, C_LESS_OR_EQUAL_OPERATOR_NAME, C_LESS_THAN_OPERATOR_NAME, C_NON_EQUAL_OPERATOR_NAME, DIVIDE_OPERATOR_NAME, DIVIDE_UPDATE_OPERATOR_NAME, MINUS_C_OPERATOR_NAME, MINUS_OPERATOR_NAME, MINUS_UPDATE_OPERATOR_NAME, MODULO_OPERATOR_NAME, MODULO_UPDATE_OPERATOR_NAME, MULTIPLY_OPERATOR_NAME, MULTIPLY_UPDATE_OPERATOR_NAME, PLUS_C_OPERATOR_NAME, PLUS_OPERATOR_NAME, PLUS_UPDATE_OPERATOR_NAME, POST_DECREMENT_OPERATOR_NAME, POST_INCREMENT_OPERATOR_NAME, PRE_DECREMENT_OPERATOR_NAME, PRE_INCREMENT_OPERATOR_NAME, UNARY_MINUS_OPERATOR_NAME, and UNARY_PLUS_OPERATOR_NAME.
Referenced by dagvtx_is_operator_p(), reduction_operator_entity(), and rename_op().
|
static |
Definition at line 103 of file rename_operator.c.
References ADDRESS_OF_OPERATOR_NAME, basic_to_string(), call_arguments, call_function, CAR, CONS, copy_expression(), entity_intrinsic(), entity_name, entity_undefined, EXPRESSION, expression_to_type(), f(), FindEntity(), FOREACH, free(), free_type(), make_call(), make_syntax_call(), malloc(), NIL, opname(), ops_set, pips_user_warning, prefix, same_string_p, set_belong_p(), suffixes_set, take_lvalue(), TOP_LEVEL_MODULE_NAME, type_variable, type_variable_p, typesuffix(), update_expression_syntax(), and variable_basic.
Referenced by rename_operator().
bool rename_operator | ( | const char * | module_name | ) |
A short pass that replace operators by function calls.
prelude
some properties
search
free properties
update ressources
ostlude
module_name | odule_name |
Definition at line 215 of file rename_operator.c.
References call_domain, compute_callees(), db_get_memory_resource(), DB_PUT_MEMORY_RESOURCE, gen_recurse, gen_true(), get_bool_property(), get_current_module_statement(), get_string_property(), make_string_set_from_prop(), module_name(), module_name_to_entity(), ops_set, prefix, rename_op(), reset_current_module_entity(), reset_current_module_statement(), rw_loop(), set_current_module_entity(), set_current_module_statement(), set_free(), statement_domain, and suffixes_set.
|
static |
Definition at line 196 of file rename_operator.c.
References do_loop_to_for_loop(), and statement_loop_p().
Referenced by rename_operator().
|
static |
Definition at line 71 of file rename_operator.c.
References __MKV, ASSIGN_OPERATOR_NAME, DIVIDE_UPDATE_OPERATOR_NAME, MINUS_UPDATE_OPERATOR_NAME, MODULO_UPDATE_OPERATOR_NAME, MULTIPLY_UPDATE_OPERATOR_NAME, and PLUS_UPDATE_OPERATOR_NAME.
Referenced by rename_op().
|
static |
Definition at line 84 of file rename_operator.c.
References __KV.
Referenced by rename_op().
|
static |
Definition at line 22 of file rename_operator.c.
Referenced by rename_op(), and rename_operator().
|
static |
Definition at line 24 of file rename_operator.c.
Referenced by add_separation(), atomic_function_of_operation(), build_new_top_level_module_name(), build_outline_name(), clone_variable_with_unique_name(), comEngine_make_new_scalar_variable(), compile_a_pure_function(), compile_a_special_io_function(), compute_entity_to_declaration_constraints(), contraintes_text_format(), create_new_module_entity(), CreateEntityFromLocalNameAndPrefix(), dag_dot_dump_prefix(), dagvtx_dot_node(), dagvtx_dot_node_sb(), do_isolate_statement(), effects_to_dma(), ensure_comment_consistency(), entity_field_to_entity(), entity_hpf_number(), entity_sesam_buffer_p(), entity_size_uname(), eov_add_entity_to_eliminate(), find_or_create_coeff(), FindEntityFromLocalNameAndPrefix(), FindEntityFromLocalNameAndPrefixAndScope(), FindOrCreateEntityFromLocalNameAndPrefix(), FindOrCreateEntityFromLocalNameAndPrefixAndScope(), fopen_suffix(), gen_common_prefix(), generate_variable_with_unique_name_to_module(), generic_clone_variable_with_unique_name(), get_ith_dummy(), get_next_task_name(), get_var(), get_vect_name_from_data(), isolate_statement(), kernel_load_store_generator(), main_module_global_name_p(), make_coeff(), make_eliminate_original_variables(), make_HRE_empty_module(), make_new_array_variable_with_prefix(), make_new_derived_entity_with_prefix(), make_new_entity(), make_new_scalar_variable_with_prefix(), make_new_simd_vector_with_prefix(), make_reduction_function(), make_reduction_vector_entity(), make_statement_copy_i(), make_temporary_pointer_to_array_entity_with_prefix(), MakeCurrentFunction(), MakeFileName(), marged(), normalize_microcode(), opencl_generate_special_kernel_ops(), print_dinf_statistics(), print_dsup_statistics(), print_proj_op_statistics(), print_sesam_tasks_buffers_header(), print_umay_statistics(), print_umust_statistics(), put_generated_resources_for_common(), put_generated_resources_for_module(), region_entity_variable_to_new_declare_entity(), region_translation_statistics_close(), rename_op(), rename_operator(), replace_sender_entity_by_receiver_entity_in_reference(), replicate_declaration(), safe_new_tmp_file(), sesam_buffer_to_server_entity(), sesam_task_label_p(), str_prepend(), system_sorted_text_format(), system_text_format(), terapix_renamed_entity_p(), and terapix_renamed_local_p().
|
static |
Definition at line 23 of file rename_operator.c.
Referenced by rename_op(), and rename_operator().