PIPS
|
#include <stdio.h>
#include <string.h>
#include "genC.h"
#include "linear.h"
#include "misc.h"
#include "ri.h"
#include "ri-util.h"
Go to the source code of this file.
Test if a string can be a Fortran 77 comment:
If a line begins with a non-space character, claims it may be a Fortran comment. Assume empty line are comments.
comment | omment |
Definition at line 159 of file util.c.
References comment().
Referenced by get_declaration_comments(), and get_end_of_header_comments().
Definition at line 93 of file util.c.
References CAR, CDR, code_declarations, ENTITY, entity_initial, entity_module_p(), entity_name, entity_storage, entity_type, entity_undefined, formal_offset, NIL, pips_internal_error, storage_formal, storage_formal_p, type_variable_p, value_code, value_reference_p, and value_undefined_p.
Referenced by add_bound_arguments(), any_user_call_site_to_transformer(), compute_points_to_binded_set(), drop_distributed_arguments(), generic_substitute_formal_array_elements_in_transformer(), gpu_xml_dump(), hpfc_call_with_distributed_args_p(), hpfc_translate_call_with_distributed_args(), outliner_file(), RemoveDummyArguments(), update_overlaps_in_caller(), and words_parameters().
entity find_label_entity | ( | const char * | module_name, |
const char * | label_local_name | ||
) |
Pot-pourri of utilities for the internal representation.
util.c
Some functions could be moved to non-generic files such as entity.c. To deal with labels
module_name | odule_name |
label_local_name | abel_local_name |
Definition at line 43 of file util.c.
References concatenate(), entity_domain, entity_undefined, full, gen_chunk_undefined_p, gen_find_tabulated(), label_local_name(), LABEL_PREFIX, module_name(), MODULE_SEP_STRING, and pips_debug.
Referenced by find_statement_from_label_name(), full_unroll(), get_loop_execution_parallel(), inlining_regenerate_labels(), interactive_loop_transformation(), kernelize(), label_string_defined_in_current_module_p(), label_string_defined_in_statement_p(), loop_auto_unroll(), loop_expansion(), loop_expansion_init(), loop_pragma(), module_loops(), print_loopnest_dependence_cone(), set_loop_execution_parallel(), simdizer_auto_tile(), strip_mine(), symbolic_tiling(), unroll(), and words_regular_call().
returns true if v is the ith formal parameter of function f
Definition at line 125 of file util.c.
References entity_module_p(), entity_name, entity_storage, entity_type, f(), formal_function, formal_offset, pips_internal_error, storage_formal, storage_formal_p, and type_variable_p.
Referenced by add_parameter_aliases_for_this_call_site(), and formal_regions_backward_translation().
To find resources (this should be located in workspace-util as it depends both on pipsdbm and ri-util.
Definition at line 57 of file util.c.
References entity_local_name(), and string_codefilename().
Definition at line 87 of file util.c.
References entity_local_name(), and string_entitiesfilename().
Definition at line 67 of file util.c.
References entity_local_name(), and string_fortranfilename().
Definition at line 62 of file util.c.
References entity_local_name(), and string_par_codefilename().
Definition at line 72 of file util.c.
References entity_local_name(), and string_par_fortranfilename().
Definition at line 77 of file util.c.
References entity_local_name(), and string_pp_fortranfilename().
Definition at line 82 of file util.c.
References entity_local_name(), and string_predicat_fortranfilename().
expression reference_ith_index | ( | reference | ref, |
int | i | ||
) |
functions for references
returns the ith index of an array reference
ref | ef |
Definition at line 145 of file util.c.
References CAR, CDR, count, EXPRESSION, NIL, pips_assert, ref, and reference_indices.
Get rid of extra linefeed/newline at the end of a string.
This is sometimes useful to cleanup comments messed up by the lexical analyzer.
Warning: the argument s is updated if it ends up with LF
Remove trailing line feeds.
This function has been implemented three times. See below string_strip_final_linefeeds() and string_fuse_final_linefeeds().
Get rid of linefeed/newline at the end of a string.
This is sometimes useful to cleanup comments messed up by the lexical analyzer.
Warning: the argument s is updated if it ends up with LF