6 #include "pips_config.h"
21 #include "resources.h"
30 if(strstr(s,
"scmp task")!=NULL)
63 "SCALOPRAGMA_DEBUG_LEVEL");
bool extensions_defined_p(extensions p)
statement outliner(const char *, list)
outline the statements in statements_to_outline into a module named outline_module_name the outlined ...
static statement module_statement
callees compute_callees(const statement stat)
Recompute the callees of a module statement.
struct _newgen_struct_statement_ * statement
void set_cumulated_rw_effects(statement_effects)
void reset_cumulated_rw_effects(void)
const char * module_name(const char *s)
Return the module part of an entity name.
char * get_string_property(const char *)
#define gen_recurse(start, domain_number, flt, rwt)
statement get_current_module_statement(void)
Get the current module statement.
gen_chunk * gen_get_ancestor(int, const void *)
return the first ancestor object found of the given type.
void gen_null(__attribute__((unused)) void *unused)
Ignore the argument.
list gen_nreverse(list cp)
reverse a list in place
#define NIL
The empty list (nil in Lisp)
#define CONS(_t_, _i_, _l_)
List element cell constructor (insert an element at the beginning of a list)
void gen_free_list(list l)
free the spine of the list
#define FOREACH(_fe_CASTER, _fe_item, _fe_list)
Apply/map an instruction block on all the elements of a list.
#define PIPS_PHASE_POSTLUDE(new_module_statement)
End a transformation phase by putting back into PIPS the (possibly) modified statement.
#define PIPS_PHASE_PRELUDE(module_name, debug_env_var)
Start a phase that use a module CODE.
string db_get_memory_resource(const char *rname, const char *oname, bool pure)
Return the pointer to the resource, whatever it is.
#define DB_PUT_MEMORY_RESOURCE(res_name, own_name, res_val)
conform to old interface.
bool statement_loop_p(statement)
#define pips_debug
these macros use the GNU extensions that allow variadic macros, including with an empty list.
string pragma_to_string(pragma p)
#define statement_block_p(stat)
string build_new_top_level_module_name(const char *prefix, bool prevent_suffix)
Get a new name for a module built from a prefix.
#define statement_domain
newgen_sizeofexpression_domain_defined
#define extension_pragma(x)
#define EXTENSION(x)
EXTENSION.
#define statement_extensions(x)
#define extensions_extension(x)
#define statement_undefined_p(x)
#define STATEMENT(x)
STATEMENT.
bool scalopragma(char *module_name)
static bool pragma_scmp_task_p(pragma p)
list statement_to_outline
A simple phase that outline task with pragma for SCMP.
static bool find_pragma(const statement s)
The structure used to build lists in NewGen.