PIPS
global_parallelization.c File Reference
#include <stdio.h>
#include <string.h>
#include "genC.h"
#include "misc.h"
#include "constants.h"
#include "linear.h"
#include "ri.h"
#include "ri-util.h"
#include "database.h"
#include "pipsdbm.h"
#include "resources.h"
#include "control.h"
#include "conversion.h"
#include "transformations.h"
#include "hyperplane.h"
+ Include dependency graph for global_parallelization.c:

Go to the source code of this file.

Functions

static bool always_select ()
 interfaces with pipsmake for hyperplane transformation More...
 
void global_parallelization (const char *module_name)
 global_parallelization.c More...
 
bool loop_hyperplane (const char *module_name)
 

Function Documentation

◆ always_select()

static bool always_select ( )
static

interfaces with pipsmake for hyperplane transformation

Definition at line 49 of file global_parallelization.c.

49 { return true;}

Referenced by global_parallelization().

+ Here is the caller graph for this function:

◆ global_parallelization()

void global_parallelization ( const char *  module_name)

global_parallelization.c

Parameters
module_nameodule_name

Definition at line 51 of file global_parallelization.c.

52 {
54  statement s;
55 
56  pips_assert("global_parallelization", entity_module_p(module));
57  s = (statement) db_get_memory_resource(DBR_CODE, module_name, false);
58 
59  debug_on("HYPERPLANE_DEBUG_LEVEL");
60 
62 
63  debug_off();
64 
65  module_reorder(s);
66 
67  DB_PUT_MEMORY_RESOURCE(DBR_CODE,
69  (char*) s);
70 }
struct _newgen_struct_statement_ * statement
Definition: cloning.h:21
void look_for_nested_loop_statements(statement, statement(*)(list, bool(*)(statement)), bool(*)(statement))
look_for_nested_loops.c
const char * module_name(const char *s)
Return the module part of an entity name.
Definition: entity_names.c:296
static bool always_select()
interfaces with pipsmake for hyperplane transformation
string db_get_memory_resource(const char *rname, const char *oname, bool pure)
Return the pointer to the resource, whatever it is.
Definition: database.c:755
#define DB_PUT_MEMORY_RESOURCE(res_name, own_name, res_val)
conform to old interface.
Definition: pipsdbm-local.h:66
statement hyperplane(list lls, _UNUSED_ bool(*u)(statement))
package hyperplane
Definition: hyperplane.c:61
#define debug_on(env)
Definition: misc-local.h:157
#define pips_assert(what, predicate)
common macros, two flavors depending on NDEBUG
Definition: misc-local.h:172
#define debug_off()
Definition: misc-local.h:160
static char * module
Definition: pips.c:74
bool module_reorder(statement body)
Reorder a module and recompute order to statement if any.
Definition: reorder.c:244
entity local_name_to_top_level_entity(const char *n)
This function try to find a top-level entity from a local name.
Definition: entity.c:1450
bool entity_module_p(entity e)
Definition: entity.c:683
char * strdup()

References always_select(), db_get_memory_resource(), DB_PUT_MEMORY_RESOURCE, debug_off, debug_on, entity_module_p(), hyperplane(), local_name_to_top_level_entity(), look_for_nested_loop_statements(), module, module_name(), module_reorder(), pips_assert, and strdup().

+ Here is the call graph for this function:

◆ loop_hyperplane()

bool loop_hyperplane ( const char *  module_name)
Parameters
module_nameodule_name

Definition at line 72 of file global_parallelization.c.

73 {
74  bool return_status = false;
75 
77 
78  return return_status;
79 }
bool interactive_loop_transformation(const char *module_name, statement(*loop_transformation)(list, bool(*)(statement)))

References hyperplane(), interactive_loop_transformation(), and module_name().

+ Here is the call graph for this function: